Source code

Revision control

Copy as Markdown

Other Tools

Test Info: Warnings

  • This test has a WPT meta file that expects 1 subtest issues.
  • This WPT test may be referenced by the following Test IDs:
<!DOCTYPE HTML>
<html>
<head>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
</head>
<body>
<button id="button" onclick="popup();">open popup</button>
<script>
function popup() {
window.popupWin = window.open('support/window-name-after-cross-origin-main-frame-navigation-popup.sub.html', '_blank');
}
async_test(t => {
t.add_cleanup(() => {
popupWin.close();
})
document.getElementById('button').click();
onmessage = t.step_func(e => {
assert_true(e.data);
});
}, 'window.name should equal "" after a cross-origin main frame navigation');
</script>
</body>
</html>