Bug 165784

Summary: Add Document.onvisibilitychange event handler attribute
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, dbates, esprehn+autocc, igrigorik, kangil.han, kondapallykalyan
Priority: P2 Keywords: WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: http://w3c.github.io/page-visibility/#onvisiblitychange-event-handler
Attachments:
Description Flags
Patch
none
Patch none

Description Chris Dumez 2016-12-12 16:48:26 PST
Add Document.onvisibilitychange event handler attribute as per Page Visibility Level 2 API:
- http://w3c.github.io/page-visibility/#onvisiblitychange-event-handler
Comment 1 Chris Dumez 2016-12-12 16:50:07 PST
Created attachment 296968 [details]
Patch
Comment 2 Daniel Bates 2016-12-12 17:18:18 PST
Comment on attachment 296968 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=296968&action=review

> LayoutTests/fast/events/page-visibility-onvisibilitychange.html:1
> +<html>

Please add <!DOCTYPE html> to the top of this file as I do not see the need to use quirks mode for this test.

> LayoutTests/fast/events/page-visibility-onvisibilitychange.html:2
> +<body onload='startTest()'>

We are underutilizing the purpose of the onload attribute given that the startTest() is defined in a script inside <body>. I suggest that we call startTest() above </script> and then remove the onload attribute from this line.
Comment 3 Chris Dumez 2016-12-12 17:29:32 PST
Created attachment 296971 [details]
Patch
Comment 4 WebKit Commit Bot 2016-12-12 18:06:16 PST
Comment on attachment 296971 [details]
Patch

Clearing flags on attachment: 296971

Committed r209750: <http://trac.webkit.org/changeset/209750>
Comment 5 WebKit Commit Bot 2016-12-12 18:06:20 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Chris Dumez 2017-07-07 13:33:07 PDT
*** Bug 174177 has been marked as a duplicate of this bug. ***