Bug 1325101 - Update nofetch handler mochitest. r=bkelly

This commit is contained in:
Catalin Badea 2016-12-21 10:38:00 +08:00
parent f6289b3f5b
commit 50c925905e
2 changed files with 8 additions and 1 deletions

View File

@ -6,3 +6,9 @@ self.oninstall = function(event) {
addEventListener('fetch', handleFetch);
self.onfetch = handleFetch;
}
// Bug 1325101. Make sure adding event listeners for other events
// doesn't set the fetch flag.
addEventListener('push', function() {})
addEventListener('message', function() {})
addEventListener('non-sw-event', function() {})

View File

@ -1,7 +1,7 @@
<!DOCTYPE HTML>
<html>
<head>
<title>Test for Bug 1181127</title>
<title>Test for Bugs 1181127 and 1325101</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/SpawnTask.js"></script>
<script src="error_reporting_helpers.js"></script>
@ -9,6 +9,7 @@
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
</head>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1181127">Mozilla Bug 1181127</a>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1181127">Mozilla Bug 1325101</a>
<p id="display"></p>
<div id="content" style="display: none">