Open Bug 1855013 Opened 7 months ago Updated 2 months ago

Run script evaluation via the WindowRealm (Remote Agent) implementation in Marionette

Categories

(Remote Protocol :: Marionette, task, P3)

task

Tracking

(Not tracked)

People

(Reporter: whimboo, Unassigned)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [webdriver:backlog])

In Webdriver BiDi the script evaluation is run by our WindowRealm implementation. That implementation has quite some advantages compared to what Marionette uses. As such it might be good to actually use the new implementation for Marionette as well.

Blocks: 1527713
Priority: -- → P3
Whiteboard: [webdriver:backlog]

Another benefit for it would be the use case from https://github.com/mozilla/geckodriver/issues/2162.

Executing the following script with the debugger panel open doesn't pause the execution while using BiDi it works just fine:

self.marionette.execute_script('console.log("Foo!"); debugger; console.log("Foo! Again!");')
You need to log in before you can comment on or make changes to this bug.