summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/worker_referrer.js
blob: ec9fb1f8a0ea8d74aeece8ee506e5c73c2e673af (plain)
1
2
3
4
5
6
7
8
9
onmessage = function () {
  importScripts(["referrer.sjs?import"]);
  var xhr = new XMLHttpRequest();
  xhr.open("GET", "referrer.sjs?result", true);
  xhr.onload = function () {
    postMessage(xhr.responseText);
  };
  xhr.send();
};