mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
33d515e124
commit
cb9acf7054
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user