proxy.onRequest ignores windowId / tabId
Categories
(WebExtensions :: Request Handling, defect, P1)
Tracking
(firefox78 fixed)
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: robwu, Assigned: robwu)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
While working on bug 1638007, I noticed that the proxy.onRequest
API does not support tabId/windowId despite the code seemingly trying to do so (because the normalizeFilter
helper strips windowId/tabId).
Assignee | ||
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Comment 3•4 years ago
|
||
bugherder |
Comment 4•4 years ago
|
||
Noting for the record this is already documented at https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webRequest/RequestFilter
Assignee | ||
Comment 5•4 years ago
|
||
The onRequest
event was only added in Firefox 60 - https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/proxy/onRequest
including "support" for windowId / tabId in the filter.
However, until this bug was fixed in Firefox 78, the filter did not work - all requests were shown regardless of the tabId/windowId values in the filter.
Comment 6•4 years ago
|
||
I've added a note to the BCD table for this: https://wiki.developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/proxy/onRequest#Browser_compatibility
Marking dev-doc-complete, but please let me know if you need anything else here.
Description
•