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

Re: [whatwg] pagehide vs pagevis

From: Brady Eidson <beidson@apple.com>
Date: Tue, 28 May 2013 21:55:28 -0700
Message-id: <20AD344E-FDD8-4455-A9B4-F0FDCF4A0F54@apple.com>
To: Boris Zbarsky <bzbarsky@mit.edu>
Cc: whatwg@lists.whatwg.org

On May 28, 2013, at 12:46 PM, Boris Zbarsky wrote:

> On 5/28/13 2:02 PM, Brady Eidson wrote:
>> If a page receives “pagehide” with persisted set to true, it correctly assumes that it might be revived at a later date with a pageshow event.  These pages do not expect any event dispatch between the pagehide and the pageshow...
> 
> This expectation was always wrong: events can be dispatched by script at any time to pages in the page cache.

I'm sorry, who's page cache are you talking about?  Page caches are (AFAIK) not really fleshed out in any spec, and the WebKit page cache *intends* to represent a 100% inert page.  This includes the inability to receive events.  Any exceptions in practice are a bug for us that we would strive to patch.

>> I didn’t closely follow pagevis when originally discussed (I now wish I had), but is there any motivation for this?
> 
> There is some reasonably lengthy discussion about the ordering here in the archives at http://lists.w3.org/Archives/Public/public-web-perf/ which you may want to read.

Can you provide a specific link to relevant threads you're thinking of?  I can't guess what search terms you intend for me to use.

Thanks,
~Brady

> 
> -Boris
Received on Wednesday, 29 May 2013 04:55:53 UTC

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