gecko-dev/dom/workers/test/serviceworkers/updatefoundevent.html
Nikhil Marathe a24add821f Bug 1131327 - Patch 7 - Fire updatefound on worker registration. r=baku
--HG--
extra : rebase_source : d87fd98d37ee45fb592a0fba764b099485df7cb3
2015-04-08 15:22:36 -07:00

14 lines
319 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Bug 1131327 - Test ServiceWorkerRegistration.onupdatefound on ServiceWorker</title>
</head>
<body>
<script>
navigator.serviceWorker.onmessage = function(e) {
dump("NSM iframe got message " + e.data + "\n");
window.parent.postMessage(e.data, "*");
};
</script>
</body>