summaryrefslogtreecommitdiffstats
path: root/dom/webidl
diff options
context:
space:
mode:
authorjanekptacijarabaci <janekptacijarabaci@seznam.cz>2017-08-17 20:21:38 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-03-12 08:38:36 +0100
commit4577efd50f8361ffa787d7fcba5f5894438f826c (patch)
tree22f77b0a3ccca888b25befc9437f35069b02dab3 /dom/webidl
parenteda34d02aa8159def0d811846e9417c37cea15cd (diff)
downloadUXP-4577efd50f8361ffa787d7fcba5f5894438f826c.tar
UXP-4577efd50f8361ffa787d7fcba5f5894438f826c.tar.gz
UXP-4577efd50f8361ffa787d7fcba5f5894438f826c.tar.lz
UXP-4577efd50f8361ffa787d7fcba5f5894438f826c.tar.xz
UXP-4577efd50f8361ffa787d7fcba5f5894438f826c.zip
Implement DOM page onvisibilitychange.
Diffstat (limited to 'dom/webidl')
-rw-r--r--dom/webidl/Document.webidl3
1 files changed, 2 insertions, 1 deletions
diff --git a/dom/webidl/Document.webidl b/dom/webidl/Document.webidl
index c895fad39..f05656e84 100644
--- a/dom/webidl/Document.webidl
+++ b/dom/webidl/Document.webidl
@@ -275,10 +275,11 @@ partial interface Document {
object registerElement(DOMString name, optional ElementRegistrationOptions options);
};
-// http://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility/Overview.html#sec-document-interface
+// https://w3c.github.io/page-visibility/#extensions-to-the-document-interface
partial interface Document {
readonly attribute boolean hidden;
readonly attribute VisibilityState visibilityState;
+ attribute EventHandler onvisibilitychange;
};
// http://dev.w3.org/csswg/cssom/#extensions-to-the-document-interface