gecko/dom/workers/test/bug1132924_worker.js

11 lines
221 B
JavaScript

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);
}