summaryrefslogtreecommitdiffstats
path: root/dom/security/featurepolicy
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:33 +0000
commit086c044dc34dfc0f74fbe41f4ecb402b2cd34884 (patch)
treea4f824bd33cb075dd5aa3eb5a0a94af221bbe83a /dom/security/featurepolicy
parentAdding debian version 124.0.1-1. (diff)
downloadfirefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.tar.xz
firefox-086c044dc34dfc0f74fbe41f4ecb402b2cd34884.zip
Merging upstream version 125.0.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/security/featurepolicy')
-rw-r--r--dom/security/featurepolicy/test/mochitest/mochitest.toml2
-rw-r--r--dom/security/featurepolicy/test/mochitest/test_initial_aboutblank.html26
2 files changed, 28 insertions, 0 deletions
diff --git a/dom/security/featurepolicy/test/mochitest/mochitest.toml b/dom/security/featurepolicy/test/mochitest/mochitest.toml
index c621331596..b61b067b97 100644
--- a/dom/security/featurepolicy/test/mochitest/mochitest.toml
+++ b/dom/security/featurepolicy/test/mochitest/mochitest.toml
@@ -10,5 +10,7 @@ support-files = [
["test_featureList.html"]
+["test_initial_aboutblank.html"]
+
["test_parser.html"]
fail-if = ["xorigin"]
diff --git a/dom/security/featurepolicy/test/mochitest/test_initial_aboutblank.html b/dom/security/featurepolicy/test/mochitest/test_initial_aboutblank.html
new file mode 100644
index 0000000000..79d1bfd4c4
--- /dev/null
+++ b/dom/security/featurepolicy/test/mochitest/test_initial_aboutblank.html
@@ -0,0 +1,26 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <title>Test feature policy - Initial about:blank</title>
+ <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
+</head>
+<body>
+<iframe name="parentIframe" allow="fullscreen 'none'" srcdoc="
+ <iframe name='regular'></iframe>
+ <iframe name='transient'></iframe>
+ <script>transient.stop()</script>
+"></iframe>
+
+<script type="text/javascript">
+add_task(function testAboutBlank() {
+ isDeeply(frames[0].transient.document.featurePolicy.allowedFeatures(),
+ frames[0].document.featurePolicy.allowedFeatures(),
+ "check allowed feature list for initial about:blank");
+ isDeeply(frames[0].regular.document.featurePolicy.allowedFeatures(),
+ frames[0].document.featurePolicy.allowedFeatures(),
+ "check allowed feature list for real load about:blank");
+});
+</script>
+</body>
+</html>