summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/plugins/get-url-that-the-resource-load-delegate-will-disallow.html
blob: d1480c8531f6478c263742291b3dab65e0c5c555 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<html>
<body>
<embed name="plg" type="application/x-webkit-test-netscape"></embed>
<script>
if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.addDisallowedURL('http://www.apple.com');
    
    plg.getURL("http://www.apple.com", "callback");
} else {
    document.write("Cannot run interactively");
}
</script>This tests that we won't crash when a plugin tries to open an URL that the resource load delegate doesn't allow.
<div>SUCCESS - didn't crash</div>
</body>
</html>