Closed
Bug 1314710
Opened 9 years ago
Closed 8 years ago
support manifest.json as well as install.rdf for bootstrap.js addons
Categories
(Toolkit :: Add-ons Manager, defect, P5)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: rhelmer, Unassigned)
Details
(Whiteboard: triaged)
Right now AddonManager assumes that the presence of `manifest.json` means WebExtension and `install.rdf` is a bootstrap.js type.
Let's instead add a flag in `applications.gecko` to allow bootstrap.js extensions to be loaded, they can use the new manifest format and `install.rdf` can be more easily dropped in the future.
Comment 1•9 years ago
|
||
I think I'd lean more toward supporting manifest.json for hybrid WebExtensions, and letting them specify a bootstrap.js file to run at startup.
| Reporter | ||
Comment 2•9 years ago
|
||
(In reply to Kris Maglione [:kmag] from comment #1)
> I think I'd lean more toward supporting manifest.json for hybrid
> WebExtensions, and letting them specify a bootstrap.js file to run at
> startup.
Hm well we will continue to have bootstrap.js extensions without WebExtension bits for the foreseeable future, especially for system addons - is it possible to have a "hybrid" extension that doesn't actually include the embedded WebExtension?
Comment 3•9 years ago
|
||
(In reply to Robert Helmer [:rhelmer] from comment #2)
> Hm well we will continue to have bootstrap.js extensions without
> WebExtension bits for the foreseeable future, especially for system addons -
> is it possible to have a "hybrid" extension that doesn't actually include
> the embedded WebExtension?
Yeah. I don't think we'd include the webextension/ directory in this case, so the only difference that would actually matter would be if you included a manifest directive that invoked some WebExtension functionality.
Comment 4•9 years ago
|
||
I'm not quite following why we'd want to do this.
Also if an add-on is a WebExtension we are on pretty solid ground with knowing what it can and can't do, is an add-on using this a WebExtension or bootstrapped add-on? The hybrid or embedded webextension has a clear security policy around it (its a bootstrapped extension).
Comment 5•9 years ago
|
||
(In reply to Andy McKay [:andym] from comment #4)
> I'm not quite following why we'd want to do this.
Because it would allow us to throw away a huge chunk of add-on manager code.
| Reporter | ||
Comment 6•9 years ago
|
||
(In reply to Kris Maglione [:kmag] from comment #5)
> (In reply to Andy McKay [:andym] from comment #4)
> > I'm not quite following why we'd want to do this.
>
> Because it would allow us to throw away a huge chunk of add-on manager code.
+1. Removing a dependency on RDF is important long-term too.
Comment 7•9 years ago
|
||
future clean-up of code bug - could take sooner, but not blocking
Priority: -- → P5
Whiteboard: triaged
| Reporter | ||
Comment 8•9 years ago
|
||
(In reply to Andy McKay [:andym] from comment #4)
> I'm not quite following why we'd want to do this.
>
> Also if an add-on is a WebExtension we are on pretty solid ground with
> knowing what it can and can't do, is an add-on using this a WebExtension or
> bootstrapped add-on? The hybrid or embedded webextension has a clear
> security policy around it (its a bootstrapped extension).
I don't think this implies any kind of change in the security policy, basically there would only be what we now call the "hybrid webextension" type, no standalone install.rdf+bootstrap.js type anymore.
Comment 9•8 years ago
|
||
We've chosen webextensions with bundled experiments to handle extensions that need to run privileged code.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•