webRequest.BlockingResponse() does not work together with FetchEvent.respondWith() of a ServiceWorker
Categories
(WebExtensions :: Request Handling, defect)
Tracking
(firefox70 affected, firefox71 affected, firefox72 ?)
People
(Reporter: jararaca283, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:70.0) Gecko/20100101 Firefox/70.0
Steps to reproduce:
I've created a min example on GitHub: https://github.com/KevinRoebert/webext_and_service_worker
- Install the web extension (it should remove tracking parameter from URLs)
- Copy the service_worker folder to a (local) server
- Navigate to the index.html?tracking=test on the server
- The extension removes the tracking parameter
- Revisit the site, with tracking parameter
Can also be seen in this video: https://www.youtube-nocookie.com/embed/tBCnV-_IKjE
Actual results:
A NetworkError exception is thrown.
Expected results:
The site should be loaded. If this is not possible, every tracking protection addon can't be used along with ServiceWorkers, also this bug does not occur on Chrome.
Comment 1•5 years ago
|
||
Hello,
I have managed to reproduce the issue based on the provided STR on the latest Beta (71.0/20191128221751) and Release (70.0.1/20191030021342) under Windows 10 Pro 64-bit.
On Nightly the issue does not seem to occur. In about:serviceworkers no service workers are registered and I’m unsure if it’s related or not.
Comment 2•5 years ago
|
||
Looks like this will get fixed by e10s service workers, bug 1588154 comment 2.
Description
•