mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-25 20:01:50 +00:00
Bug 1782063 [wpt PR 35263] - Rename window.isAnonymouslyFramed., a=testonly
Automatic update from web-platform-tests Rename window.isAnonymouslyFramed. See corresponding bug: https://github.com/WICG/anonymous-iframe/issues/7 ``` See https://w3ctag.github.io/design-principles/#naming-booleans and other precedents like crossOriginIsolated or originAgentCluster which do not have the is prefix. ``` Bug: 1226469 Change-Id: I2c2176ca132cfe8adeb6d0a29d05607724915e0b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3790944 Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org> Reviewed-by: Mike West <mkwst@chromium.org> Cr-Commit-Position: refs/heads/main@{#1029812} -- wpt-commits: 5962e208e8f97dde2a1b164767999e0c1e2487ba wpt-pr: 35263
This commit is contained in:
parent
7b4b9dd212
commit
dd889b5ea7
@ -15,7 +15,7 @@ promise_test_parallel(async t => {
|
||||
// Wait for navigation to complete.
|
||||
await new Promise(resolve => iframe.onload = resolve);
|
||||
assert_true(iframe.anonymous);
|
||||
assert_true(iframe.contentWindow.isAnonymouslyFramed);
|
||||
assert_true(iframe.contentWindow.anonymouslyFramed);
|
||||
assert_equals(undefined, iframe.contentWindow.modified);
|
||||
}, "Anonymous (false => true) => window not reused.");
|
||||
|
||||
@ -30,7 +30,7 @@ promise_test_parallel(async t => {
|
||||
// Wait for navigation to complete.
|
||||
await new Promise(resolve => iframe.onload = resolve);
|
||||
assert_false(iframe.anonymous);
|
||||
assert_false(iframe.contentWindow.isAnonymouslyFramed);
|
||||
assert_false(iframe.contentWindow.anonymouslyFramed);
|
||||
assert_equals(undefined, iframe.contentWindow.modified);
|
||||
}, "Anonymous (true => false) => window not reused.");
|
||||
|
||||
@ -45,6 +45,6 @@ promise_test_parallel(async t => {
|
||||
// Wait for navigation to complete.
|
||||
await new Promise(resolve => iframe.onload = resolve);
|
||||
assert_true(iframe.anonymous);
|
||||
assert_true(iframe.contentWindow.isAnonymouslyFramed);
|
||||
assert_true(iframe.contentWindow.anonymouslyFramed);
|
||||
assert_true(iframe.contentWindow.modified);
|
||||
}, "Anonymous (true => true) => window reused.");
|
||||
|
@ -32,8 +32,8 @@ promise_test(async test => {
|
||||
|
||||
// 3. Expect it not to be considered anonymous.
|
||||
send(frame_fenced, `
|
||||
send("${msg_queue}", window.isAnonymouslyFramed);
|
||||
send("${msg_queue}", window.anonymouslyFramed);
|
||||
`);
|
||||
assert_equals(await receive(msg_queue), "false",
|
||||
"Check window.isAnonymouslyFramed in FencedFrame");
|
||||
"Check window.anonymouslyFramed in FencedFrame");
|
||||
}, 'FencedFrame within an AnonymousIframe is not anonymous')
|
||||
|
@ -15,7 +15,7 @@ promise_test_parallel(async t => {
|
||||
const child = document.createElement("iframe");
|
||||
parent.contentDocument.body.appendChild(child);
|
||||
assert_false(child.anonymous);
|
||||
assert_true(child.contentWindow.isAnonymouslyFramed);
|
||||
assert_true(child.contentWindow.anonymouslyFramed);
|
||||
}, "Initial empty document inherits from parent's document.");
|
||||
|
||||
promise_test_parallel(async t => {
|
||||
@ -30,5 +30,5 @@ promise_test_parallel(async t => {
|
||||
child.anonymous = true;
|
||||
parent.contentDocument.body.appendChild(child);
|
||||
assert_true(child.anonymous);
|
||||
assert_true(child.contentWindow.isAnonymouslyFramed);
|
||||
assert_true(child.contentWindow.anonymouslyFramed);
|
||||
}, "Initial empty document inherits from its's iframe's anonymous attribute.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user