| 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>
|
|
|