Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / chrome_extension_resource.html
blob3bc87723c2d24fc268852365900b81d7114340cd
1 <html>
2 <head>
3 <script>
4 var xhrStatus = -1;
5 var imgUrl = 'chrome-extension://eemcgdkfndhakfknompkggombfjjjeno/images/bookmark_manager_search.png';
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);
20 domAutomationController.setAutomationId(0);
21 domAutomationController.send(xhr.status);
24 xhr.open('GET', imgUrl);
25 xhr.responseType = 'blob';
26 xhr.send();
28 </script>
29 </head>
30 <body>
31 <img id='star'>
32 </body>
33 </html>