diff options
Diffstat (limited to 'webkit/data/layout_tests/chrome/plugins/get-url-with-iframe-target-no-crash.html')
-rw-r--r-- | webkit/data/layout_tests/chrome/plugins/get-url-with-iframe-target-no-crash.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/webkit/data/layout_tests/chrome/plugins/get-url-with-iframe-target-no-crash.html b/webkit/data/layout_tests/chrome/plugins/get-url-with-iframe-target-no-crash.html new file mode 100644 index 0000000..35d1a09 --- /dev/null +++ b/webkit/data/layout_tests/chrome/plugins/get-url-with-iframe-target-no-crash.html @@ -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> |