W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] Should events be paused on detached iframes?

From: James May <whatwg@fowlsmurf.net>
Date: Fri, 27 Aug 2010 01:58:22 +1000
Message-ID: <AANLkTik0xRZ8TELL0HhxtjOgX0KDYujzCmuzTYZ4Pxs8@mail.gmail.com>
On 26 August 2010 17:27, Boris Zbarsky <bzbarsky at mit.edu> wrote:

> On 8/26/10 3:23 AM, James May wrote:
>> Couldn't the iframe be kept alive, but remain "associated" with it's
>> parent browsing context until (if) it was re-parented / inserted into a
>> different document. (does this match what other elements in the DOM
>> behave in terms of event handlers when they are detached?)
> Elements behave fine.  The question is what the Window should do.  What
> should window.parent return in the iframe while detached?  window.top? What
> should window.resizeTo do?  That sort of thing.
> -Boris

I thought I just suggested that?

Everything works normally (as if it was still attached) until it is
reattached, when the situation is re-evaluated.

In terms of resource consumption, I don't see how this would be any
different to any other kind of leak that web content can trigger. (I think
someone mentioned that iframes can be GC'd normally)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100827/a7f780f4/attachment.htm>
Received on Thursday, 26 August 2010 08:58:22 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:26 UTC