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

Unified Diff: LayoutTests/http/tests/security/setDomainRelaxationForbiddenForURLScheme.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/setDomainRelaxationForbiddenForURLScheme.html
diff --git a/LayoutTests/http/tests/security/setDomainRelaxationForbiddenForURLScheme.html b/LayoutTests/http/tests/security/setDomainRelaxationForbiddenForURLScheme.html
index 8454f9ea83dddbb9b239ecb62172ab47570a37c0..edd89bb5b4be66c1b6439f8bf38097f6d5b899a9 100644
--- a/LayoutTests/http/tests/security/setDomainRelaxationForbiddenForURLScheme.html
+++ b/LayoutTests/http/tests/security/setDomainRelaxationForbiddenForURLScheme.html
@@ -30,6 +30,9 @@
else
log("This test can be run meaningfully only in DumpRenderTree");
+ if (window.internals)
+ internals.settings.setTreatIPAddressAsDomain(true);
+
domainShouldBe("127.0.0.1");
document.domain = "0.0.1";
domainShouldBe("0.0.1");

Powered by Google App Engine
This is Rietveld 408576698