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 +
Performance Timeline
+ +
+

The following terms are defined in Performance Timeline:

+ + +
+
Long Tasks
@@ -75890,8 +75906,8 @@ END:VCARD
  • 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:

    + +

      +
    1. Set this's visibility state to + visibilityState.

    2. + +
    3. Queue a new + VisibilityStateEntry whose + visibility state is + visibilityState and whose timestamp is + the current high resolution time given document's + relevant global object.

      +
    + +

    The VisibilityStateEntry interface

    + +

    The 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.

    +

    Inert subtrees

    @@ -81116,8 +81181,9 @@ popup4.close();
  • 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.

  • @@ -127730,6 +127796,9 @@ INSERT INTERFACES HERE
    [PDF]
    (Non-normative) Document management — Portable document format — Part 1: PDF. ISO.
    +
    [PERFORMANCETIMELINE]
    +
    Performance Timeline, N. Pena Moreno, W3C.
    +
    [PERMISSIONSPOLICY]
    Permissions Policy, I. Clelland, W3C.