jpramosi/geckordp

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:


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.

@jpramosi could we maybe utilize the WebConsole.evaluate_js_async() stuff?

I'm not sure what access to internal APIs that might have but seems like tabs APIs would likely be in that set no?

Maybe it is possible to evaluate Javascript code in another context (actor or window ID) which is related to a webextension.
Atleast the spec would allow this.