Skip to content

Commit 141a1af

Browse files
authored
IDL patches for ReportBody (#1584)
* Add patch for ed/idl/crash-reporting.idl * Add patch for ed/idl/csp-next.idl * Add patch for ed/idl/CSP.idl * Add patch for ed/idl/deprecation-reporting.idl * Add patch for ed/idl/intervention-reporting.idl * Add patch for ed/idl/permissions-policy.idl
1 parent 1d50fd5 commit 141a1af

File tree

6 files changed

+240
-0
lines changed

6 files changed

+240
-0
lines changed

ed/idlpatches/CSP.idl.patch

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
From 85479132134d3bdedda543910b0559ffa895c4af Mon Sep 17 00:00:00 2001
2+
From: Francois Daoust <[email protected]>
3+
Date: Mon, 16 Jun 2025 12:09:32 +0200
4+
Subject: [PATCH] Turn interface into dictionary
5+
6+
Pending complete resolution of:
7+
https://github.com/w3c/reporting/issues/216
8+
---
9+
ed/idl/CSP.idl | 26 ++++++++++++--------------
10+
1 file changed, 12 insertions(+), 14 deletions(-)
11+
12+
diff --git a/ed/idl/CSP.idl b/ed/idl/CSP.idl
13+
index d4a6377ebb..cee3015c7e 100644
14+
--- a/ed/idl/CSP.idl
15+
+++ b/ed/idl/CSP.idl
16+
@@ -3,20 +3,18 @@
17+
// (https://github.com/w3c/webref)
18+
// Source: Content Security Policy Level 3 (https://w3c.github.io/webappsec-csp/)
19+
20+
-[Exposed=Window]
21+
-interface CSPViolationReportBody : ReportBody {
22+
- [Default] object toJSON();
23+
- readonly attribute USVString documentURL;
24+
- readonly attribute USVString? referrer;
25+
- readonly attribute USVString? blockedURL;
26+
- readonly attribute DOMString effectiveDirective;
27+
- readonly attribute DOMString originalPolicy;
28+
- readonly attribute USVString? sourceFile;
29+
- readonly attribute DOMString? sample;
30+
- readonly attribute SecurityPolicyViolationEventDisposition disposition;
31+
- readonly attribute unsigned short statusCode;
32+
- readonly attribute unsigned long? lineNumber;
33+
- readonly attribute unsigned long? columnNumber;
34+
+dictionary CSPViolationReportBody : ReportBody {
35+
+ USVString documentURL;
36+
+ USVString? referrer;
37+
+ USVString? blockedURL;
38+
+ DOMString effectiveDirective;
39+
+ DOMString originalPolicy;
40+
+ USVString? sourceFile;
41+
+ DOMString? sample;
42+
+ SecurityPolicyViolationEventDisposition disposition;
43+
+ unsigned short statusCode;
44+
+ unsigned long? lineNumber;
45+
+ unsigned long? columnNumber;
46+
};
47+
48+
enum SecurityPolicyViolationEventDisposition {
49+
--
50+
2.37.1.windows.1
51+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
From db6d1eb54b5bc6ebf5096fbcdb75feaa3158649b Mon Sep 17 00:00:00 2001
2+
From: Francois Daoust <[email protected]>
3+
Date: Mon, 16 Jun 2025 12:07:43 +0200
4+
Subject: [PATCH] Turn interface into dictionary
5+
6+
Pending complete resolution of:
7+
https://github.com/w3c/reporting/issues/216
8+
---
9+
ed/idl/crash-reporting.idl | 12 +++++-------
10+
1 file changed, 5 insertions(+), 7 deletions(-)
11+
12+
diff --git a/ed/idl/crash-reporting.idl b/ed/idl/crash-reporting.idl
13+
index ba21afcf39..d10f357379 100644
14+
--- a/ed/idl/crash-reporting.idl
15+
+++ b/ed/idl/crash-reporting.idl
16+
@@ -3,11 +3,9 @@
17+
// (https://github.com/w3c/webref)
18+
// Source: Crash Reporting (https://wicg.github.io/crash-reporting/)
19+
20+
-[Exposed=(Window,Worker)]
21+
-interface CrashReportBody : ReportBody {
22+
- [Default] object toJSON();
23+
- readonly attribute DOMString? reason;
24+
- readonly attribute DOMString? stack;
25+
- readonly attribute boolean? is_top_level;
26+
- readonly attribute DocumentVisibilityState? page_visibility;
27+
+dictionary CrashReportBody : ReportBody {
28+
+ DOMString? reason;
29+
+ DOMString? stack;
30+
+ boolean? is_top_level;
31+
+ DocumentVisibilityState? page_visibility;
32+
};
33+
--
34+
2.37.1.windows.1
35+

ed/idlpatches/csp-next.idl.patch

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From cea604220649684e3a39a34687544304cecc4fcf Mon Sep 17 00:00:00 2001
2+
From: Francois Daoust <[email protected]>
3+
Date: Mon, 16 Jun 2025 12:08:49 +0200
4+
Subject: [PATCH] Turn interface into dictionary
5+
6+
Pending complete resolution of:
7+
https://github.com/w3c/reporting/issues/216
8+
---
9+
ed/idl/csp-next.idl | 14 ++++++--------
10+
1 file changed, 6 insertions(+), 8 deletions(-)
11+
12+
diff --git a/ed/idl/csp-next.idl b/ed/idl/csp-next.idl
13+
index d94b36cf88..f17c4b3a5f 100644
14+
--- a/ed/idl/csp-next.idl
15+
+++ b/ed/idl/csp-next.idl
16+
@@ -10,12 +10,10 @@ enum ScriptingPolicyViolationType {
17+
"eval"
18+
};
19+
20+
-[Exposed=(Window,Worker), SecureContext]
21+
-interface ScriptingPolicyReportBody : ReportBody {
22+
- [Default] object toJSON();
23+
- readonly attribute DOMString violationType;
24+
- readonly attribute USVString? violationURL;
25+
- readonly attribute USVString? violationSample;
26+
- readonly attribute unsigned long lineno;
27+
- readonly attribute unsigned long colno;
28+
+dictionary ScriptingPolicyReportBody : ReportBody {
29+
+ DOMString violationType;
30+
+ USVString? violationURL;
31+
+ USVString? violationSample;
32+
+ unsigned long lineno;
33+
+ unsigned long colno;
34+
};
35+
--
36+
2.37.1.windows.1
37+
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From cb1c6ea2a6b172c3eb6df15a92a2c39ffb103f16 Mon Sep 17 00:00:00 2001
2+
From: Francois Daoust <[email protected]>
3+
Date: Mon, 16 Jun 2025 12:10:09 +0200
4+
Subject: [PATCH] Turn interface into dictionary
5+
6+
Pending complete resolution of:
7+
https://github.com/w3c/reporting/issues/216
8+
---
9+
ed/idl/deprecation-reporting.idl | 16 +++++++---------
10+
1 file changed, 7 insertions(+), 9 deletions(-)
11+
12+
diff --git a/ed/idl/deprecation-reporting.idl b/ed/idl/deprecation-reporting.idl
13+
index 4cf76ba811..8f6e963918 100644
14+
--- a/ed/idl/deprecation-reporting.idl
15+
+++ b/ed/idl/deprecation-reporting.idl
16+
@@ -3,13 +3,11 @@
17+
// (https://github.com/w3c/webref)
18+
// Source: Deprecation Reporting (https://wicg.github.io/deprecation-reporting/)
19+
20+
-[Exposed=(Window,Worker)]
21+
-interface DeprecationReportBody : ReportBody {
22+
- [Default] object toJSON();
23+
- readonly attribute DOMString id;
24+
- readonly attribute object? anticipatedRemoval;
25+
- readonly attribute DOMString message;
26+
- readonly attribute DOMString? sourceFile;
27+
- readonly attribute unsigned long? lineNumber;
28+
- readonly attribute unsigned long? columnNumber;
29+
+dictionary DeprecationReportBody : ReportBody {
30+
+ DOMString id;
31+
+ object? anticipatedRemoval;
32+
+ DOMString message;
33+
+ DOMString? sourceFile;
34+
+ unsigned long? lineNumber;
35+
+ unsigned long? columnNumber;
36+
};
37+
--
38+
2.37.1.windows.1
39+
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From 7b1e4bfdc8e0bb7390e6ba1f0a16eb2c5bb0f422 Mon Sep 17 00:00:00 2001
2+
From: Francois Daoust <[email protected]>
3+
Date: Mon, 16 Jun 2025 12:10:46 +0200
4+
Subject: [PATCH] Turn interface into dictionary
5+
6+
Pending complete resolution of:
7+
https://github.com/w3c/reporting/issues/216
8+
---
9+
ed/idl/intervention-reporting.idl | 14 ++++++--------
10+
1 file changed, 6 insertions(+), 8 deletions(-)
11+
12+
diff --git a/ed/idl/intervention-reporting.idl b/ed/idl/intervention-reporting.idl
13+
index 3c3b8001e7..e1fabd8bf2 100644
14+
--- a/ed/idl/intervention-reporting.idl
15+
+++ b/ed/idl/intervention-reporting.idl
16+
@@ -3,12 +3,10 @@
17+
// (https://github.com/w3c/webref)
18+
// Source: Intervention Reporting (https://wicg.github.io/intervention-reporting/)
19+
20+
-[Exposed=(Window,Worker)]
21+
-interface InterventionReportBody : ReportBody {
22+
- [Default] object toJSON();
23+
- readonly attribute DOMString id;
24+
- readonly attribute DOMString message;
25+
- readonly attribute DOMString? sourceFile;
26+
- readonly attribute unsigned long? lineNumber;
27+
- readonly attribute unsigned long? columnNumber;
28+
+dictionary InterventionReportBody : ReportBody {
29+
+ DOMString id;
30+
+ DOMString message;
31+
+ DOMString? sourceFile;
32+
+ unsigned long? lineNumber;
33+
+ unsigned long? columnNumber;
34+
};
35+
--
36+
2.37.1.windows.1
37+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
From 4e1302e1192564ceeaf443e0b044ca9f559afeb0 Mon Sep 17 00:00:00 2001
2+
From: Francois Daoust <[email protected]>
3+
Date: Mon, 16 Jun 2025 12:11:25 +0200
4+
Subject: [PATCH] Turn interface into dictionary
5+
6+
Pending complete resolution of:
7+
https://github.com/w3c/reporting/issues/216
8+
---
9+
ed/idl/permissions-policy.idl | 18 ++++++++----------
10+
1 file changed, 8 insertions(+), 10 deletions(-)
11+
12+
diff --git a/ed/idl/permissions-policy.idl b/ed/idl/permissions-policy.idl
13+
index b17304de8d..46eb6914a3 100644
14+
--- a/ed/idl/permissions-policy.idl
15+
+++ b/ed/idl/permissions-policy.idl
16+
@@ -19,14 +19,12 @@ partial interface HTMLIFrameElement {
17+
[SameObject] readonly attribute PermissionsPolicy permissionsPolicy;
18+
};
19+
20+
-[Exposed=Window]
21+
-interface PermissionsPolicyViolationReportBody : ReportBody {
22+
- [Default] object toJSON();
23+
- readonly attribute DOMString featureId;
24+
- readonly attribute DOMString? sourceFile;
25+
- readonly attribute long? lineNumber;
26+
- readonly attribute long? columnNumber;
27+
- readonly attribute DOMString disposition;
28+
- readonly attribute DOMString? allowAttribute;
29+
- readonly attribute DOMString? srcAttribute;
30+
+dictionary PermissionsPolicyViolationReportBody : ReportBody {
31+
+ DOMString featureId;
32+
+ DOMString? sourceFile;
33+
+ long? lineNumber;
34+
+ long? columnNumber;
35+
+ DOMString disposition;
36+
+ DOMString? allowAttribute;
37+
+ DOMString? srcAttribute;
38+
};
39+
--
40+
2.37.1.windows.1
41+

0 commit comments

Comments
 (0)