Skip to content

Conversation

sadym-chromium
Copy link
Contributor

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

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
fetch.bs Outdated
<li><p>Let <var>isEmulatedOffline</var> be the result of <a>WebDriver BiDi network is offline</a>
with <var>request</var>'s <a for=request>client</a>.

<li><p>If <var>isEmulatedOffline</var> is true, then return a <a>network error</a>.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you need the variable, you can condense it to return a network error if the check returned true.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

inlined

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.

2 participants