Index: LayoutTests/fast/js/script-tests/document-open-getter-throw-no-crash.js |
diff --git a/LayoutTests/fast/js/script-tests/document-open-getter-throw-no-crash.js b/LayoutTests/fast/js/script-tests/document-open-getter-throw-no-crash.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b4f8ccad5ec03f1e4b0501d2ae39bc1f23903405 |
--- /dev/null |
+++ b/LayoutTests/fast/js/script-tests/document-open-getter-throw-no-crash.js |
@@ -0,0 +1,6 @@ |
+description("document.open() - propagate exception thrown when accessing window.open."); |
+ |
+var frame = document.body.appendChild(document.createElement("iframe")); |
+frame.contentWindow.__defineGetter__("open", function() { throw 'PASS (no crash)';}); |
+shouldThrow("frame.contentDocument.open(1, 1, 1, 1, 1);"); |
+ |