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

Unified Diff: webkit/data/layout_tests/chrome/plugins/get-url-with-iframe-target-no-crash.html

Issue 182003: Fix a crash that the reliability bots caught.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
Index: webkit/data/layout_tests/chrome/plugins/get-url-with-iframe-target-no-crash.html
===================================================================
--- webkit/data/layout_tests/chrome/plugins/get-url-with-iframe-target-no-crash.html (revision 0)
+++ webkit/data/layout_tests/chrome/plugins/get-url-with-iframe-target-no-crash.html (revision 0)
@@ -0,0 +1,21 @@
+<html>
+<script>
+function runtest() {
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ layoutTestController.waitUntilDone();
+ plg.getURLNotify("data:text/html,<body onload='layoutTestController.notifyDone()'></body>", "frame", "callback");
+ plg.parentNode.removeChild(plg)
+ } else {
+ document.write("Cannot run interactively");
+ }
+}
+</script>
+<body onload="runtest()">
+<embed id="plg" type="application/x-webkit-test-netscape"></embed>
+This tests that we do not crash upon trying to deliver NPP_URLNotify to
+a plugin that has been deleted.
+<div id="result">SUCCESS</div>
+<iframe id="frame"></iframe>
+</body>
+</html>
Property changes on: webkit\data\layout_tests\chrome\plugins\get-url-with-iframe-target-no-crash.html
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698