Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Unified Diff: LayoutTests/plugins/access-after-page-destroyed.html

Issue 3046050: Merge 64293 - 2010-07-28 Justin Schuh <jschuh@chromium.org>... (Closed) Base URL: svn://chrome-svn/chrome/branches/WebKit/472/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/plugins/access-after-page-destroyed-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | LayoutTests/plugins/access-after-page-destroyed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698