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

Unified Diff: LayoutTests/http/tests/security/calling-versus-current.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/calling-versus-current.html
diff --git a/LayoutTests/http/tests/security/calling-versus-current.html b/LayoutTests/http/tests/security/calling-versus-current.html
index 028a4137ce8e5ff726bc4cb71c9d100ab894ff8f..8ead3cab9799845a10ddde2bebb7e63d3dc1f593 100644
--- a/LayoutTests/http/tests/security/calling-versus-current.html
+++ b/LayoutTests/http/tests/security/calling-versus-current.html
@@ -4,6 +4,9 @@
if (window.testRunner)
testRunner.dumpAsText();
+if (window.internals)
+ internals.settings.setTreatIPAddressAsDomain(true);
+
window.onload = function() {
window.f = frames[0].atob;
document.domain = "0.0.1";

Powered by Google App Engine
This is Rietveld 408576698