| OLD | NEW |
| (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> |
| OLD | NEW |