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

Re: [whatwg] pagehide vs pagevis

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 29 May 2013 21:36:34 -0400
Message-ID: <51A6AD22.8040508@mit.edu>
To: Brady Eidson <beidson@apple.com>
Cc: whatwg@lists.whatwg.org
Let's actually back up a second.

What problem are you really trying to solve by changing the ordering? 
As I see it, right now the situation is as follows (in implementations, 
if not in the spec):

1)  pagehide fires, with a boolean indicating whether at this point the 
UA plans to place the page in the page cache.

2)  Whether the page is in fact placed in the page cache depends on 
actions taken by scripts on the page that fire from the pagehide event 
(at least in Gecko).

3)  Even after a page has been placed in the page cache it can be 
evicted from the page cache for various reasons (again, at least in Gecko).

How does the firing of visibilitychange events after pagehide affect 
things here in an undesirable way?

-Boris
Received on Thursday, 30 May 2013 01:37:05 UTC

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