[webkit-dev] Use of Frame by ResourceHandle

Adam Barth abarth at webkit.org
Sun Sep 12 12:44:15 PDT 2010


On Sat, Sep 11, 2010 at 11:28 PM, Darin Fisher <darin at chromium.org> wrote:
> On Sat, Sep 11, 2010 at 11:07 PM, Adam Barth <abarth at webkit.org> wrote:
>> On Sat, Sep 11, 2010 at 10:52 PM, Darin Fisher <darin at chromium.org> wrote:
>> There are are lots of ways to get a Frameless document.  For example,
>> JavaScript can call document.implementation.createDocument.  Also, the
>> DOMParser will given you a document.  XMLHttpRequest will give you
>> one.  You can get one by having an XSLT.  The PageCache has some.
>>
>> There was a patch that someone was pushing at some point to chain
>> these documents back to a "master" document that has a frame.  That's
>> certainly one approach, but I don't think it should be necessary.
>
> That's the solution I would have expected.  It fits more naturally with our
> system.

Unfortunately, that solution is buggy.  Suppose a use createDocument
to make an XML document in one Frame and then move the JavaScript
object to another Frame and close the first one.  Now XSLT magically
stops working because the "owner document" don't have a Frame anymore.

Adam


More information about the webkit-dev mailing list