Emit "browsingContext.contextCreated" events for all open browsing contexts when subscribing to the event
Categories
(Remote Protocol :: WebDriver BiDi, task, P2)
Tracking
(firefox143 fixed)
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: whimboo, Assigned: ldebeasi)
References
(Blocks 2 open bugs, )
Details
(Whiteboard: [webdriver:m17], [webdriver:external], [wptsync upstream], [webdriver:relnote])
Attachments
(2 files, 1 obsolete file)
The remote end subscribe steps in the spec require us to emit created events for every open browsing context.
https://w3c.github.io/webdriver-bidi/#ref-for-remote-end-subscribe-steps%E2%91%A1
This can be worked on once the initial implementation has been landed.
| Reporter | ||
Updated•3 years ago
|
| Reporter | ||
Updated•3 years ago
|
| Reporter | ||
Updated•3 years ago
|
| Reporter | ||
Comment 1•3 years ago
|
||
Moving to P2 because this bug is needed for the implementation on bug 1801284.
| Reporter | ||
Comment 2•3 years ago
|
||
As discussed on Element with bug 1723102 fixed this is more a 3 points worth bug.
| Reporter | ||
Updated•1 year ago
|
| Reporter | ||
Comment 5•1 year ago
|
||
When we implement that feature we should potentially emit these events before session.subscribe returns. See also: https://github.com/w3c/webdriver-bidi/issues/696
| Assignee | ||
Comment 6•8 months ago
|
||
Hey there! I'm interested in working on this bug. I had a couple questions about solving this problem:
- Do you have any recommendations for how I implement this solution? I could update the
subscribemethod insession.sys.mjsto grab the browsing contexts and emit the event that way. - For tests I'll need to remove the expected fail from
test_existing_context. Would you like me to add any other test cases?
| Reporter | ||
Comment 7•7 months ago
|
||
Hi Liam. First, sorry for the late reply but somehow the needinfo got under the wire. I just noticed it now.
(In reply to Liam DeBeasi from comment #6)
- Do you have any recommendations for how I implement this solution? I could update the
subscribemethod insession.sys.mjsto grab the browsing contexts and emit the event that way.
The session.subscribe command handles all kinds of events, so we cannot directly add the new logic there. Instead we should probably call some additional method where the event is actually getting subscribed; this is in the root/browsingContext.sys.mjs module and in BrowsingContextModule::subscribeEvent. But I'm not 100% sure right now if that's really the best place because once we support subscribe priority (see bug 1801284) we have to call those methods in the right order.
Liam, so if you are still interested and want to work on a more complicated bug, you could certainly start on this one. But it's totally fine to switch to some other bug instead. Just let us know. Thanks!
| Reporter | ||
Updated•7 months ago
|
| Assignee | ||
Comment 8•7 months ago
|
||
Thanks for the reply! I can take a shot at this ticket. I can add the logic in the file you mentioned as well as add tests. That way, when subscribe priority is implemented we'll have test coverage to ensure this behavior does not accidentally break.
| Assignee | ||
Comment 9•6 months ago
|
||
Updated•6 months ago
|
| Assignee | ||
Comment 10•6 months ago
|
||
Comment 11•5 months ago
|
||
Comment 13•5 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/89bbbe4d7bab
https://hg.mozilla.org/mozilla-central/rev/9782681d7671
Updated•5 months ago
|
| Reporter | ||
Comment 15•5 months ago
|
||
This was excellent work! Thanks a lot Liam for spending your valuable time on this particular BiDi event.
Updated•4 months ago
|
| Reporter | ||
Comment 16•2 months ago
|
||
Hi Liam. I wanted to check back with you if you would be interested on some other bug to work on. Let us know if you have the time, or find one bug yourself. Thanks!
| Reporter | ||
Updated•2 months ago
|
| Assignee | ||
Comment 17•2 months ago
|
||
(In reply to Henrik Skupin [:whimboo][⌚️UTC+2] from comment #16)
Hi Liam. I wanted to check back with you if you would be interested on some other bug to work on. Let us know if you have the time, or find one bug yourself. Thanks!
Hey there! Yes, I am interested in taking on another task. Is there a particular area that would be helpful for me to focus on?
| Reporter | ||
Comment 18•2 months ago
|
||
Great to hear Liam! I wonder if you would be interested to finish off the remaining work on bug 1855028? We haven't gotten to this yet, but it would be great to finally have this API available given that Selenium folks are waiting on it. What do you think?
| Assignee | ||
Comment 19•2 months ago
|
||
(In reply to Henrik Skupin [:whimboo][⌚️UTC+2] from comment #18)
Great to hear Liam! I wonder if you would be interested to finish off the remaining work on bug 1855028? We haven't gotten to this yet, but it would be great to finally have this API available given that Selenium folks are waiting on it. What do you think?
Sounds good to me! I'll take a look and let you know if I have questions.
Description
•