|Summary:||visibilitychange:hidden doesn't fire during page navigations|
|Product:||WebKit||Reporter:||Ojan Vafai <ojan>|
|Severity:||Normal||CC:||ap, barraclough, beidson, bjonesbe, igrigorik, kinuko, philip, rniwa, simon.fraser, webkit-bug-importer|
|Version:||WebKit Nightly Build|
Description Ojan Vafai 2015-11-12 16:39:25 PST
visibility state should transition to hidden whenever a page might go away. Unlike unload/pagehide, we can fire these reliably. See https://github.com/w3c/page-visibility/issues/18 for more details, particularly, igrigorik's table near the top that shows where browser's don't fire this. The Firefox behavior of having green for all of the visibility-change-->hidden column is the one that matches the spec and makes for the best developer platform. Ryosuke, are you the right person on WebKit to talk to about this?
Comment 1 Ilya Grigorik 2015-11-12 16:54:20 PST
FWIW, test page: http://output.jsbin.com/zubiyid/latest/quiet - load it, unload the page and visit it again.
Comment 2 Ilya Grigorik 2015-11-25 13:08:22 PST
Related issue https://bugs.webkit.org/show_bug.cgi?id=151610, and some additional context: https://www.igvita.com/2015/11/20/dont-lose-user-and-app-state-use-page-visibility/
Comment 4 Lucas Forschler 2019-02-06 09:18:44 PST
Mass move bugs into the DOM component.