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

Side by Side Diff: chrome/test/data/extensions/api_test/cross_origin_xhr/background_page/test.html

Issue 7071025: Use WebFrame::setIsolatedWorldSecurityOrigin to allow cross-origin XHRs in content scripts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove isolated worlds when extension is unloaded Created 9 years, 6 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
OLDNEW
1 <script> 1 <script>
2 chrome.test.getConfig(function(config) { 2 chrome.test.getConfig(function(config) {
3 3
4 function doReq(domain, expectSuccess) { 4 function doReq(domain, expectSuccess) {
5 var req = new XMLHttpRequest(); 5 var req = new XMLHttpRequest();
6 var url = domain + ":PORT/files/extensions/test_file.txt"; 6 var url = domain + ":PORT/files/extensions/test_file.txt";
7 url = url.replace(/PORT/, config.testServer.port); 7 url = url.replace(/PORT/, config.testServer.port);
8 8
9 chrome.test.log("Requesting url: " + url); 9 chrome.test.log("Requesting url: " + url);
10 req.open("GET", url, true); 10 req.open("GET", url, true);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 function disallowedSubdomain() { 50 function disallowedSubdomain() {
51 doReq("http://foob.com", false); 51 doReq("http://foob.com", false);
52 }, 52 },
53 function disallowedSSL() { 53 function disallowedSSL() {
54 doReq("https://a.com", false); 54 doReq("https://a.com", false);
55 } 55 }
56 ]); 56 ]);
57 }); 57 });
58 58
59 </script> 59 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698