W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2013

Re: [whatwg] pagehide vs pagevis

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 30 May 2013 13:38:08 -0400
Message-ID: <51A78E80.1020800@mit.edu>
To: Brady Eidson <beidson@apple.com>
Cc: whatwg@lists.whatwg.org
On 5/30/13 1:04 PM, Brady Eidson wrote:
> The long standing design goals and implementation of our page cache
> prevents us from delivering these events to a page that was just sent
> “pagehide with persisted set to true”.

Actually, let me try to clarify this a bit.

The way I would imagine logic like this being implemented is something like:


with the flagPageFrozen() call making it so that further event dispatch 
is impossible.

If that is in fact the case, then logic like this:

   setVisibility("hidden"); // happens to fire an event

should generally work fine; this is in fact more or less what Gecko 
does, if we ignore the "pagehide makes the page not cacheable" complication.

So how does your setup differ in a way that actually makes this 
impossible to implement?

Received on Thursday, 30 May 2013 17:38:39 UTC

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