w3c / webdriver-bidi

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

Web Extensions: install / uninstall #548

Open sadym-chromium opened 10 months ago

whimboo commented 10 months ago

This topic has been discussed at TPAC 2023. The minutes can be found at: https://www.w3.org/2023/09/15-webdriver-minutes.html#t04

whimboo commented 5 months ago

Maybe the definition of extensions in the capabilities could look like the following:

{
  "extensions": [
    "<base64_encoded_extension>",
    {"extension": "<base64_encoded_extension>", "installTemporary": true, "allowPrivateBrowsing": true},
  ],
}

That means by default extensions could be listed as usual as a list of base64 encoded strings, or if more options are needed for the install process an object could be passed with additional flags - all of them optional and default to false?

OrKoN commented 2 months ago

CDP now supports loading unpacked extensions at runtime https://chromedevtools.github.io/devtools-protocol/tot/Extensions/#method-loadUnpacked (with some restrictions such as a special flag + pipe connection)