Open Bug 1944568 Opened 10 months ago Updated 13 days 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

(Not tracked)

ASSIGNED

People

(Reporter: whimboo, Assigned: whimboo)

References

(Depends on 1 open bug, Blocks 6 open bugs)

Details

(Whiteboard: [webdriver:m18])

Attachments

(5 files)

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
Blocks: 1944570
Blocks: 1851788
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
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: