summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/updatefoundevent.html
blob: 78088c7cd0dbf6a8f659f16f8b9e4613ded1f275 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<!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>