Re: [PageVisibility] Are visibility change events synchronous?

On 10/6/11 3:22 AM, Darin Fisher wrote:
>     2)  The visibility state of a document changes synchronously on page
>     navigations.  In particular, it changes to hidden (if not already
>     hidden) synchronously after the firing of the pagehide event and
>     changes to visible as needed synchronously before the firing of the
>     pageshow event.
>
>
> This makes sense, although Chromium does not implement a back/forward
> page cache.  Otherwise, it sounds like we will have compatible
> implementations.

Just to make sure... does that mean you fire visibilitychange on navigation?

Note that my implementation in Gecko does so no matter what's going on 
with the back/forward cache, just like we always fire pagehide/pageshow.

-Boris

Received on Thursday, 6 October 2011 12:31:16 UTC