blob: e34a44fcaf9ca63c14a1ac6ed1571d5796bb717b [file] [log] [blame]
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var popup = window.open('resources/destination.html');
document.write('location: ' + popup.location + '<br/>');
var props = ['href', 'pathname', 'host', 'hostname', 'hash', 'port',
'protocol', 'search'];
for (var i = 0; i < props.length; ++i) {
var prop = props[i];
document.write(prop + ': ' + popup.location[prop] + '<br/>');
}
</script>