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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/plugins/create-v8-script-objects.html

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 months 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 type="text/javascript">
4 if (window.testRunner) {
5 testRunner.dumpAsText();
6 testRunner.waitUntilDone();
7 }
8
9 function onSubframeLoaded() {
10 document.getElementById('pluginContainer').innerHTML =
11 '<embed name="plugin" type="application/x-webkit-test-netscape"></embed> ';
12 document.plugin.testEvaluate('outputResult()');
13
14 if (window.testRunner)
15 testRunner.notifyDone();
16 }
17
18 function outputResult() {
19 document.getElementById('result').innerHTML = 'SUCCESS';
20 }
21 </script>
22 </head>
23 <body>
24 <div>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=74515">bug 74515< /a>: npCreateV8ScriptObject() should not return an existing V8NPObject if the ro otObject doesn't match.</div>
25 <div>The subframe causes an entry corresponding to window.top to be added to sta ticV8NPObjectMap with the subframe as rootObject. When the plugin in the main fr ame executes script "outputResult()", the existing entry in staticV8NPObjectMap should not be used. Otherwise the wrong outputResult(), which is in the subframe , will be called.
26 </div>
27 <iframe name="childFrame" src="resources/create-v8-script-objects-iframe.html">< /iframe>
28 <div id="pluginContainer"></div>
29 <div id="result">Running...</div>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698