Support executing “script.evaluate” and “script.callFunction” for browsing contexts in the parent process
Categories
(Remote Protocol :: WebDriver BiDi, task, P2)
Tracking
(firefox148 fixed)
| Tracking | Status | |
|---|---|---|
| firefox148 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
(Blocks 5 open bugs)
Details
(Whiteboard: [webdriver:m18][webdriver:relnote])
Attachments
(3 files)
To support the evaluation of JavaScript in the parent process, the existing JSWindowActor implementation for the MessageHandler can be reused. No additional work is required because the actor can be enabled for Chrome by setting the includeChrome field in the actor configuration to true during registration.
This feature should only be taken into account when system access is enabled to avoid unintended side effects in the normal operational mode.
Once enabled, the JSWindowActor will automatically route IPC messages to the appropriate target BrowsingContext, whether it resides in the content or parent process.
Also we do not want to enable support for the parent process for all available WebDriver BiDi commands (particularly event subscriptions) at that point. So an additional internal flag will most likely be required. It can be passed by the two evaluation commands to the underlying MessageHandler to indicate that it is allowed to forward the command to the parent process. Commands that do not set this flag will be aborted with an "operation not supported" error when a browsing context of the parent process is referenced.
| Assignee | ||
Updated•1 year ago
|
Updated•8 months ago
|
Updated•5 months ago
|
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
As discussed on Matrix I'm going to reduce the points for this bug because support for realms as target cannot be implemented yet because the message manager misses support for chrome browsing contexts. There is bug 1713440 to get the support added.
| Assignee | ||
Comment 2•2 months ago
|
||
| Assignee | ||
Comment 3•2 months ago
|
||
| Assignee | ||
Comment 4•2 months ago
|
||
Comment 6•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/bb0c513026eb
https://hg.mozilla.org/mozilla-central/rev/0b8681969bab
https://hg.mozilla.org/mozilla-central/rev/55119776daff
| Assignee | ||
Updated•18 days ago
|
Description
•