diff --git a/source b/source index 65fcc08c6a6..ffc12bcb615 100644 --- a/source +++ b/source @@ -2686,6 +2686,22 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute +
The following terms are defined in Performance Timeline:
+ +PerformanceEntry
+ name
,
+ entryType
,
+ startTime
, and
+ duration
attributes.If document's visibility state equals visibilityState, then return.
Set document's visibility state to - visibilityState.
Set the visibility state of document to + visibilityState.
Run any page visibility change steps which may be defined in other @@ -75911,6 +75927,55 @@ END:VCARD initialized to true.
To set the visibility state of Document
document to
+ visibilityState:
+ +
Set this's visibility state to + visibilityState.
Queue a new
+ VisibilityStateEntry
whose
+ visibility state is
+ visibilityState and whose timestamp is
+ the current high resolution time given document's
+ relevant global object.
VisibilityStateEntry
interfaceThe VisibilityStateEntry
interface exposes visibility changes to the document,
+ from the moment the document becomes active.
[Exposed=(Window)]
+ interface VisibilityStateEntry : PerformanceEntry
{
+ attribute DOMString name; // shadows inherited name
+ attribute DOMString entryType; // shadows inherited entryType
+ attribute DOMHighResTimeStamp startTime; // shadows inherited startTime
+ attribute unsigned long duration; // shadows inherited duration
+ };
+
+ The VisibilityStateEntry
has an associated
+ DOMHighResTimeStamp
+ timestamp.
The VisibilityStateEntry
has an associated "visible
" or
+ "hidden
" visibility state.
The name getter steps are to return + this's state.
+ +The entryType getter steps are to return
+ "visibility-state
".
The startTime getter steps are to return + this's timestamp.
+ +The duration getter steps are to return + zero.
+Let window be document's relevant global object.
Set document's visibility state to browsingContext's - top-level browsing context's system visibility state.
Set the visibility state of document to + browsingContext's top-level browsing context's + system visibility state.
Set browsingContext's active window to window.