From 5fa66eb3a528864ccd7e3c434d8ab8c9843b5415 Mon Sep 17 00:00:00 2001
From: Noam Rosenthal
Date: Tue, 6 Feb 2024 11:54:12 +0000
Subject: [PATCH 1/3] WebIDL fix: initialize PerformanceEntry instead of
shadowing
---
index.html | 62 +++++++-----------------------------------------------
1 file changed, 8 insertions(+), 54 deletions(-)
diff --git a/index.html b/index.html
index 12ff4ec..dc325a0 100644
--- a/index.html
+++ b/index.html
@@ -420,60 +420,6 @@
-
- The PerformanceResourceTiming interface participates in the
- Performance
- Timeline and extends the following attributes of the
- PerformanceEntry
- interface:
-
-
- -
- name
-
- -
- The name getter steps are to return this's
- requested URL.
-
- -
- entryType
-
- -
- The entryType getter steps are to return the DOMString
- "
resource
".
-
- -
- startTime
-
- -
-
- The startTime getter steps are to convert fetch
- timestamp for this's timing info's [=fetch timing
- info/start time=] and this's relevant global
- object.
-
-
- `startTime` is measured right at the start of the [=fetch=],
- before any redirects. See fetching.
-
-
- -
- duration
-
- -
-
- The duration getter steps are to return this's
- timing info's [=fetch
- timing info/end time=] minus this's timing info's [=fetch timing
- info/start time=].
-
-
-
When toJSON is called, run [[WEBIDL]]'s default toJSON operation.
@@ -1185,6 +1131,7 @@
Create a PerformanceResourceTiming object |entry| in
|global|'s [=global object/realm=].
+
Setup the resource timing entry for |entry|, given
|initiatorType|, |requestedURL|, |timingInfo|, |cacheMode|,
@@ -1214,6 +1161,13 @@
Assert that |cacheMode| is the empty string,
"local
", or "validated
".
+
+ [=initialize a PerformanceEntry|Initialize=] |entry| given
+ the result of converting |timingInfo|'s
+ [=fetch timing info/start time=], "resource
",
+ |requestedURL|, and the result of converting
+ |timingInfo|'s [=fetch timing info/end time=].
+
Set |entry|'s initiator
type to |initiatorType|.
From 9a7ccd97fccfdaba13f97b4861366309b76b57e0 Mon Sep 17 00:00:00 2001
From: Noam Rosenthal
Date: Tue, 6 Feb 2024 12:02:45 +0000
Subject: [PATCH 2/3] Fix ref
---
index.html | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/index.html b/index.html
index dc325a0..63430e0 100644
--- a/index.html
+++ b/index.html
@@ -845,15 +845,12 @@
- To add a PerformanceResourceTiming entry into the
+ To add a PerformanceResourceTiming entry new entry into the
performance
entry buffer, run the following steps:
- - Let new entry be the input PerformanceEntry to be
- added.
-
- If can add resource timing entry returns true and
resource timing buffer full event pending flag is false, run
the following substeps:
From e2720dd8da3a2ede3437f2c7a5e3959cc79299ae Mon Sep 17 00:00:00 2001
From: Noam Rosenthal
Date: Thu, 8 Feb 2024 10:13:20 +0000
Subject: [PATCH 3/3] global
---
index.html | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/index.html b/index.html
index 63430e0..5b56d67 100644
--- a/index.html
+++ b/index.html
@@ -1159,11 +1159,13 @@
"local
", or "validated
".
+ - Let |global| be |entry|'s [=relevant global object=].
+
- [=initialize a PerformanceEntry|Initialize=] |entry| given
the result of converting |timingInfo|'s
- [=fetch timing info/start time=], "
resource
",
+ [=fetch timing info/start time=] given |global|, "resource
",
|requestedURL|, and the result of converting
- |timingInfo|'s [=fetch timing info/end time=].
+ |timingInfo|'s [=fetch timing info/end time=] given |global|.
- Set |entry|'s initiator
type to |initiatorType|.