New issue
Advanced search Search tips

Issue 877249 link

Starred by 5 users

Issue metadata

Status: Duplicate
Merged: issue 766433
Owner: ----
Closed: Aug 27
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Service Workers missing from Chrome Extension APIs

Reported by thomasga...@gmail.com, Aug 23

Issue description

Chrome Version       : 68.0.3440.106
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)

What steps will reproduce the problem?
1. Chrome Extension
2. Web Request API
3. Site that uses Service Workers to serve cached requests to browser

What is the expected result?

I'd expect to be able to view via the WebRequest API all web requests fulfilled by Service Workers.

What happens instead of that?

The requests are invisible to the WebRequest API

It seems to me that Service Workers are operating in a blind spot for Chrome Extensions.

If I am using the webRequest API, any requests for main_frame or sub-resources that are served by a Service Worker are invisible, much like requests served from the Chrome cache.

As Service Workers become more common, this means that the webRequest API becomes increasingly irrelevant for cancelling / redirecting web requests.

It would be good if these requests could at least be reported by the extension APIs, even if blocking or redirecting proves to be more difficult.

Apologies if I am speaking out of turn but I can't see any way to deal with Service Workers at the moment, short of injecting a content script and interfering with the Service Worker itself, which is unsatisfactory.




 
Labels: Needs-Triage-M68
Components: Platform>Extensions>API
Components: Blink>ServiceWorker
Mergedinto: 766433
Status: Duplicate (was: Unconfirmed)
I believe this is issue 766433.

Sign in to add a comment