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

Side by Side Diff: LayoutTests/http/tests/security/aboutBlank/security-context-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
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/aboutBlank/security-context-grandchildren-alias.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 <iframe src="about:blank"></iframe><br> 3 <iframe src="about:blank"></iframe><br>
4 <iframe src=""></iframe><br> 4 <iframe src=""></iframe><br>
5 <pre> 5 <pre>
6 <script> 6 <script>
7 if (window.testRunner) 7 if (window.testRunner)
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9
10 if (window.internals)
11 internals.settings.setTreatIPAddressAsDomain(true);
9 12
10 document.write('--- Test begins ---\n'); 13 document.write('--- Test begins ---\n');
11 document.write('* "about:blank"\n'); 14 document.write('* "about:blank"\n');
12 document.write('document.domain = ' + frames[0].document.domain + '\n'); 15 document.write('document.domain = ' + frames[0].document.domain + '\n');
13 document.write('* ""\n'); 16 document.write('* ""\n');
14 document.write('document.domain = ' + frames[1].document.domain + '\n'); 17 document.write('document.domain = ' + frames[1].document.domain + '\n');
15 document.write('--- After setting document.domain ---\n'); 18 document.write('--- After setting document.domain ---\n');
16 document.domain = '0.0.1'; 19 document.domain = '0.0.1';
17 document.write('* "about:blank"\n'); 20 document.write('* "about:blank"\n');
18 document.write('document.domain = ' + frames[0].document.domain + '\n'); 21 document.write('document.domain = ' + frames[0].document.domain + '\n');
19 document.write('* ""\n'); 22 document.write('* ""\n');
20 document.write('document.domain = ' + frames[1].document.domain + '\n'); 23 document.write('document.domain = ' + frames[1].document.domain + '\n');
21 document.write('--- Test ends ---\n'); 24 document.write('--- Test ends ---\n');
22 </script> 25 </script>
23 </pre> 26 </pre>
24 </body> 27 </body>
25 </html> 28 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/security/aboutBlank/security-context-grandchildren-alias.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698