Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / navigator-plugins-crash.html
blobb50b5a52d8ec0d872af2692f1492e1d2c13c4225
1 <html>
2 <script>
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var plugins = new Array;
8 for (var i = 0; i < navigator.plugins.length; ++i) {
9 plugins.push(navigator.plugins[i]);
12 var mimeTypes = new Array;
13 for (var i = 0; i < navigator.mimeTypes.length; ++i) {
14 mimeTypes.push(navigator.mimeTypes[i]);
17 navigator.plugins.refresh();
19 var output = "<pre>";
21 for (var i = 0; i < plugins.length; ++i) {
22 output += plugins[i].name;
23 output += "\n";
26 for (var i = 0; i < mimeTypes.length; ++i) {
27 output += mimeTypes[i].type;
28 output += "\n";
31 output += "</pre>";
33 //document.writeln(output);
34 document.writeln("Tests access to previously received arrays from navigator.plugins and mimetypes after calling plugins.refresh(). If this text appears and there is no crash, then the test succeeded.");
36 </script>
37 <body>
38 </body></html>