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

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

Issue 12457042: Non-web-accessible extension URLs should not load in non-extension processes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing nits. Created 7 years, 8 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/renderer/extensions/resource_request_policy.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 var xhrStatus = -1;
5 var imgUrl = 'chrome-extension://eemcgdkfndhakfknompkggombfjjjeno/images/bookmar k_manager_recent.png';
6
7 window.onload = function() {
8 // The call to pushState with chrome-extension:// URL will succeed, since the
9 // test uses --disable-web-security.
10 history.pushState('', '',
11 'chrome-extension://eemcgdkfndhakfknompkggombfjjjeno/main.html');
12 var xhr = new XMLHttpRequest();
13 xhr.onreadystatechange = function() {
14 if (xhr.readyState == 4) {
15 xhrStatus = xhr.status;
16 if (xhrStatus == 200) {
17 document.getElementById('star').src =
18 window.URL.createObjectURL(this.response);
19 }
20 domAutomationController.setAutomationId(0);
21 domAutomationController.send(xhr.status);
22 }
23 }
24 xhr.open('GET', imgUrl);
25 xhr.responseType = 'blob';
26 xhr.send();
27 }
28 </script>
29 </head>
30 <body>
31 <img id='star'>
32 </body>
33 </html>
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/resource_request_policy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698