xhr_implicit_cancel_worker.js 276 B

1234567891011
  1. /**
  2. * Any copyright is dedicated to the Public Domain.
  3. * http://creativecommons.org/publicdomain/zero/1.0/
  4. */
  5. var xhr = new XMLHttpRequest();
  6. xhr.open("GET", "worker_testXHR.txt");
  7. xhr.send(null);
  8. xhr.open("GET", "worker_testXHR.txt");
  9. xhr.send(null);
  10. postMessage("done");