Closed
Bug 1347874
Opened 8 years ago
Closed 8 years ago
webRequest.onBeforeRequest redirectUrl not blocking original request
Categories
(WebExtensions :: Untriaged, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1345893
People
(Reporter: ricoy.lucas, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36
Steps to reproduce:
It is reproduced don Firefox 52 following the following steps:
In a web extension with the required permissions:
1. Add a listener to webRequest.onBeforeRequest with ['blocking']
2. Return a BlockingRequest object with {redirectUrl: <URL>}
Notes:
- Works fine on Chrome and Opera.
- Also do not work with the new Promises handlers
- The { cancel: true } approach works fine to block a request.
Actual results:
The redirectedUrl is reached and returned but the original destination still receives the original request.
Expected results:
The original request is redirected to the new URL and the original destination is never reached.
Component: Untriaged → WebExtensions: Untriaged
Product: Firefox → Toolkit
Updated•8 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Toolkit → WebExtensions
You need to log in
before you can comment on or make changes to this bug.
Description
•