Index: LayoutTests/http/tests/history/resources/cross-origin-replaces-history-object-iframe.html |
diff --git a/LayoutTests/http/tests/history/resources/cross-origin-replaces-history-object-iframe.html b/LayoutTests/http/tests/history/resources/cross-origin-replaces-history-object-iframe.html |
index 9aeb1b6ca5bba6125b861a0822685999a3ba2621..21699d13e3fc675b29843e068e320cb85940a9e5 100644 |
--- a/LayoutTests/http/tests/history/resources/cross-origin-replaces-history-object-iframe.html |
+++ b/LayoutTests/http/tests/history/resources/cross-origin-replaces-history-object-iframe.html |
@@ -15,7 +15,11 @@ window.onmessage = function(evt) |
function setHistoryLength() |
{ |
alert("Attempting to clear parent window's history object:"); |
- parent.window.history = ""; |
+ try { |
+ parent.window.history = ""; |
+ } catch (e) { |
+ alert("PASS: access to parent.window.history threw an exception."); |
+ } |
parent.window.postMessage("done", "*"); |
} |