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 @@
-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 @@
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:
-
-
Switch on this’s type
:
+ Switch on this’s invokerType
:
- "`classic-script`"
- "`module-script`"
@@ -1358,12 +1360,12 @@
-
-
If this’s type
is "`resolve-promise`", then return "`Promise.resolve`".
+ If this’s invokerType
is "`resolve-promise`", then return "`Promise.resolve`".
-
Otherwise, return "`Promise.reject`".
-
-
Let thenOrCatch be "`then`" if type
is "`resolve-promise`"; otherwise "`reject-promise`".
+ Let thenOrCatch be "`then`" if invokerType
is "`resolve-promise`"; otherwise "`reject-promise`".
-
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:
-
@@ -1855,7 +1857,7 @@
If frameTimingInfo’s pending script is not null, then return.
-
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.
-
Run steps given scriptTimingInfo and frameTimingInfo.
-
@@ -2148,7 +2150,7 @@
attribution, in § 3.1
- blockingDuration, in § 4.1
- browsing context container, in § 2
-
- "classic-script", in § 4.2
+
- "classic-script", in § 4.2
- containerId, in § 3.2
- containerName, in § 3.2
- containerSrc, in § 3.2
@@ -2183,7 +2185,7 @@
attribute for PerformanceScriptTiming, in § 4.2
- attribute for TaskAttributionTiming, in § 3.2
-
- "event-listener", in § 4.2
+
- "event-listener", in § 4.2
- event target element id, in § 5.2
- event target element src attribute, in § 5.2
- event type, in § 5.2
@@ -2195,13 +2197,16 @@
flush script entry point, in § 5.3.2
- forcedStyleAndLayoutDuration, in § 4.2
- frame timing info, in § 5.2
+
- invoker, in § 4.2
- invoker name, in § 5.2
- invoker name when created, in § 6.1
+
- invoker type, in § 5.2
+
- invokerType, in § 4.2
- Long animation frame, in § 2
- longest task duration, in § 5.2
- Long task, in § 2
- minimal culprit attribution, in § 3.3
-
- "module-script", in § 4.2
+
- "module-script", in § 4.2
- multiple-contexts, in § 3.1
-
name
@@ -2219,7 +2224,7 @@
PerformanceLongAnimationFrameTiming, in § 4.1
- PerformanceLongTaskTiming, in § 3.1
- PerformanceScriptTiming, in § 4.2
-
- "reject-promise", in § 4.2
+
- "reject-promise", in § 4.2
- relevant frame timing info, in § 5.3.1
- renderStart, in § 4.1
- report classic script creation, in § 5.3.2
@@ -2233,11 +2238,12 @@
report task start time, in § 5.3.1
- report timer handler, in § 5.3.2
- report user callback, in § 5.3.2
-
- "resolve-promise", in § 4.2
+
- "resolve-promise", in § 4.2
- same-origin, in § 3.1
- same-origin-ancestor, in § 3.1
- same-origin-descendant, in § 3.1
- "same-page", in § 4.2
+
- ScriptInvokerType, in § 4.2
-
scripts
@@ -2245,7 +2251,6 @@ dfn for frame timing info, in § 5.2
- script timing info, in § 5.2
-
- ScriptTimingType, in § 4.2
- script url when created, in § 6.1
- ScriptWindowAttribution, in § 4.2
- "self", in § 4.2
@@ -2286,15 +2291,9 @@
method for PerformanceScriptTiming, in § 4.2
- method for TaskAttributionTiming, in § 3.2
-
-
- type
-
- unknown, in § 3.1
- update the rendering start time, in § 5.2
-
- "user-callback", in § 4.2
+
- "user-callback", in § 4.2
-
window
@@ -2549,13 +2548,13 @@ I
[Default] object toJSON
();
};
-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
{
@@ -2570,7 +2569,8 @@ I
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 DOMHighResTimeStamp pauseDuration
;
@@ -3138,7 +3138,7 @@