Bug 174177 - [page visibility] implement onvisibilitychange event handler
Summary: [page visibility] implement onvisibilitychange event handler
Status: RESOLVED DUPLICATE of bug 165784
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-07-05 14:18 PDT by Ilya Grigorik
Modified: 2019-02-06 09:18 PST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.