Closed Bug 1693802 Opened 4 years ago Closed 3 years ago

Make Connection.jsm work with both CDP and WebDriver BiDi

Categories

(Remote Protocol :: Agent, task, P2)

task
Points:
8

Tracking

(firefox91 fixed)

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: whimboo, Assigned: whimboo)

References

Details

(Whiteboard: [bidi-m1-mvp])

Attachments

(1 file)

With the Connection.jsm module located under cdp/ now, we should figure out how we can refactor the code to make it usable with BiDi in parallel.

Questions to solve:

  • CDP and BiDi have fundamentally different concept of a session. But maybe we want to re-use the same session id?

  • Shall we have a generic Connection module that can be shared between CDP and Bidi, and each of these protocols implementing their own session and command/response handling?

Blocks: 1693812
No longer blocks: 1691396
No longer depends on: 1693812
Points: --- → 8
Priority: -- → P2
Assignee: nobody → hskupin
Status: NEW → ASSIGNED

The patch extracts common code that can be re-used
by both the CDP, and the upcoming WebDriver BiDi
protocol.

Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4e17aba743f7 [remote] Refactor Connection module to be used by CDP and WebDriver BiDi. r=webdriver-reviewers,jdescottes

Sadly my try build didn't include the xpcshell tests, so this hasn't been caught. Problem here is a change for the error message for splitMethod, which now includes quotes and not double quotes.

Flags: needinfo?(hskupin)
Pushed by hskupin@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/aa7b561ebaba [remote] Refactor Connection module to be used by CDP and WebDriver BiDi. r=webdriver-reviewers,jdescottes
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: