Open Bug 1947683 Opened 1 month ago Updated 13 days ago

[webdriver-bidi] webExtension.install with path should not accept archives

Categories

(Remote Protocol :: WebDriver BiDi, defect, P2)

Firefox 134
defect

Tracking

(Not tracked)

People

(Reporter: chrmod, Unassigned)

References

(Blocks 2 open bugs, )

Details

(Whiteboard: [webdriver:backlog])

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:134.0) Gecko/20100101 Firefox/134.0

Component: Untriaged → WebDriver BiDi
Product: Firefox → Remote Protocol

It looks like that we do not correctly handle a case when path is given as type but the actual pass specified is an XPI file. Checking the BiDi specification for expand a web extension data spec it says:

Let locator be a directory locator with path path and root corresponding to the root of the file system.

We most likely have to update it to Try to create a ... and specifying the error that will be thrown if the given path is not a directory.

Blocks: 1934549
Status: UNCONFIRMED → NEW
Depends on: 1934551
Ever confirmed: true

The severity field is not set for this bug.
:whimboo, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(hskupin)

Note that we could also install a web extension by directly pointing to the manifest.json file. That would be another scenario that is currently not possible.

I've filed https://github.com/w3c/webdriver-bidi/issues/885 to get this discussed with the working group.

Flags: needinfo?(hskupin)

Not super urgent, but would be nice to fix it soon.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [webdriver:backlog]
You need to log in before you can comment on or make changes to this bug.