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

Unified Diff: LayoutTests/http/tests/security/contentSecurityPolicy/resources/reflected-xss-and-xss-protection.js

Issue 19095003: Throw 'SecurityError' upon cross-origin Location access. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebaseline. 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/security/contentSecurityPolicy/resources/reflected-xss-and-xss-protection.js
diff --git a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/reflected-xss-and-xss-protection.js b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/reflected-xss-and-xss-protection.js
index 5348cd49ffd152b35e322eae0d72356a62297311..06bf088848001e00df15654f0883661640c5e5c1 100644
--- a/LayoutTests/http/tests/security/contentSecurityPolicy/resources/reflected-xss-and-xss-protection.js
+++ b/LayoutTests/http/tests/security/contentSecurityPolicy/resources/reflected-xss-and-xss-protection.js
@@ -30,7 +30,7 @@ function testMixedHeader(csp, xssProtection) {
function frameLoaded() {
var frame = document.querySelector('iframe');
try {
- alert('Loaded ' + frame.contentWindow.location + ' into the IFrame.');
+ alert('Loaded ' + frame.contentWindow.location.href + ' into the IFrame.');
} catch (e) {
alert('Loaded cross-origin frame.');
}

Powered by Google App Engine
This is Rietveld 408576698