edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Karl Dahlke <eklhad@comcast.net>
To: Edbrowse-dev@lists.the-brannons.com
Subject: [Edbrowse-dev] XMLHttpRequest
Date: Tue, 27 Dec 2016 11:12:51 -0500	[thread overview]
Message-ID: <20161127111251.eklhad@comcast.net> (raw)

Since almost the dawn of html, <frame> and <iframe> can cause a browser
to fetch other html, perhaps from another domain, and paste the result into the web page.
In this regard edbrowse is more manual than any other browser; you have to click on a link to fetch in the frame.
Not saying I like it that way, I don't, it was just easier at the time.
Anyways other browsers just do it, without worrying about security,
I don't think XMLHttpRequest is any different; except js is directing the http fetch,
and perhaps using the result in some computational way,
rather than html directing the fetch and browsing the result.
Most of the time even js just slaps the html into a <div> where it is browsed;
just a damn fancy complicated, and dynamic, form of iframe.
I'd be surprised if a js fetch had to draw from the same domain, but it might, IDK.
Maybe write some test code and run it on other browsers.

By the way, we should think about expanding all these frames and iframes, as other browsers do,
but it's more work than first appears.
The top half of your "buffer" is this tree from this html on this domain running this instance of js,
and the bottom half of your buffer is that tree from that html on that domain running that instance of js,
so multiple js windows tied to one edbrowse window, which we can't do now, etc etc.
definitely some work there; for now an improved dom and jquery is more important.

Karl Dahlke

             reply	other threads:[~2016-12-27 16:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-27 16:12 Karl Dahlke [this message]
2016-12-27 18:26 ` Adam Thompson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161127111251.eklhad@comcast.net \
    --to=eklhad@comcast.net \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).