blob: 27fee8deb4a8568f259c28fb6d6a1093412597b2 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="/js-test-resources/js-test.js"></script>
</head>
<body onload="load()">
This test checks that URLs with a username but no hostname do not
mistakenly get loaded. If it fails in the browser, you will also see
an image.
<p id="description"></p>
<div id="console"></div>
<img src="http://user@/localhost:8000/misc/resources/compass.jpg" onerror="this.width=0">
<script>
function load() {
shouldBe('document.getElementsByTagName("img")[0].width', "0");
}
</script>
</body>