[Technical review] Add BiDi network intercept command pages by pepelsbey · Pull Request #46203 · mdn/content · GitHub
Skip to content

[Technical review] Add BiDi network intercept command pages - #46203

Open
pepelsbey wants to merge 1 commit into
mdn:mainfrom
pepelsbey:bidi/network-intercepts
Open

pepelsbey wants to merge 1 commit into
mdn:mainfrom
pepelsbey:bidi/network-intercepts

Conversation

@pepelsbey

Copy link
Copy Markdown
Member

Title: [Technical review] Add BiDi network pages: addIntercept, continueRequest, failRequest, removeIntercept

Description

  • Added pages for the following commands of the network module:
    • network.addIntercept
    • network.continueRequest
    • network.failRequest
    • network.removeIntercept
  • Added an "Intercepts" section to the network module landing page.

The pages link to the event pages from #46141 and to network.setExtraHeaders from #46140, so this PR should merge after those two.

Every example was run against Firefox Nightly 159 and Chrome 155 (through ChromeDriver) with a local server.

Spec links

Related issue

Doc issue: mdn/mdn#851

Compat quirks worth looking into:

  • Compat data for the continueRequest parameters in Firefox. All three come from my test run:
    • url: for a fetch(), the rewritten request reaches the new URL and the events report a 200 from it, but the page's fetch() rejects with AbortError: The operation was aborted. A navigation with a rewritten URL works. BCD shows Firefox's url parameter as supported since 133. cc @whimboo for the compat sheet update.
    • headers: Firefox sends only the headers in the list, so a list without Host produces a request with no Host header (my server answered 400). Chrome still sends Host, Cookie, User-Agent and its other network headers. BCD shows Firefox's headers parameter as supported. cc @whimboo for the compat sheet update.
    • body: with a longer body for a POST request, Firefox keeps the original Content-Length, so the server receives a truncated body. Chrome sends the new length. BCD shows Firefox's body parameter as supported. cc @whimboo for the compat sheet update.

@pepelsbey
pepelsbey requested review from a team and dipikabh October 19, 2026 20:15
@pepelsbey
pepelsbey requested review from a team as code owners October 19, 2026 20:15
@github-actions github-actions Bot added the Content:WebDriver WebDriver docs label Oct 19, 2026
@pepelsbey
pepelsbey removed request for a team October 19, 2026 20:15
@github-actions github-actions Bot added the size/xl [PR only] >1000 LoC changed label Oct 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:WebDriver WebDriver docs size/xl [PR only] >1000 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants