[meta] Add GeckoView support for installing/uninstalling extensions
Categories
(GeckoView :: Extensions, enhancement)
Tracking
(firefox71 wontfix, firefox72 affected)
People
(Reporter: agi, Unassigned)
References
Details
(Keywords: meta)
Attachments
(1 obsolete file)
In GeckoView we have registerWebExtension
and unregisterWebExtension
to run first-party extensions in apps.
For third-party extensions, we need to support installing and uninstalling an extension so that the following things can happen:
- We check signatures
- We remember settings and options for the extension
- the extension runs at startup (especially important for extensions that manipulate network requests)
We want to reuse code from the AddonManager
as much as possible here, probably using the WebExtensionController
for this.
This bug will likely turn into a meta-bug.
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Comment 1•5 years ago
|
||
Mass moving bugs to the Extension component.
Comment 2•5 years ago
•
|
||
Based on the preliminary mock-ups for managing extensions (https://miro.com/app/board/o9J_kw8Lt8g=), we'd need to make sure that the returned extension object exposes the following meta data:
- The list of required permissions
- The link to the settings (options_ui) page
- The link to the default popup
The mock-ups also contains an option to configure whether or not the extension is allowed to run in private sessions. This can be done at a later stage though.
Comment 3•5 years ago
|
||
The mock-ups also show an additional step to have users confirm required permissions before completing installation. This will likely have an impact on the planned API as well and needs some more discussion.
Comment 4•5 years ago
|
||
The required permissions are being returned from the AMO (collection) endpoint. So the step to confirm permissions can also be handled by A-C / Fenix directly.
Comment 5•5 years ago
|
||
Agi plans to start in November, but expects to deliver in December. He might file separate bugs for November's design work and December's implementation.
Comment 6•5 years ago
|
||
Adding to GV's November sprint because Agi says Fenix would really like this in November.
He will get agreement on the API. Then we can split up installation and uninstallation to multiple developers. Extension updating can be follow up work.
Reporter | ||
Comment 8•5 years ago
|
||
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Reporter | ||
Comment 10•5 years ago
|
||
GeckoView will install extensions from the native UI so it doesn't have a
browser object to pass into this method.
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Comment on attachment 9113314 [details]
Bug 1582185 - Allow null aBrowser in AddonManager.installAddonFromWebpage.
Revision D55726 was moved to bug 1599580. Setting attachment 9113314 [details] to obsolete.
Reporter | ||
Updated•5 years ago
|
Updated•5 years ago
|
Description
•