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

Side by Side Diff: LayoutTests/http/tests/xmlhttprequest/document-domain-set.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 <body> 2 <body>
3 <pre> 3 <pre>
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 if (window.internals)
9 internals.settings.setTreatIPAddressAsDomain(true);
10
8 document.domain = '0.0.1'; 11 document.domain = '0.0.1';
9 12
10 document.write('Waiting...\n'); 13 document.write('Waiting...\n');
11 var xhr = new XMLHttpRequest(); 14 var xhr = new XMLHttpRequest();
12 xhr.open('POST', 'resources/post-echo.cgi', false); 15 xhr.open('POST', 'resources/post-echo.cgi', false);
13 xhr.send('PASS: XMLHttpRequest allowed with document.domain set.\n'); 16 xhr.send('PASS: XMLHttpRequest allowed with document.domain set.\n');
14 document.write(xhr.responseText); 17 document.write(xhr.responseText);
15 </script> 18 </script>
16 </pre> 19 </pre>
17 </body> 20 </body>
18 </html> 21 </html>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/workers/worker-document-domain-security.html ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698