Closed Bug 1892440 Opened 1 month ago Closed 1 month ago

Expose chrome only method to flip HttpChannel's StoreRequestObserversCalled

Categories

(Core :: Networking: HTTP, task, P2)

task
Points:
2

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 1 open bug)

Details

(Whiteboard: [webdriver:m11])

Attachments

(1 file)

For WebDriver BiDi, we need to be able to update the method and body of the request rather late in the lifecycle (see observer notification added in bug 1849686).

At that point modifying the body or the method of a request currently throws with NS_ERROR_IN_PROGRESS.
To work around this, we can expose a method in order to flip StoreRequestObserversCalled while WebDriverBiDi needs to update those properties. In the long term we probably need a better way to allow a specific part of the codebase to update those properties so that it can't be abused by eg webextensions.

For WebDriver BiDi network interception we need to be able to modify the request as late as possible.
This changeset exposes RequestObserversCalled to JS so that we can update it from the webdriver bidi codebase.

Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/473cfde59352
Expose RequestObserversCalled attribute in nsIHttpChannel r=valentin,necko-reviewers
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Points: --- → 2
Priority: -- → P2
Whiteboard: [webdriver:m11]
Component: WebDriver BiDi → Networking: HTTP
Product: Remote Protocol → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: