blob: 6a6d29a594975db1d754884dcf5860afe14de76d [file] [log] [blame]
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body>
<p>If the page does not trigger a crash the test passed.</p>
<div id=console></div>
<script>
jsTestIsAsync = true;
function test()
{
var w = open();
var p = w.navigator.mimeTypes.item(0);
if (!p)
testFailed("navigator.mimeTypes is " + p);
w.navigator.plugins.refresh();
w.close();
w = null;
setTimeout(gc, 0);
setTimeout(function() {
try {
p.enabledPlugin;
} catch (ex) {
testFailed(ex.toString());
}
finishJSTest();
}, 50); // Pause is necessary for the page to get freed
}
onload = test;
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>