Bug 174177

Summary: [page visibility] implement onvisibilitychange event handler
Product: WebKit Reporter: Ilya Grigorik <igrigorik>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: achristensen, cdumez, joepeck, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ilya Grigorik 2017-07-05 14:18:01 PDT
Steps to reproduce:

Hooked up a callback to document.onvisibilitychange.


Actual results:

The callback did not fire.


Expected results:

Callback should fire!

---

Spec: https://www.w3.org/TR/page-visibility-2/#onvisiblitychange-event-handler

Webkit currently supports the visibilitychange event, but not the onvisibilitychange event handler.

---

Related discussion: https://github.com/w3c/page-visibility/issues/31
Comment 1 Chris Dumez 2017-07-07 13:32:17 PDT
Pretty sure I implemented this?
Comment 2 Chris Dumez 2017-07-07 13:33:07 PDT
Could you try a Safari Technology Preview?

*** This bug has been marked as a duplicate of bug 165784 ***
Comment 3 Chris Dumez 2017-07-07 13:34:08 PDT
(In reply to Chris Dumez from comment #2)
> Could you try a Safari Technology Preview?
> 
> *** This bug has been marked as a duplicate of bug 165784 ***

Also please also note this WebPlatformTest bug which I made a PR for that still has not been merged:
https://github.com/w3c/web-platform-tests/pull/6267
Comment 4 Lucas Forschler 2019-02-06 09:18:36 PST
Mass move bugs into the DOM component.