From cbd52d48fa2524beb37b506b55a315b49f026a1e Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Sat, 7 Jul 2018 11:24:38 +0200 Subject: Make the page visibility API pref-controlled. This resolves #607. --- dom/webidl/Document.webidl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dom') diff --git a/dom/webidl/Document.webidl b/dom/webidl/Document.webidl index 0b8c278fe..904b1fb77 100644 --- a/dom/webidl/Document.webidl +++ b/dom/webidl/Document.webidl @@ -277,8 +277,11 @@ partial interface Document { // https://w3c.github.io/page-visibility/#extensions-to-the-document-interface partial interface Document { + [Pref="dom.visibilityAPI.enabled"] readonly attribute boolean hidden; + [Pref="dom.visibilityAPI.enabled"] readonly attribute VisibilityState visibilityState; + [Pref="dom.visibilityAPI.enabled"] attribute EventHandler onvisibilitychange; }; -- cgit v1.2.3