blob: f8727db6052cbf014ab71d5c3bddd0db43f83adb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
<!DOCTYPE html>
<html>
<head>
<title>Test for no error reporting for unknown external protocols</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<iframe id="testFrame"></iframe>
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
window.onload = () => {
let testFrame = document.getElementById("testFrame");
try {
testFrame.contentWindow.location.href = "unknownextproto:";
ok(true, "There is no error reporting for unknown external protocol navigation.");
} catch (e) {
ok(false, "There should be no error reporting for unknown external protocol navigation.");
}
SimpleTest.finish();
};
</script>
</body>
</html>
|