10 Commits
Author SHA1 Message Date
Julian Descottes 0450ac1329 Bug 2027762 - [remote] Only allow specific commands from windowglobal modules r=Sasha
Differential Revision: https://phabricator.services.mozilla.com/D290938
2026-04-10 09:09:34 +00:00
Julian Descottes c91fea99a7 Bug 1936770 - [remote] Allow to emit an event for several related contexts r=Sasha
To support realm events for shared and service workers - which can have more than 1 related context - we need to adapt our logic to match several browsing contexts to a single context descriptor.

On the bidi spec, this is expressed in the event is enabled algorithm (https://w3c.github.io/webdriver-bidi/#event-is-enabled )which takes an array of navigables as parameter. In order to enable this, a few event-related APIs are modified to support matching several browsing context ids.

We should be able to emit an event related to N contexts, and the event should be emitted if:
- any subscription monitors any of the related contexts
- any subscription monitors the user context of any of the related contexts
- any subscription is global

Note that this allows to emit an event related to 0 browsing contexts. In that case, global subscriptions should still get the event.
While this is handy given that we can't currently retrieve the contexts related to service and shared worker, this is also an important feature in the long run.
It is completely possible to have a worker instance for a service worker which. starts running even if no related context is open at the moment.

A dedicated browser mochitest is added to cover the new feature.

Differential Revision: https://phabricator.services.mozilla.com/D282748
2026-02-13 20:02:57 +00:00
Liam DeBeasi 228d829166 Bug 1916498 - Add _forwardToWindowGlobal helper r=jdescottes,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D224880
2024-10-15 08:31:01 +00:00
Dave Townsend 462704a507 Bug 1864896: Remove jsdoc params for removed arguments (remote). r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D202982
2024-03-01 23:43:51 +00:00
Dave Townsend 32b536b828 Bug 1864896: Autofix unused function arguments (remote). r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D202981
2024-03-01 23:43:51 +00:00
Gregory Pappas e9950eccfd Bug 1845311 - Use ChromeUtils.defineLazyGetter in more places r=arai,webdriver-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,credential-management-reviewers,devtools-reviewers,fxview-reviewers,anti-tracking-reviewers,sessionstore-reviewers,pbz,joschmidt,robwu,issammani,bytesized,owlish,dao
Differential Revision: https://phabricator.services.mozilla.com/D184481
2023-07-26 16:28:11 +00:00
anwar 3b24754bf2 Bug 1826705 - Make destroy method of MessageHandler modules optional. r=jdescottes,webdriver-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D176294
2023-04-24 14:00:41 +00:00
Julian Descottes 86c898746c Bug 1826366 - [remote] Apply lint --fix for valid-jsdoc in remote r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D174738
2023-04-05 16:25:47 +00:00
Alexandra Borovova 15f1b6a825 Bug 1741834 - [messagehandler] Support transactions when using sessionData. r=webdriver-reviewers,jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D163957
2022-12-21 13:31:36 +00:00
Julian Descottes 6f7e347cec Bug 1790468 - [remote] Convert /remote/shared JSM modules to ESM r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D158293
2022-09-30 11:08:06 +00:00