Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<meta charset=utf-8>
<title>window.open() with "noreferrer" tests</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
async_test(t => {
const channelName = "343243423432",
channel = new BroadcastChannel(channelName);
window.open("support/noreferrer-target.html?" + channelName, "", "noreferrer");
channel.onmessage = t.step_func_done(e => {
// Send message first so if asserts throw the popup is still closed
channel.postMessage(null);
assert_equals(e.data.name, "");
assert_equals(e.data.referrer, "");
assert_equals(e.data.haveOpener, false);
});
});
</script>