W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2012

[whatwg] Should events be paused on detached iframes?

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 07 Feb 2012 20:08:05 -0500
Message-ID: <4F31CAF5.3050304@mit.edu>
On 2/7/12 7:16 PM, Ian Hickson wrote:
> All of the above seem consistent with what the spec requires.
>
> Firefox actually seems to have a slight bug, which is that the event loop
> keeps pumping in the original page, but that seems like a separate issue.
>
> Here's the test case you describe above:
>
>     http://damowmow.com/playground/tests/alert/001.html

OK, then I don't understand something.  You said:

   It should put it up in the context of the top-level browsing context
   of the script that led to that point (the "first script").  This is
   the same as if someone in one tab calls another tab's script and that
   script calls alert().

I assume you meant "entry script", but maybe that was a bad assumption? 
  There is no "first script" anywhere in the spec.

In any case, in my testcase the "entry script" is the one running in 
test1.html, but the alert is being associated with test2.html.  In 
general, I would expect that alerts are associated with the window that 
was the |this| for the alert call....

-Boris
Received on Tuesday, 7 February 2012 17:08:05 UTC

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