blob: 87fc32b9652e579a3c1da161d08a66a04e7093f7 [file] [log] [blame]
<!DOCTYPE HTML>
<html>
<head>
<script>
window.onload = function()
{
if (window.testRunner)
{
testRunner.dumpAsText();
testRunner.waitUntilDone();
testRunner.setCanOpenWindows(true);
}
window.addEventListener("message", e => {
var href = e.data.location;
if (href.indexOf('_username') === -1 &&
href.indexOf('_password') === -1) {
alert('PASS');
}
if (window.testRunner)
testRunner.notifyDone();
});
var w = window.open('http://_username:_password@127.0.0.1:8000/security/resources/post-location-to-opener.html');
}
</script>
</head>
<body>This test passes if it alerts the string "PASS".<br/></body>
</html>