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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/plugins/navigator-plugins-in-cross-origin-frame.html

Issue 2121433002: Fix navigator.plugins and navigator.mimeTypes for OOPIFs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 5 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 src="resources/navigator-plugins.js"></script>
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 testRunner.waitUntilDone();
8 }
9
10 function log(s) {
11 document.getElementById("console").appendChild(document.createTextNode(s + " \n"));
12 }
13
14 window.onmessage = function(event) {
15 if (pluginDataAsString() !== event.data)
16 log("FAIL: mismatch in plugin data. The frame's data is " + event.data + " but the parent's data is " + pluginDataAsString());
17 else
18 log("PASS");
19 if (window.testRunner)
20 testRunner.notifyDone();
21 }
22
23 </script>
24 <body>
25 This test checks whether navigator.plugins and navigator.mimeTypes work from a cross-site iframe.
26 <iframe name="child" src="http://localhost:8000/plugins/resources/navigator- plugins-frame.html"></iframe>
27 <div id="console"></div>
28 </body>
29 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698