Closed Bug 1820738 Opened 2 years ago Closed 2 years ago

Use a custom Module base class for WebDriver BiDi

Categories

(Remote Protocol :: WebDriver BiDi, enhancement, P3)

enhancement

Tracking

(firefox114 fixed)

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: whimboo, Assigned: victoria.o.ajala, Mentored)

Details

(Whiteboard: [lang=js][webdriver:m7][webdriver:external])

Attachments

(1 file)

It might be helpful to have a custom base class for the MessageHandler's Module class just dedicated for WebDriver BiDi. Hereby we could add more properties like getting the nodeCache or the processActor which should not be done in the MessageHandler's implementation because that's WebDriver related.

We should discuss if that is an option and if yes which other properties and methods might be helpful to have as well.

We agreed on that a dedicated Module base class for WebDriver BiDi would be helpful. We can get started with sub-classing the message manager class and provide access to the processActor, and additionally a shortcut to the nodeCache.

The implementation should take place in the remote/webdriver-bidi folder and the file name can be as well stay with Module.sys.jsm.

Mentor: hskupin
Priority: -- → P3
Whiteboard: [lang=js]

Hi, I would be working on this bug @whimboo

Sounds good! Let me know if you have questions. Happy to discuss / explain on Matrix.

Sorry for the delay @whimboo, If I understand you correctly in comment 2, I would be adding a Module base class for WebDriver BiDi. Could you elaborate on that for me?

Yes, that is correct. This BiDi specific Module class would inherit from the MessageManager module base class as referenced in comment 0. With this addition all the BiDi specific module implementations would then make use of the new class instead.

Assignee: nobody → victoria.o.ajala
Status: NEW → ASSIGNED

Hi @whimboo, I attached a patch to this, I have only created the Module.sys.jsm file in remote/webdriver-bidi How do I get a base bidi module working like you mentioned in the comment?

Mentor: hskupin → jdescottes
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/903008b27dd0 Used a custom Module base class for WebDriver BiDi. r=jdescottes
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
Whiteboard: [lang=js] → [lang=js][webdriver:m7][webdriver:external]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: