Add a base RootBiDiModule class
Categories
(Remote Protocol :: WebDriver BiDi, task, P3)
Tracking
(firefox131 fixed)
| Tracking | Status | |
|---|---|---|
| firefox131 | --- | fixed |
People
(Reporter: jdescottes, Assigned: temidayoazeez032, Mentored)
References
Details
(Whiteboard: [lang=js][webdriver:m12][webdriver:external][webdriver:relnote])
Attachments
(2 files)
Similar to the WindowGlobalBiDiModule, we could create a base class for all webdriver-bidi root modules.
One of the APIs which could live there is hasListener or isListeningForEvent, which would be a shortcut for
this.messageHandler.eventsDispatcher.hasListener(eventName, contextInfo);
| Reporter | ||
Updated•2 years ago
|
Hi, is this still up for grap. I will like to work on the issue.
| Reporter | ||
Comment 2•1 year ago
|
||
(In reply to Dan from comment #1)
Hi, is this still up for grap. I will like to work on the issue.
Hi Dan! Yes sure this is still available.
The goal is to create a new base class similar to WindowGlobalBiDiModule, but called RootBiDiModule. You can create it under remote/webdriver-bidi/modules/ as well. Make sure to register it in the corresponding jar.mn.
We have other bugs to add more methods to this RootBidiModule class, but you can still start with the hasListener method suggested above.
Now one thing to note is that we need to be careful with public methods on BiDi modules, because they all become part of the API exposed to WebDriver clients. We need to prefix it with _ to avoid this, so please name it _hasListener.
Then all the modules under remote/webdriver-bidi/modules/root should extend this new class. And the network module can start using the new _hasListener method.
The bug will automatically be assigned to you when you submit a patch, you can take a look at the doc at https://firefox-source-docs.mozilla.org/setup/index.html to get started, and don't hesitate to ask here or on matrix if you have any question.
Yeah, thanks for the response @(In reply to Julian Descottes [:jdescottes] from comment #2)
(In reply to Dan from comment #1)
Hi, is this still up for grap. I will like to work on the issue.
Hi Dan! Yes sure this is still available.
The goal is to create a new base class similar to
WindowGlobalBiDiModule, but calledRootBiDiModule. You can create it underremote/webdriver-bidi/modules/as well. Make sure to register it in the corresponding jar.mn.We have other bugs to add more methods to this
RootBidiModuleclass, but you can still start with thehasListenermethod suggested above.
Now one thing to note is that we need to be careful with public methods on BiDi modules, because they all become part of the API exposed to WebDriver clients. We need to prefix it with_to avoid this, so please name it_hasListener.Then all the modules under
remote/webdriver-bidi/modules/rootshould extend this new class. And the network module can start using the new_hasListenermethod.The bug will automatically be assigned to you when you submit a patch, you can take a look at the doc at https://firefox-source-docs.mozilla.org/setup/index.html to get started, and don't hesitate to ask here or on matrix if you have any question.
Thanks for the response.
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Description
•