Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/plugins/local-geturl-from-remote.html

Issue 1426923007: Remove PluginLoadObserver and related logic, it was only used for NPAPI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 function notify()
5 {
6 if (window.testRunner)
7 testRunner.notifyDone();
8 }
9
10 function runTest()
11 {
12 if (window.testRunner) {
13 testRunner.dumpAsText();
14 testRunner.waitUntilDone();
15 }
16
17 // No need to let this point to a real file.
18
19
20 var result = plg.getURL('file:///tmp.html', '_self');
21 if (result == 1)
22 document.getElementById('result').innerHTML = "SUCCESS";
23 else
24 document.getElementById('result').innerHTML = "FAILURE";
25
26 // Round-trip to the plugin once more, so errors can propagate.
27 plg.getURLNotify("resources/load-me-1.txt", null, "notify");
28 }
29 </script>
30 </head>
31 <body onload="runTest()">
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>
34 <div id="result">FAILURE</div>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698