Skip to content

[WebDriver BiDi] emulated network offline#1852

Merged
annevk merged 7 commits into
whatwg:mainfrom
sadym-chromium:sadym/emulation.setNetworkConditions
Oct 10, 2025
Merged

[WebDriver BiDi] emulated network offline#1852
annevk merged 7 commits into
whatwg:mainfrom
sadym-chromium:sadym/emulation.setNetworkConditions

Conversation

@sadym-chromium

@sadym-chromium sadym-chromium commented Aug 22, 2025

Copy link
Copy Markdown
Contributor

If WebDriver BiDi emulated network offline condition, fail any outgoing fetch.

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

sadym-chromium added a commit to w3c/webdriver-bidi that referenced this pull request Oct 7, 2025
First step addressing #776.
* Fail all the intercepted requests, WebSocket and WebTransport.
* Html spec: whatwg/html#11575
* Fetch spec: whatwg/fetch#1852
@sadym-chromium
sadym-chromium marked this pull request as ready for review October 8, 2025 12:05
Comment thread fetch.bs Outdated
Comment thread fetch.bs Outdated
</ol>
</div>

<p>A <dfn export>user agent is offline</dfn> when the user agent assumes it do not have network

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@annevk is it what you meant in whatwg/html#11575 (comment)?

Comment thread fetch.bs
@sadym-chromium
sadym-chromium force-pushed the sadym/emulation.setNetworkConditions branch from 9669497 to 324a0cc Compare October 10, 2025 08:30
@sadym-chromium

Copy link
Copy Markdown
Contributor Author

@annevk could you please merge if you don't have any no other concerns?

@sadym-chromium
sadym-chromium requested a review from annevk October 10, 2025 09:23
Comment thread fetch.bs Outdated
Comment thread fetch.bs Outdated
Comment thread fetch.bs Outdated
sadym-chromium and others added 3 commits October 10, 2025 16:00
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
Co-authored-by: Anne van Kesteren <annevk@annevk.nl>
@annevk
annevk merged commit 0e72db8 into whatwg:main Oct 10, 2025
2 checks passed
@annevk

annevk commented Oct 10, 2025

Copy link
Copy Markdown
Member

Thanks @sadym-chromium!

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants