Index: LayoutTests/plugins/access-after-page-destroyed.html |
=================================================================== |
--- LayoutTests/plugins/access-after-page-destroyed.html (revision 0) |
+++ LayoutTests/plugins/access-after-page-destroyed.html (revision 55074) |
@@ -0,0 +1,26 @@ |
+<html> |
+<head> |
+<script> |
+if (window.layoutTestController) { |
+ layoutTestController.setCanOpenWindows(); |
+ layoutTestController.dumpAsText(); |
+ layoutTestController.waitUntilDone(); |
+} |
+ |
+var w = open(); |
+var p = w.navigator.mimeTypes.item(0); |
+w.close(); |
+w = null; |
+ |
+setTimeout(function(){ |
+ p.enabledPlugin; |
+ if (window.layoutTestController) |
+ layoutTestController.notifyDone(); |
+}, 50); // Pause is necessary for the page to get freed |
+ |
+</script> |
+</head> |
+<body> |
+If the page does not trigger a crash the test passed. |
+</body> |
+</html> |