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

Unified 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, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/plugins/navigator-plugins-in-cross-origin-frame.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/plugins/navigator-plugins-in-cross-origin-frame.html b/third_party/WebKit/LayoutTests/http/tests/plugins/navigator-plugins-in-cross-origin-frame.html
new file mode 100644
index 0000000000000000000000000000000000000000..d2909b28a08c186b1c06b515345b68911484afb3
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/plugins/navigator-plugins-in-cross-origin-frame.html
@@ -0,0 +1,29 @@
+<html>
+<head>
+<script src="resources/navigator-plugins.js"></script>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+}
+
+function log(s) {
+ document.getElementById("console").appendChild(document.createTextNode(s + "\n"));
+}
+
+window.onmessage = function(event) {
+ if (pluginDataAsString() !== event.data)
+ log("FAIL: mismatch in plugin data. The frame's data is " + event.data + " but the parent's data is " + pluginDataAsString());
+ else
+ log("PASS");
+ if (window.testRunner)
+ testRunner.notifyDone();
+}
+
+</script>
+<body>
+ This test checks whether navigator.plugins and navigator.mimeTypes work from a cross-site iframe.
+ <iframe name="child" src="http://localhost:8000/plugins/resources/navigator-plugins-frame.html"></iframe>
+ <div id="console"></div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698