Closed Bug 1944568 Opened 1 year ago Closed 3 months ago

Extend the "browsingContext.getTree" command to support retrieval of browsing contexts for open ChromeWindows

Categories

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

task
Points:
3

Tracking

(firefox148 fixed)

RESOLVED FIXED
148 Branch
Tracking Status
firefox148 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

(Blocks 5 open bugs)

Details

(Whiteboard: [webdriver:m18], [wptsync upstream][webdriver:relnote])

Attachments

(8 files)

48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review
48 bytes, text/x-phabricator-request
Details | Review

To enable the WebDriver BiDi APIs to execute certain commands in the parent process, the top-level BrowsingContext IDs of all open ChromeWindow instances (not just browser windows) are required. This allows the APIs to set a context target for executing these commands.

To retrieve a list of such contexts, the browsingContext.getTree command must be used with an additional boolean argument, moz:parentProcess, set to true. When it is set to true and system access is enabled, the command will return a list of top-level BrowsingContext IDs for all open ChromeWindow instances. If privileges are not sufficient a ”operation not supported” error will be returned.

This mentioned argument is optional and the CDDL will look like the following:

browsingContext.GetTreeParameters = {
  ? maxDepth: js-uint,
  ? root: browsingContext.BrowsingContext,
  ? "moz:parentProcess": bool,
}

When adding this argument we should fine a way to document such Mozilla-specific additions.

Summary: Extend "browsingContext.getTree" command to support retrieval of browsing contexts for open ChromeWindows → Extend the "browsingContext.getTree" command to support retrieval of browsing contexts for open ChromeWindows
Whiteboard: [webdriver:m15] → [webdriver:m16]
Whiteboard: [webdriver:m16] → [webdriver:m17]
Whiteboard: [webdriver:m17] → [webdriver:m18]
Depends on: 1989563
See Also: → 1990485
Blocks: 1991606
Blocks: 1996311
Depends on: 1996845
Assignee: nobody → hskupin
Status: NEW → ASSIGNED
Depends on: 1774436
Depends on: 2000553
Depends on: 2000801
See Also: → 2004388
Attachment #9523250 - Attachment description: Bug 1944568 - [remote] Support "browsingContext.getTree" in the parent process. → Bug 1944568 - [remote] Add support for chrome browsing context tree retrieval in "browsingContext.getTree".
Attachment #9531128 - Attachment description: Bug 1944568 - [webdriver-client] Add support for vendor parameters to the BiDi client. → Bug 1944568 - [webdriver-client] Add support for extension parameters for commands to the BiDi client.
Attachment #9531130 - Attachment description: Bug 1944568 - [wdspec] Add Mozilla specific tests for browsingContext.getTree in the parent process. → Bug 1944568 - [wdspec] Add Mozilla specific tests for retrieving chrome browsing contexts via browsingContext.getTree.
Pushed by hskupin@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/95b3548f2de4 https://hg.mozilla.org/integration/autoland/rev/95a2a5a2d772 [remote] Only observe content process browsing contexts with the ParentWebProgressListener. r=jdescottes https://github.com/mozilla-firefox/firefox/commit/ba268eeb0f86 https://hg.mozilla.org/integration/autoland/rev/8a8c38d34611 [remote] Only delay the "attached" event for browsing contexts in a content process. r=jdescottes https://github.com/mozilla-firefox/firefox/commit/d2389bab99e1 https://hg.mozilla.org/integration/autoland/rev/413264ce151a [remote] Update BrowsingContextInfo for process related properties. r=jdescottes https://github.com/mozilla-firefox/firefox/commit/e98b1b1e869d https://hg.mozilla.org/integration/autoland/rev/e84dd626f966 [remote] Don't try to handle navigations for browsing contexts in the parent process. r=jdescottes https://github.com/mozilla-firefox/firefox/commit/fcb89ab88f85 https://hg.mozilla.org/integration/autoland/rev/843da4c4382c [remote] Add support for chrome browsing context tree retrieval in "browsingContext.getTree". r=jdescottes https://github.com/mozilla-firefox/firefox/commit/267561433065 https://hg.mozilla.org/integration/autoland/rev/38c56db84404 [webdriver-client] Add support for extension parameters for commands to the BiDi client. r=jgraham,jdescottes https://github.com/mozilla-firefox/firefox/commit/5a83a161a495 https://hg.mozilla.org/integration/autoland/rev/e8757a81c148 [wdspec] Add "new_window" fixture and improve browsing context assertions. r=jdescottes https://github.com/mozilla-firefox/firefox/commit/2a6e93945a07 https://hg.mozilla.org/integration/autoland/rev/0be20fb4e407 [wdspec] Add Mozilla specific tests for retrieving chrome browsing contexts via browsingContext.getTree. r=jdescottes
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/56593 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m18] → [webdriver:m18], [wptsync upstream]
Duplicate of this bug: 1985993
Upstream PR merged by moz-wptsync-bot
Blocks: 2007067
Whiteboard: [webdriver:m18], [wptsync upstream] → [webdriver:m18], [wptsync upstream][webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: