<div class="gmail_quote">On 26 August 2010 17:27, Boris Zbarsky <span dir="ltr"><<a href="mailto:bzbarsky@mit.edu">bzbarsky@mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">On 8/26/10 3:23 AM, James May wrote:<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Couldn't the iframe be kept alive, but remain "associated" with it's<br>
parent browsing context until (if) it was re-parented / inserted into a<br>
different document. (does this match what other elements in the DOM<br>
behave in terms of event handlers when they are detached?)<br>
</blockquote>
<br></div><div><div></div><div class="h5">
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.<br>
<br>
-Boris<br>
</div></div></blockquote></div><br><br>I thought I just suggested that?<br><br>Everything works normally (as if it was still attached) until it is reattached, when the situation is re-evaluated.<br><br>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)<br>