| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script> | 3 <script> |
| 4 function notify() | 4 function notify() |
| 5 { | 5 { |
| 6 if (window.testRunner) | 6 if (window.testRunner) |
| 7 testRunner.notifyDone(); | 7 testRunner.notifyDone(); |
| 8 } | 8 } |
| 9 | 9 |
| 10 function runTest() | 10 function runTest() |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 document.getElementById('result').innerHTML = "SUCCESS"; | 22 document.getElementById('result').innerHTML = "SUCCESS"; |
| 23 else | 23 else |
| 24 document.getElementById('result').innerHTML = "FAILURE"; | 24 document.getElementById('result').innerHTML = "FAILURE"; |
| 25 | 25 |
| 26 // Round-trip to the plugin once more, so errors can propagate. | 26 // Round-trip to the plugin once more, so errors can propagate. |
| 27 plg.getURLNotify("resources/load-me-1.txt", null, "notify"); | 27 plg.getURLNotify("resources/load-me-1.txt", null, "notify"); |
| 28 } | 28 } |
| 29 </script> | 29 </script> |
| 30 </head> | 30 </head> |
| 31 <body onload="runTest()"> | 31 <body onload="runTest()"> |
| 32 <div>This tests that a plug-in in a remote document can't access local files usi
ng NPN_GetURL</div> | 32 <div>This tests that a plugin in a remote document can't access local files usin
g NPN_GetURL</div> |
| 33 <embed name="plg" type="application/x-webkit-test-netscape"></embed> | 33 <embed name="plg" type="application/x-webkit-test-netscape"></embed> |
| 34 <div id="result">FAILURE</div> | 34 <div id="result">FAILURE</div> |
| 35 </body> | 35 </body> |
| 36 </html> | 36 </html> |
| OLD | NEW |