gecko-dev/dom/workers/test/xhr_implicit_cancel_worker.js

11 строки
262 B
JavaScript

/**
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
var xhr = new XMLHttpRequest();
xhr.open("GET", "testXHR.txt");
xhr.send(null);
xhr.open("GET", "testXHR.txt");
xhr.send(null);
postMessage("done");