Files
tubestation/testing/web-platform/tests/common/window-name-setter.html
Yuki Shiino 28acdb6207 Bug 1697709 [wpt PR 27956] - v8bindings: Enable the fix of cross origin window name visibility, a=testonly
Automatic update from web-platform-tests
v8bindings: Enable the fix of cross origin window name visibility

Enables the fix of cross origin window name visibility in
production.

This fix was once applied back in 2017, but got reverted due to
a bug in youtube.com (not because the fix was wrong).  We've been
disabling the fix since then.  The bug in youtube.com was fixed
many years ago, so nothing should prevent us to enable the fix now.

https://chromestatus.com/metrics/feature/timeline/popularity/1872
shows the affected cases of this fix as 0.045% of page loads.
So, we shouldn't hit the same severe trouble like the one of
youtube.com in the past.

Bug: 538562
Change-Id: Ia28090493c2eb1f67d65de52f64690bb755ed38a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2734200
Reviewed-by: Kent Tamura <tkent@chromium.org>
Reviewed-by: Ken Buchanan <kenrb@chromium.org>
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Commit-Queue: Yuki Shiino <yukishiino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#861825}

--

wpt-commits: d758aedae2d5a96604a07e915795ba00d2b4fe57
wpt-pr: 27956
2021-03-19 10:34:56 +00:00

13 lines
245 B
HTML

<!DOCTYPE html>
<meta charset="utf-8">
<title>A page that sets window.name</title>
<script>
"use strict";
window.onload = () => {
window.name = location.hash.slice(1); // Drop the first '#' character.
window.name = "spices";
};
</script>