From 34b5a2f5eeee8fb6689bfb3258f4a081dae69865 Mon Sep 17 00:00:00 2001 From: noamr Date: Fri, 12 Jan 2024 15:20:12 +0000 Subject: [PATCH] deploy: 9fe9106e10a66a3b54e943847c15db628782e2e3 --- index.html | 89 +++++++++++++++++++++++++++--------------------------- 1 file changed, 45 insertions(+), 44 deletions(-) diff --git a/index.html b/index.html index c4c1d4e..6da79a8 100644 --- a/index.html +++ b/index.html @@ -1287,13 +1287,13 @@

4.2. PerformanceScriptTiming interface

-
enum ScriptTimingType {
-    "classic-script",
-    "module-script",
-    "event-listener",
-    "user-callback",
-    "resolve-promise",
-    "reject-promise"
+
enum ScriptInvokerType {
+    "classic-script",
+    "module-script",
+    "event-listener",
+    "user-callback",
+    "resolve-promise",
+    "reject-promise"
 };
 
 enum ScriptWindowAttribution {
@@ -1308,9 +1308,10 @@ 

readonly attribute DOMString name; readonly attribute DOMString entryType; - readonly attribute ScriptTimingType type; + readonly attribute ScriptInvokerType invokerType; + readonly attribute DOMString invoker; readonly attribute DOMHighResTimeStamp executionStart; - readonly attribute DOMString sourceLocation; + readonly attribute DOMString sourceLocation; readonly attribute DOMHighResTimeStamp pauseDuration; readonly attribute DOMHighResTimeStamp forcedStyleAndLayoutDuration; readonly attribute Window? window; @@ -1321,11 +1322,12 @@

A PerformanceScriptTiming has an associated script timing info timing info.

A PerformanceScriptTiming has an associated ScriptWindowAttribution window attribution.

The entryType attribute’s getter step is to return "script".

-

The type attribute’s getter step is to return this's timing info's type.

-

The name attribute’s getter steps are:

+

The name attribute’s getter step is to return "script".

+

The invokerType attribute’s getter step is to return this's timing info's invoker type.

+

The invoker attribute’s getter steps are:

  1. -

    Switch on this’s type:

    +

    Switch on this’s invokerType:

    "`classic-script`"
    "`module-script`" @@ -1358,12 +1360,12 @@

    1. -

      If this’s type is "`resolve-promise`", then return "`Promise.resolve`".

      +

      If this’s invokerType is "`resolve-promise`", then return "`Promise.resolve`".

    2. Otherwise, return "`Promise.reject`".

  2. -

    Let thenOrCatch be "`then`" if type is "`resolve-promise`"; otherwise "`reject-promise`".

    +

    Let thenOrCatch be "`then`" if invokerType is "`resolve-promise`"; otherwise "`reject-promise`".

  3. Return the concatenation of « invoker name, ".", thenOrCatch ».

@@ -1606,9 +1608,9 @@

script timing info is a struct. It has the following items:

-
type +
invoker type
-

A ScriptTimingType.

+

A ScriptInvokerType.

start time
end time
execution start time @@ -1821,7 +1823,7 @@

If frameTimingInfo is null or if frameTimingInfo’s pending script is not null, then return.

  • -

    Assert: frameTimingInfo’s pending script's type is "`classic-script`".

    +

    Assert: frameTimingInfo’s pending script's invoker type is "`classic-script`".

  • Set frameTimingInfo’s pending script's execution start time to the unsafe shared current time.

    @@ -1838,7 +1840,7 @@

    To create script entry point given an environment settings object settings, - a ScriptTimingType type, and steps, + a ScriptInvokerType invokerType, and steps, which is an algorithm that takes a script timing info and an optional frame timing info:
    1. @@ -1855,7 +1857,7 @@

      If frameTimingInfo’s pending script is not null, then return.

    2. Let scriptTimingInfo be a new script timing info whose start time is the unsafe shared current time, -and whose type is type.

      +and whose invoker type is invokerType.

    3. Run steps given scriptTimingInfo and frameTimingInfo.

    4. @@ -2148,7 +2150,7 @@

      attribution, in § 3.1
    5. blockingDuration, in § 4.1
    6. browsing context container, in § 2 -
    7. "classic-script", in § 4.2 +
    8. "classic-script", in § 4.2
    9. containerId, in § 3.2
    10. containerName, in § 3.2
    11. containerSrc, in § 3.2 @@ -2183,7 +2185,7 @@

      attribute for PerformanceScriptTiming, in § 4.2
    12. attribute for TaskAttributionTiming, in § 3.2 -
    13. "event-listener", in § 4.2 +
    14. "event-listener", in § 4.2
    15. event target element id, in § 5.2
    16. event target element src attribute, in § 5.2
    17. event type, in § 5.2 @@ -2195,13 +2197,16 @@

      flush script entry point, in § 5.3.2
    18. forcedStyleAndLayoutDuration, in § 4.2
    19. frame timing info, in § 5.2 +
    20. invoker, in § 4.2
    21. invoker name, in § 5.2
    22. invoker name when created, in § 6.1 +
    23. invoker type, in § 5.2 +
    24. invokerType, in § 4.2
    25. Long animation frame, in § 2
    26. longest task duration, in § 5.2
    27. Long task, in § 2
    28. minimal culprit attribution, in § 3.3 -
    29. "module-script", in § 4.2 +
    30. "module-script", in § 4.2
    31. multiple-contexts, in § 3.1
    32. name @@ -2219,7 +2224,7 @@

      PerformanceLongAnimationFrameTiming, in § 4.1
    33. PerformanceLongTaskTiming, in § 3.1
    34. PerformanceScriptTiming, in § 4.2 -
    35. "reject-promise", in § 4.2 +
    36. "reject-promise", in § 4.2
    37. relevant frame timing info, in § 5.3.1
    38. renderStart, in § 4.1
    39. report classic script creation, in § 5.3.2 @@ -2233,11 +2238,12 @@

      report task start time, in § 5.3.1
    40. report timer handler, in § 5.3.2
    41. report user callback, in § 5.3.2 -
    42. "resolve-promise", in § 4.2 +
    43. "resolve-promise", in § 4.2
    44. same-origin, in § 3.1
    45. same-origin-ancestor, in § 3.1
    46. same-origin-descendant, in § 3.1
    47. "same-page", in § 4.2 +
    48. ScriptInvokerType, in § 4.2
    49. scripts
        @@ -2245,7 +2251,6 @@

        dfn for frame timing info, in § 5.2

    50. script timing info, in § 5.2 -
    51. ScriptTimingType, in § 4.2
    52. script url when created, in § 6.1
    53. ScriptWindowAttribution, in § 4.2
    54. "self", in § 4.2 @@ -2286,15 +2291,9 @@

      method for PerformanceScriptTiming, in § 4.2
    55. method for TaskAttributionTiming, in § 3.2 -
    56. - type -
    57. unknown, in § 3.1
    58. update the rendering start time, in § 5.2 -
    59. "user-callback", in § 4.2 +
    60. "user-callback", in § 4.2
    61. window