summaryrefslogtreecommitdiffstats
path: root/dom/workers/test/bug1132924_worker.js
blob: db67ba323cbdfe82e6c11594b7cb12fa0f1f8716 (plain)
1
2
3
4
5
6
7
8
9
10
onmessage = function () {
  var a = new XMLHttpRequest();
  a.open("GET", "empty.html", false);
  a.onreadystatechange = function () {
    if (a.readyState == 4) {
      postMessage(a.response);
    }
  };
  a.send(null);
};