Issue metadata
Sign in to add a comment
|
Service Workers missing from Chrome Extension APIs
Reported by
thomasga...@gmail.com,
Aug 23
|
||||||||||||||||||||||
Issue descriptionChrome 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.
,
Aug 24
,
Aug 24
,
Aug 27
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by krajshree@chromium.org
, Aug 24