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

Side by Side Diff: chrome/test/data/sync_xmlhttprequest_disallowed.html

Issue 56016: Fix renderer hang caused when a synchronous XHR is disallowed for security... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/renderer_host/resource_handler.h ('k') | webkit/glue/resource_loader_bridge.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 var success = false;
5
6 function OnLoad() {
7 try {
8 var request = new XMLHttpRequest();
9 request.open("GET", "file:///c:/foo.txt", false);
10 request.send(null);
11 } catch (e) {
12 success = true;
13 }
14 document.getElementById("console").appendChild(
15 document.createTextNode(success ? "SUCCESS" : "FAILURE"));
16 }
17
18 function DidSucceed() {
19 return success;
20 }
21
22 </script>
23 </head>
24 <body onload="OnLoad();">
25 This page sends a synchronous XMLHttpRequest to fetch a local file, which
26 should not be allowed.
27 <div id="console"></div>
28 </body>
29 </html>
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/resource_handler.h ('k') | webkit/glue/resource_loader_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698