Skip to content

Commit

Permalink
[Anonymous Iframe] Change window.anonymous to window.isAnonymouslyFramed
Browse files Browse the repository at this point in the history
Since there's a bunch of usage of window.anonymous in various of origins
currently in the world, we decide to change the naming to a more precise
and un-confusing `isAnonymouslyFramed`. See more:
WICG/anonymous-iframe#1

Bug: 1323180
Change-Id: I81637cdb004e87408235edb9b367062f62358577
  • Loading branch information
iVanlIsh authored and chromium-wpt-export-bot committed May 6, 2022
1 parent f33ef39 commit b30c5ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html/anonymous-iframe/fenced-frame.tentative.https.window.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ promise_test(async test => {

// 3. Expect it not to be considered anonymous.
send(frame_fenced, `
send("${msg_queue}", window.anonymous);
send("${msg_queue}", window.isAnonymouslyFramed);
`);
assert_equals(await receive(msg_queue), "false",
"Check window.anonymous in FencedFrame");
"Check window.isAnonymouslyFramed in FencedFrame");
}, 'FencedFrame within an AnonymousIframe is not anonymous')

0 comments on commit b30c5ef

Please sign in to comment.