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

Unified Diff: LayoutTests/http/tests/security/postMessage/origin-unaffected-by-document-domain.html

Issue 50573004: Don't set document.domain to an IP address fragment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: missing weboriginexport header Created 7 years, 2 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/postMessage/origin-unaffected-by-document-domain.html
diff --git a/LayoutTests/http/tests/security/postMessage/origin-unaffected-by-document-domain.html b/LayoutTests/http/tests/security/postMessage/origin-unaffected-by-document-domain.html
index fdbce19e062296f5484359dcc5ef93a5f5439c8f..8df7a5198ae8713d13916905867684536095bcaf 100644
--- a/LayoutTests/http/tests/security/postMessage/origin-unaffected-by-document-domain.html
+++ b/LayoutTests/http/tests/security/postMessage/origin-unaffected-by-document-domain.html
@@ -8,6 +8,9 @@ if (window.testRunner) {
testRunner.waitUntilDone();
}
+if (window.internals)
+ internals.settings.setTreatIPAddressAsDomain(true);
+
addEventListener("message", recv, false);
function test() {

Powered by Google App Engine
This is Rietveld 408576698