w3c / webdriver-bidi

Bidirectional WebDriver protocol for browser automation
https://w3c.github.io/webdriver-bidi/
336 stars 35 forks source link

Default `ownership` to `none` in `browsingContext.locateNodes` #688

Closed sadym-chromium closed 3 months ago

sadym-chromium commented 3 months ago

Addressing https://github.com/w3c/webdriver-bidi/issues/684.

Support only ownership: none in browsingContext.locateNodes. For that, "get a realm from a browsing context" had to be extracted from "get a realm from a target".

The algorithm uses the default browsing context's realm instead of sandbox. This does not have any observable effects, as the sandbox specific handle is not provided in case of ownership: none.


Preview | Diff

sadym-chromium commented 3 months ago

Merging, as I assume @jimevans in the comment approved this approach as well.