-
Notifications
You must be signed in to change notification settings - Fork 82
Inconsistency: Execution order for DNR modifyHeaders and webRequest.onBeforeSendHeaders #1004
Copy link
Copy link
Open
Labels
inconsistencyInconsistent behavior across browsersInconsistent behavior across browsersneeds-triage: chromeChrome needs to assess this issue for the first timeChrome needs to assess this issue for the first timeneeds-triage: firefoxFirefox needs to assess this issue for the first timeFirefox needs to assess this issue for the first timeneeds-triage: safariSafari needs to assess this issue for the first timeSafari needs to assess this issue for the first timetopic: dnrRelated to declarativeNetRequestRelated to declarativeNetRequesttopic: webRequestIssues related to observing and modifying network requests using the webRequest API.Issues related to observing and modifying network requests using the webRequest API.
Metadata
Metadata
Assignees
Labels
inconsistencyInconsistent behavior across browsersInconsistent behavior across browsersneeds-triage: chromeChrome needs to assess this issue for the first timeChrome needs to assess this issue for the first timeneeds-triage: firefoxFirefox needs to assess this issue for the first timeFirefox needs to assess this issue for the first timeneeds-triage: safariSafari needs to assess this issue for the first timeSafari needs to assess this issue for the first timetopic: dnrRelated to declarativeNetRequestRelated to declarativeNetRequesttopic: webRequestIssues related to observing and modifying network requests using the webRequest API.Issues related to observing and modifying network requests using the webRequest API.
Type
Fields
Give feedbackNo fields configured for issues without a type.
What is the correct execution order for DNR modifyHeaders and
webRequest.onBeforeSendHeaders?Why there is difference between Chrome and Firefox?
I filed it as a Firefox bug as well. https://bugzilla.mozilla.org/show_bug.cgi?id=2040251
Steps to reproduce:
This is about the behavioral difference between Firefox MV3 and Chrome MV3.
The demo code is upload to https://github.com/cyfung1031/MV3-Header-Probe
In Extension Event Page / Service Worker.
(Full coding: https://github.com/cyfung1031/MV3-Header-Probe/raw/refs/heads/main/src/background.js)
at the beginning, do
setup()then call
makeNetworkRequest(), e.g. byaction.onClickedFirefox MV3:
Chrome MV3: