blob: bfd830ece6f807e426542d386dad22b77eaa6b2e [file] [log] [blame]
<script>
if (!window.opener)
alert("This HTML file should not be opened directly")
for (var i = 0; i < 1000; ++i) {
navigator.serviceWorker.register("http://127.0.0.1:8000/workers/service/resources/empty-worker.js", { })
.then(function(r) {
alert("Popup window resolved successfully (unexpected)")
opener.postMessage("done", "*");
}, function(e) {
opener.postMessage("responded", "*");
})
}
</script>