w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
676 stars 190 forks source link

Stop using browsing contexts #1696

Open domenic opened 1 year ago

domenic commented 1 year ago

In https://github.com/whatwg/html/pull/6315, HTML created an new concept, "navigable", which is almost certainly the correct thing for this specification to target, instead of browsing contexts.

In particular, a navigable stays the same even across browsing context swaps such as those induced by cross-origin opener policy. So for example, all the navigation-related stuff in WebDriver was previously broken in COOP cases, as the browsing context would be left untouched by the navigation and a new second browsing context, which WebDriver wasn't tracking, would be created. Now, by having WebDriver interface with the navigable, this problem can be avoided.

This will probably need some pretty extensive surgery. I am happy to help advise as needed.

/cc @marcoscaceres

marcoscaceres commented 1 year ago

Tiny start to addressing some of this: https://github.com/w3c/webdriver/pull/1694

whimboo commented 1 year ago

Please also see https://github.com/w3c/webdriver-bidi/issues/91 which is for WebDriver BiDi.