summaryrefslogtreecommitdiffstats
path: root/dom/serviceworkers/test/fetch/cookie/unregister.html
blob: 1f13508fa7002a575ed3d61e70e3c6f7cc11d3d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<script>
  navigator.serviceWorker.getRegistration(".").then(function(registration) {
    registration.unregister().then(function(success) {
      if (success) {
        window.parent.postMessage({status: "unregistrationdone"}, "*");
      }
    }, function(e) {
      dump("Unregistering the SW failed with " + e + "\n");
    });
  });
</script>