Closed Bug 1713441 Opened 4 months ago Closed 2 months ago

MessageHandler: Support command broadcasting for window contexts

Categories

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

task
Points:
8

Tracking

(firefox92 fixed)

RESOLVED FIXED
92 Branch
Tracking Status
firefox92 --- fixed

People

(Reporter: jdescottes, Assigned: jdescottes)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [bidi-m1-mvp])

Attachments

(2 files, 1 obsolete file)

With Bug 1713439, commands will only be able to reach a single context. We should allow to broadcasting, as it will be reused at least internally for broadcasting the session data (list of events etc...) and can also be useful later for some commands (eg Inspector Search when thinking about existing DevTools features).

Since we will only support window contexts in the beginning, scoping this to window context broadcast. However some of the work done here should be generic enough to be reused for other transports when we implement them.

See https://phabricator.services.mozilla.com/D115699 for a prototype implementation.

Blocks: 1713443
Whiteboard: [bidi-m1-mvp]
Points: --- → 8
Priority: -- → P2
Assignee: nobody → jdescottes
Status: NEW → ASSIGNED
Summary: CommandsHandler: Support command broadcasting for window contexts → MessageHandler: Support command broadcasting for window contexts
Attachment #9232571 - Attachment is obsolete: true

Depends on D120585

Small issue noticed while running tests.

Pushed by jdescottes@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3d764f09388b
[remote] Support MessageHandler broadcasting for WindowGlobal contexts r=webdriver-reviewers,whimboo,jgraham
https://hg.mozilla.org/integration/autoland/rev/76301ac3d4ba
[remote] Fix undefined type in log from MessageHandler destroy r=webdriver-reviewers,whimboo
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch
You need to log in before you can comment on or make changes to this bug.