[Webkit-unassigned] [Bug 116769] Page Visibility incorrect for documents in the page cache

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 26 18:25:55 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=116769





--- Comment #3 from Brady Eidson <beidson at apple.com>  2013-05-26 18:24:25 PST ---
(In reply to comment #2)
> (In reply to comment #1)
> > More info:
> > http://www.w3.org/TR/html5/browsers.html#unloading-document-visibility-change-steps and http://www.w3.org/TR/page-visibility/ say page visibility should change after the pageHide event is fired.  document.visibility should transition to hidden, and then a visibilitychange event should be sent.
> 
> Sending an event *AFTER* pageHide is akin to sending an event *AFTER* unload.  That is *nuts*.

Note - I am not arguing that this is what the spec *says* to do.  Yes, the spec now says to do this.  I'm just saying it is absolutely nuts.

We've been evangelizing to authors that pageHide is the *EXACT* same thing as unload, except with more information and is compatible with page caching features.

Part of the "pageHide is the same as unload" guarantee was that no events will come after them.  e.g. if you opt in to listening to pageHide instead of unload, then that's the last event you need to listen to until pageShow.

Now that the spec says "fire pageHide, then fire visibilityChanged, then fire unload", pageHide is no longer functionally equivalent to unload.  And that blows.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list