Is it possible to run a SW from the devtools "Local Override" feature in the Sources Panel? I have a SW and confirmed that it gets the proper response when I use a .fetch('/serviceworker.js') but when I try to .register it, I get a: "TypeError: Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script." The timing for the request shows as "Stalled" in the Network panel. I'm guessing it's getting hung up on an origin check w.r.t. to the Devtools Request Interceptor, but the error isn't describing that. Not the biggest thing and I can work around it, but it would be helpful to debug/dev SWs generally.
--
You received this message because you are subscribed to the Google Groups "service-worker-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to service-worker-di...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/service-worker-discuss/a1dcc76e-8df5-4618-9202-7fccfc5ea801%40chromium.org.