Skip to content

Commit 305f5a1

Browse files
WebDriver BiDi: emulate network offline
Address WebDriver BiDi integration by using Fetch's new "is offline" primitive.
1 parent 16dd91a commit 305f5a1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2675,6 +2675,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
26752675
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#credentials">credentials</dfn></li>
26762676
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#reserve-deferred-fetch-quota">reserve deferred fetch quota</dfn></li>
26772677
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#reserve-deferred-fetch-quota">potentially free deferred fetch quota</dfn></li>
2678+
<li><dfn data-x-href="https://fetch.spec.whatwg.org/#is-offline">is offline</dfn></li>
26782679
<li>
26792680
<dfn data-x="concept-response"
26802681
data-x-href="https://fetch.spec.whatwg.org/#concept-response">response</dfn> and its
@@ -125571,9 +125572,9 @@ interface <dfn interface>Navigator</dfn> {
125571125572

125572125573
<div algorithm>
125573125574
<p>The <dfn attribute for="NavigatorOnLine"><code
125574-
data-x="dom-navigator-onLine">onLine</code></dfn> attribute must return false if the user agent
125575-
will not contact the network when the user follows links or when a script requests a remote page
125576-
(or knows that such an attempt would fail), and must return true otherwise.</p>
125575+
data-x="dom-navigator-onLine">onLine</code></dfn> getter steps are to return true if
125576+
<span>this</span>'s <span>relevant settings object</span> <span>is offline</span> is false;
125577+
otherwise false.</p>
125577125578
</div>
125578125579

125579125580
<div algorithm>

0 commit comments

Comments
 (0)