Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / xmlhttprequest / xhr-to-blob-in-isolated-world.html
blob7bb1c695c2bfcb4538cdc3f843f09d598e2a3b59
1 <body>
2 This tests an isolated script's ability to XHR a blob that is in its security origin, which is not the same as the document's security origin.<br>
3 We pass if there are no console errors.
4 <script>
5 if (!window.testRunner) {
6 document.body.appendChild(document.createTextNode("This test requires window.testRunner"));
7 } else {
8 testRunner.dumpAsText();
9 testRunner.setIsolatedWorldSecurityOrigin(1, "chrome-extension://123");
10 testRunner.evaluateScriptInIsolatedWorld(1, "var xhr = new XMLHttpRequest(); xhr.open('GET', 'blob:chrome-extension%3A//123/456789', false); xhr.send();");
12 </script>
13 </body>