Skip to content

Commit 692a580

Browse files
saschanazmoz-wptsync-bot
authored andcommitted
Forbid notification permission in nested first party iframes
Differential Revision: https://phabricator.services.mozilla.com/D265282 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1988751 gecko-commit: 0efcee23ceeb8674f6c7853baa6b0c80d347d3d4 gecko-reviewers: asuth
1 parent c9f2805 commit 692a580

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

notifications/cross-origin-nested.tentative.https.sub.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@
5656

5757
promise_test(async t => {
5858
const result = await promises.get("child");
59-
assert_equals(result.permission, "granted", `should grant the permission`);
60-
assert_true(result.shown, `notification should be shown`);
59+
assert_equals(result.permission, "denied", `should deny the permission`);
60+
assert_false(result.shown, `notification should not be shown`);
6161

6262
const childRequestResult = await promises.get("childRequest");
63-
assert_equals(childRequestResult.permission, "granted", "should accept the permission request");
63+
assert_equals(childRequestResult.permission, "denied", "should deny the permission request");
6464
}, "nested first party iframe");
6565

6666
promise_test(async t => {
@@ -71,7 +71,7 @@
7171

7272
promise_test(async t => {
7373
const result = await promises.get("childWorker");
74-
assert_equals(result.permission, "granted", `should grant the permission`);
75-
assert_true(result.shown, `notification should be shown`);
74+
assert_equals(result.permission, "denied", `should deny the permission`);
75+
assert_false(result.shown, `notification should not be shown`);
7676
}, "nested first party worker");
7777
</script>

0 commit comments

Comments
 (0)