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

Side by Side Diff: LayoutTests/http/tests/security/aboutBlank/security-context-grandchildren-alias.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, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.waitUntilDone(); 6 testRunner.waitUntilDone();
7 } 7 }
8 8
9 if (window.internals)
10 internals.settings.setTreatIPAddressAsDomain(true);
11
9 function log(msg) { 12 function log(msg) {
10 var line = document.createElement('div'); 13 var line = document.createElement('div');
11 line.appendChild(document.createTextNode(msg)); 14 line.appendChild(document.createTextNode(msg));
12 document.getElementById('console').appendChild(line); 15 document.getElementById('console').appendChild(line);
13 } 16 }
14 17
15 function doTest() { 18 function doTest() {
16 // Grab a pointer to the document because we'll lose access to it after 19 // Grab a pointer to the document because we'll lose access to it after
17 // we set our document.domain property. 20 // we set our document.domain property.
18 var doc0 = frames[0].frames[0].document; 21 var doc0 = frames[0].frames[0].document;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 </script> 53 </script>
51 </head> 54 </head>
52 <body> 55 <body>
53 <iframe 56 <iframe
54 onload="doTest()" 57 onload="doTest()"
55 src="resources/iframe-with-about-blank-children.html"> 58 src="resources/iframe-with-about-blank-children.html">
56 </iframe> 59 </iframe>
57 <div id="console"></div> 60 <div id="console"></div>
58 </body> 61 </body>
59 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698