[whatwg/fetch] Call webdriver bidi hooks to clone request and response bodies (PR #1860)

This is a draft PR based on #1540 only meant to illustrate where fetch would hook into BiDi to allow cloning the request and response bodies. 

I will try to rebase and cleanup the whole PR separately but in the meantime we can refer to this for context in https://github.com/w3c/webdriver-bidi/pull/1011


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/fetch/1860.html" title="Last updated on Oct 1, 2025, 2:46 PM UTC (7594c7e)">Preview</a> | <a href="https://whatpr.org/fetch/1860/8d0d207...7594c7e.html" title="Last updated on Oct 1, 2025, 2:46 PM UTC (7594c7e)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1860

-- Commit Summary --

  * Add WebDriver BiDi network request logging
  * Call webdriver bidi hooks to clone request and response bodies

-- File Changes --

    M fetch.bs (51)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1860.patch
https://github.com/whatwg/fetch/pull/1860.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1860
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1860@github.com>

Received on Wednesday, 1 October 2025 14:46:55 UTC