Bug 1177816 - Dump a message when the service worker for test_request_context receives an unexpected context value; r=baku
authorEhsan Akhgari <ehsan@mozilla.com>
Fri, 26 Jun 2015 11:36:04 -0700
changeset 281279 fc3a2e0256eab095c56b1546f394f4d9f2bea3a4
parent 281278 d648becaa638d9cc9c33f9c54b95186ca71513f5
child 281280 3dd64eb9fcf2cdb2e5a2614952a79028e8d17618
push id4932
push userjlund@mozilla.com
push dateMon, 10 Aug 2015 18:23:06 +0000
treeherdermozilla-beta@6dd5a4f5f745 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbaku
bugs1177816
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1177816 - Dump a message when the service worker for test_request_context receives an unexpected context value; r=baku
dom/workers/test/serviceworkers/fetch/context/context_test.js
--- a/dom/workers/test/serviceworkers/fetch/context/context_test.js
+++ b/dom/workers/test/serviceworkers/fetch/context/context_test.js
@@ -96,16 +96,18 @@ self.addEventListener("fetch", function(
         return caches.delete("cache");
       }).then(function() {
         return new Response("ack");
       }));
   }
   // Fail any request that we don't know about.
   try {
     event.respondWith(Promise.reject(event.request.url));
+    dump("Fetch event received invalid context value " + event.request.context +
+         " for " + event.request.url + "\n");
   } catch(e) {
     // Eat up the possible InvalidStateError exception that we may get if some
     // code above has called respondWith too.
   }
 });
 
 function respondToServiceWorker(event, data) {
   event.respondWith(clients.matchAll()