summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/meta/trusted-types
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:34:50 +0000
commitdef92d1b8e9d373e2f6f27c366d578d97d8960c6 (patch)
tree2ef34b9ad8bb9a9220e05d60352558b15f513894 /testing/web-platform/meta/trusted-types
parentAdding debian version 125.0.3-1. (diff)
downloadfirefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.tar.xz
firefox-def92d1b8e9d373e2f6f27c366d578d97d8960c6.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/meta/trusted-types')
-rw-r--r--testing/web-platform/meta/trusted-types/TrustedTypePolicy-createXXX.html.ini10
-rw-r--r--testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-constants.html.ini18
-rw-r--r--testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-createXYZTests.html.ini84
-rw-r--r--testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-nameTests.html.ini7
-rw-r--r--testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-unenforced.html.ini3
-rw-r--r--testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-getAttributeType-svg.html.ini12
-rw-r--r--testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-getPropertyType.html.ini3
-rw-r--r--testing/web-platform/meta/trusted-types/trusted-types-event-handlers.html.ini10
-rw-r--r--testing/web-platform/meta/trusted-types/worker-constructor.https.html.ini13
9 files changed, 34 insertions, 126 deletions
diff --git a/testing/web-platform/meta/trusted-types/TrustedTypePolicy-createXXX.html.ini b/testing/web-platform/meta/trusted-types/TrustedTypePolicy-createXXX.html.ini
index 0e1933a376..fefe7d69f2 100644
--- a/testing/web-platform/meta/trusted-types/TrustedTypePolicy-createXXX.html.ini
+++ b/testing/web-platform/meta/trusted-types/TrustedTypePolicy-createXXX.html.ini
@@ -1,10 +1,2 @@
[TrustedTypePolicy-createXXX.html]
- expected: ERROR
- [calling undefined callbacks throws]
- expected: FAIL
-
- [Attributes without type constraints will work as before.]
- expected: FAIL
-
- [trustedTypes.createPolicy(.., null) creates empty policy.]
- expected: FAIL
+ prefs: [dom.security.trusted_types.enabled:true]
diff --git a/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-constants.html.ini b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-constants.html.ini
index e13d9d52a8..ebe5a53e8e 100644
--- a/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-constants.html.ini
+++ b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-constants.html.ini
@@ -1,18 +1,2 @@
[TrustedTypePolicyFactory-constants.html]
- [trustedTypes.emptyHTML returns the intended value.]
- expected: FAIL
-
- [trustedTypes.emptyHTML cannot be redefined.]
- expected: FAIL
-
- [trustedTypes.emptyHTML cannot be redefined via defineProperty.]
- expected: FAIL
-
- [trustedTypes.emptyScript returns the intended value.]
- expected: FAIL
-
- [trustedTypes.emptyScript cannot be redefined.]
- expected: FAIL
-
- [trustedTypes.emptyScript cannot be redefined via defineProperty.]
- expected: FAIL
+ prefs: [dom.security.trusted_types.enabled:true]
diff --git a/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-createXYZTests.html.ini b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-createXYZTests.html.ini
index fdf37506a6..9f32b35fbc 100644
--- a/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-createXYZTests.html.ini
+++ b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-createXYZTests.html.ini
@@ -1,84 +1,2 @@
[TrustedTypePolicyFactory-createPolicy-createXYZTests.html]
- [html = identity function]
- expected: FAIL
-
- [html = null]
- expected: FAIL
-
- [html = string + global string]
- expected: FAIL
-
- [html = identity function, global string changed]
- expected: FAIL
-
- [html = callback that throws]
- expected: FAIL
-
- [html = this bound to an object]
- expected: FAIL
-
- [html = this without bind]
- expected: FAIL
-
- [html - calling undefined callback throws]
- expected: FAIL
-
- [createHTML defined - calling undefined callbacks throws]
- expected: FAIL
-
- [script = identity function]
- expected: FAIL
-
- [script = null]
- expected: FAIL
-
- [script = string + global string]
- expected: FAIL
-
- [script = identity function, global string changed]
- expected: FAIL
-
- [script = callback that throws]
- expected: FAIL
-
- [script = this bound to an object]
- expected: FAIL
-
- [script = this without bind]
- expected: FAIL
-
- [script - calling undefined callback throws]
- expected: FAIL
-
- [createScript defined - calling undefined callbacks throws]
- expected: FAIL
-
- [script_url = identity function]
- expected: FAIL
-
- [script_url = null]
- expected: FAIL
-
- [script_url = string + global string]
- expected: FAIL
-
- [script_url = identity function, global string changed]
- expected: FAIL
-
- [script_url = callback that throws]
- expected: FAIL
-
- [script_url = this bound to an object]
- expected: FAIL
-
- [script_url = this without bind]
- expected: FAIL
-
- [script_url - calling undefined callback throws]
- expected: FAIL
-
- [createScriptURL defined - calling undefined callbacks throws]
- expected: FAIL
-
- [Arbitrary number of arguments]
- expected: FAIL
+ prefs: [dom.security.trusted_types.enabled:true]
diff --git a/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-nameTests.html.ini b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-nameTests.html.ini
index 1119bbdf45..2f3820ca1e 100644
--- a/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-nameTests.html.ini
+++ b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-nameTests.html.ini
@@ -1,9 +1,4 @@
[TrustedTypePolicyFactory-createPolicy-nameTests.html]
- [policy.name = name]
- expected: FAIL
-
+ prefs: [dom.security.trusted_types.enabled:true]
[duplicate policy name attempt throws]
expected: FAIL
-
- [Error messages for duplicates and unlisted policies should be different]
- expected: FAIL
diff --git a/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-unenforced.html.ini b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-unenforced.html.ini
index 7a02d1ae00..57c97566f7 100644
--- a/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-unenforced.html.ini
+++ b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-createPolicy-unenforced.html.ini
@@ -1,3 +1,2 @@
[TrustedTypePolicyFactory-createPolicy-unenforced.html]
- [Duplicate policy names should be tolerated (unless in enforcing mode)]
- expected: FAIL
+ prefs: [dom.security.trusted_types.enabled:true]
diff --git a/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-getAttributeType-svg.html.ini b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-getAttributeType-svg.html.ini
new file mode 100644
index 0000000000..98d6ec011a
--- /dev/null
+++ b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-getAttributeType-svg.html.ini
@@ -0,0 +1,12 @@
+[TrustedTypePolicyFactory-getAttributeType-svg.html]
+ [trustedTypes.getAttributeType html script[href\]]
+ expected: FAIL
+
+ [trustedTypes.getAttributeType svg script[href\]]
+ expected: FAIL
+
+ [trustedTypes.getAttributeType svg script[href\] xlink href]
+ expected: FAIL
+
+ [trustedTypes.getAttributeType svg script[href\] other href]
+ expected: FAIL
diff --git a/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-getPropertyType.html.ini b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-getPropertyType.html.ini
index 95961f3d92..bb3fd7a633 100644
--- a/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-getPropertyType.html.ini
+++ b/testing/web-platform/meta/trusted-types/TrustedTypePolicyFactory-getPropertyType.html.ini
@@ -70,3 +70,6 @@
[oBjEcT.codebase is maybe defined]
expected: FAIL
+
+ [getPropertyType vs getAttributeType for event handler.]
+ expected: FAIL
diff --git a/testing/web-platform/meta/trusted-types/trusted-types-event-handlers.html.ini b/testing/web-platform/meta/trusted-types/trusted-types-event-handlers.html.ini
index a1e80abaab..19d3ef57f3 100644
--- a/testing/web-platform/meta/trusted-types/trusted-types-event-handlers.html.ini
+++ b/testing/web-platform/meta/trusted-types/trusted-types-event-handlers.html.ini
@@ -302,14 +302,8 @@
[Event handler div.onfullscreenerror should be blocked.]
expected: FAIL
- [Event handler div.ontouchend should be blocked.]
+ [Event handler div.oncontextrestored should be blocked.]
expected: FAIL
- [Event handler div.ontouchstart should be blocked.]
- expected: FAIL
-
- [Event handler div.ontouchcancel should be blocked.]
- expected: FAIL
-
- [Event handler div.ontouchmove should be blocked.]
+ [Event handler div.oncontextlost should be blocked.]
expected: FAIL
diff --git a/testing/web-platform/meta/trusted-types/worker-constructor.https.html.ini b/testing/web-platform/meta/trusted-types/worker-constructor.https.html.ini
index 7118e834ad..1bd6eedac2 100644
--- a/testing/web-platform/meta/trusted-types/worker-constructor.https.html.ini
+++ b/testing/web-platform/meta/trusted-types/worker-constructor.https.html.ini
@@ -1,2 +1,13 @@
[worker-constructor.https.html]
- expected: ERROR
+ prefs: [dom.security.trusted_types.enabled:true]
+ [Block Worker creation via string]
+ expected: FAIL
+
+ [Block SharedWorker creation via string]
+ expected: FAIL
+
+ [Block ServiceWorker creation via String]
+ expected: FAIL
+
+ [Create ServiceWorker via string with default policy.]
+ expected: FAIL