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