summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/worker_referrer.js
blob: 227a77caf0f4cda30db462d0b70788972a5bf1c5 (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();
}