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

Unified Diff: LayoutTests/http/tests/history/resources/cross-origin-replaces-history-object-iframe.html

Issue 19932002: Throw exceptions on all failed cross-origin access checks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: test. Created 7 years, 5 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: 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", "*");
}

Powered by Google App Engine
This is Rietveld 408576698