Tab mgmt APIs?
Closed this issue ยท 4 comments
I know as per #9 and #10 that there are definitely tab reading methods but is there any way to create new tabs, and further possibly unload or discard those tabs during creation?
For example I'd like to be able to do something like what the does but dynamically ๐
For some examples ideally we could use some of these subsys apis to accomplish this:
- the tabs discard api that is normally only exposed to js addons
- does the
Actor.eval()
method allow us to call APIs like this?
- does the
marionette
has anWindoManagerMixin.open_tab()
which seems to call the "web driver API" underneath which in turn means calling aself._send_message("WebDriver:NewWindow", body)
which is making an underlying protocol request but i have no idea if this protocol or its APIs are accessible over RDP?
Probably more discussion / research results to come..
As far as I know the remote debug protocol is limited at this point (see https://github.com/mozilla/gecko-dev/tree/master/devtools/shared/specs). This limitation can also be seen if firefox connects via RDP with other firefox sessions. However it is possible to manage tabs with a webextension. But I think everything which uses the webextension api would require a separate project to handle all the heavy lifting.
But maybe something better can be utilized to do this.
Cool, I'm asking in the webdriver room on matrix to see if anyone has thoughts on an alt approach to a webextension.