Remove support for "contexts" argument in "session.unsubscribe"
Categories
(Remote Protocol :: WebDriver BiDi, task, P3)
Tracking
(firefox155 fixed)
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: Sasha, Assigned: sameembaba, Mentored)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [lang=js][webdriver:m21][webdriver:external] [webdriver:relnote])
Attachments
(1 file)
Support for "contexts" argument was removed from "session.unsubscribe" command in this PR. We should also remove it from our implementation.
Updated•1 year ago
|
| Reporter | ||
Updated•5 months ago
|
| Reporter | ||
Updated•5 months ago
|
Comment 1•5 months ago
|
||
Thanks! I’ll take a look and start digging into it.
| Comment hidden (duplicate) |
Comment 3•5 months ago
|
||
Hi, could you point me to the file that needs changes? I've looked around but couldn't locate where the contexts argument is handled in the session.unsubscribe implementation.
| Reporter | ||
Comment 4•5 months ago
|
||
Hi! Sure, I guess maybe it's not clear how to locate the WebDriver BiDi commands code. So the approach here is that the first part of the command identifies the module name, in this case session, and the second part is an actual command name, so here is unsubscribe. Modules live in https://searchfox.org/firefox-main/source/remote/webdriver-bidi/modules/. There we have root, windowglobal, and windowglobal-in-root folders. This defines where a module is loaded (parent or content process). But for the commands, the entry point is always the parent process, so you have to look at the root folder. There you can see the session module: https://searchfox.org/firefox-main/source/remote/webdriver-bidi/modules/root/session.sys.mjs. So now you can search for the unsubsribe command in this file: https://searchfox.org/firefox-main/source/remote/webdriver-bidi/modules/root/session.sys.mjs#226. And as you can see in its parameters, there is the context field: https://searchfox.org/firefox-main/source/remote/webdriver-bidi/modules/root/session.sys.mjs#227. I hope it's clearer now :)
If you have more questions, feel free to join our matrix channel: https://matrix.to/#/#webdriver:mozilla.org and just drop the question there. Then we can help you quicker :)
Comment 5•5 months ago
|
||
Hi Noble, did the information from Sasha help you to better understand the task on this bug? Please let us know if you need more details. Thanks!
| Reporter | ||
Comment 6•4 months ago
|
||
Hi Noble, do you have any questions/problems with implementing the required changes? Or do you just not have time to work on it at the moment?
Comment 7•4 months ago
|
||
Redirect a needinfo that is pending on an inactive user to the triage owner.
:whimboo, since the bug has recent activity, could you please find another way to get the information or close the bug as INCOMPLETE if it is not actionable?
For more information, please visit BugBot documentation.
Comment 8•4 months ago
|
||
Resetting assignee for now given that Noble seems to be away.
| Assignee | ||
Comment 9•2 months ago
|
||
Hey there! Can I work on this?
| Reporter | ||
Comment 10•2 months ago
|
||
Hi Sameem!
Sure, go ahead. Please let me know if you have any questions.
I'll assign you to the bug.
| Assignee | ||
Comment 11•2 months ago
|
||
Which tests should i run to make sure my code is correct after removing the context support?
| Reporter | ||
Comment 12•2 months ago
|
||
(In reply to Sameem [:sameembaba] from comment #11)
Which tests should i run to make sure my code is correct after removing the context support?
I think the best would be to run all tests in /testing/web-platform/meta/webdriver/tests/bidi just to make sure we don't try to unsubscribe from any individual contexts in some test.
| Assignee | ||
Comment 13•2 months ago
|
||
| Assignee | ||
Comment 14•2 months ago
|
||
I did all tests on my machine and they are passing perfectly fine. I have pushed the patch now.
Comment 15•2 months ago
|
||
Comment 16•2 months ago
|
||
| bugherder | ||
| Reporter | ||
Updated•2 months ago
|
| Reporter | ||
Comment 17•2 months ago
|
||
Thanks again, Sameem, for your contribution!
If you're interested in doing more, I can suggest, for example, this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1943359.
It's another improvement for the session module that you worked on here, so you're already familiar with the code, but it might be a little bit more interesting. Let me know if you would like to work on it and if you have any questions.
| Assignee | ||
Comment 18•2 months ago
|
||
Yeah, I would love to work on it!
| Reporter | ||
Comment 19•2 months ago
|
||
Great! I've assigned the bug to you
Updated•1 month ago
|
Description
•