blob: 9be43a3965b29a172bb9ca8f0f40b4e9b9b0b0bb [file] [log] [blame]
<html>
<head>
<script>
function runTest()
{
if (window.layoutTestController)
layoutTestController.dumpAsText();
// No need to let this point to a real file.
var result = plg.getURL('file:///tmp.html', '_self');
if (result == 1)
document.getElementById('result').innerHTML = "SUCCESS";
else
document.getElementById('result').innerHTML = "FAILURE";
}
</script>
</head>
<body onload="runTest()">
<div>This tests that a plug-in in a remote document can't access local files using NPN_GetURL</div>
<embed name="plg" type="application/x-webkit-test-netscape"></embed>
<div id="result">FAILURE</div>
</body>
</html>