Closed Bug 1993079 Opened 5 months ago Closed 24 days ago

Implement "emulation.setNetworkConditions" command for "type: offline"

Categories

(Remote Protocol :: WebDriver BiDi, task, P2)

task
Points:
3

Tracking

(firefox150 fixed)

RESOLVED FIXED
150 Branch
Tracking Status
firefox150 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 3 open bugs, )

Details

(Whiteboard: [webdriver:m19], [wptsync upstream])

Attachments

(5 files)

Spec PR landed at https://github.com/w3c/webdriver-bidi/pull/948 with support for offline only at the moment.

Given that it is not clear when the other network specific emulation types will land, lets concentrate on the offline mode first.

Summary: Add "emulation.setNetworkConditions" command → Implement "emulation.setNetworkConditions" command for "type: offline"
Severity: -- → S3
Points: --- → 3
Priority: -- → P2
Whiteboard: [webdriver:m19]
Duplicate of this bug: 1999391
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED

This commit:

  • updates the getEmulationTargets helper to also handle commands which support global configuration
  • updates setUserAgentOverride to use the same helpers as the others
  • creates a new helper to simplify the individual commands
  • switches to NULL for all missing contextIds/userContextIds parameter

This refactor allows to implement the setNetworkConditions command easily.
This new command supports global configuration, and has tests against the None/null value.

Blocks: 2019202
Blocks: 2019286
Pushed by jdescottes@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7a5ad5b82d88 https://hg.mozilla.org/integration/autoland/rev/1e81f7876111 [bidi] Use helper for all emulation commands and use NULL symbol for missing parameter r=Sasha https://github.com/mozilla-firefox/firefox/commit/d4f2ce66a626 https://hg.mozilla.org/integration/autoland/rev/f1004d3636cc [wdspec] Update all invalid tests for emulation commands to check null not accepted for contexts/userContexts r=Sasha https://github.com/mozilla-firefox/firefox/commit/cca4c93d0a97 https://hg.mozilla.org/integration/autoland/rev/1ea7e1e5f9e2 [bidi] Add support for emulation.setNetworkConditions command r=Sasha https://github.com/mozilla-firefox/firefox/commit/63f066db317b https://hg.mozilla.org/integration/autoland/rev/a1c53b618049 [wdspec] Cleanup network configurations at the end of user_contexts tests r=Sasha https://github.com/mozilla-firefox/firefox/commit/2a1ce1081346 https://hg.mozilla.org/integration/autoland/rev/810045a3d6ff [remote] Include TestExpectations.json in toolchain paths for puppeteer r=Sasha
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/58066 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m19] → [webdriver:m19], [wptsync upstream]
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: