Bug 1177816 - Dump a message when the service worker for test_request_context receives an unexpected context value; r=baku

This commit is contained in:
Ehsan Akhgari 2015-06-26 11:36:04 -07:00
parent 33d515e124
commit cb9acf7054

View File

@ -101,6 +101,8 @@ self.addEventListener("fetch", function(event) {
// 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.