Closed
Bug 1178856
Opened 9 years ago
Closed 9 years ago
Expose add-ons API using `navigator.hasFeature()`
Categories
(Firefox OS Graveyard :: General, defect)
Tracking
(feature-b2g:2.5+, firefox43 fixed)
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: drs, Assigned: edgar)
References
Details
Attachments
(1 file)
Marketplace would like to be able to detect whether or not a user's device supports add-ons. If they're not supported, we won't let the user install add-ons.
Comment 1•9 years ago
|
||
Hi Hsinyi, can you find someone in your team to work on this bug? Thanks.
Flags: needinfo?(htsai)
Comment 2•9 years ago
|
||
Talking with Edgar, he is willing to take. Thank you :)
Assignee: nobody → echen
Flags: needinfo?(htsai)
Assignee | ||
Comment 3•9 years ago
|
||
There are three namespaces (hardware, api, manifest) in feature detection API [1]. But add-on seems not belong to any of them. So I propose to have a new namespace called `addon` and only available on b2g. Then Marketplace can use `navigator.hasFeature('addon')` to detect whether the device supports add-ons. And also we can extend it to detect more features where needed, e.g. `navigator.hasFeature('addon.foo.bar')`. How does this sound? Thank you. [1] https://wiki.mozilla.org/WebAPI/Navigator.hasFeature
Flags: needinfo?(jonas)
Flags: needinfo?(fabrice)
Comment 4•9 years ago
|
||
I would use 'extensions' instead of 'addons' to match the code maybe, but no big deal. Naming is hard :)
Flags: needinfo?(fabrice)
Comment 5•9 years ago
|
||
Extensions are a type of add-on (others being themes, dictionaries, language packs, search engines). If this is specifically extensions, let's definitely use that name. Edgar: what's your timeline for this? The marketplace needs this to land before it can make the 2.5 package blocking other bugs (like bug 1155585). Thanks.
Comment 6•9 years ago
|
||
I would even go with "web-extensions" since it's the "official" name for the new extensions.
Assignee | ||
Comment 7•9 years ago
|
||
(In reply to [:fabrice] Fabrice Desré from comment #6) > I would even go with "web-extensions" since it's the "official" name for the > new extensions. Sounds good, I will go with "web-extensions", thank you. (In reply to Wil Clouser [:clouserw] from comment #5) > Extensions are a type of add-on (others being themes, dictionaries, language > packs, search engines). If this is specifically extensions, let's > definitely use that name. > > Edgar: what's your timeline for this? The marketplace needs this to land > before it can make the 2.5 package blocking other bugs (like bug 1155585). > Thanks. I am going to start working on this and plan to land it by end of this sprint. Thank you.
Target Milestone: --- → FxOS-S6 (04Sep)
Comment 8•9 years ago
|
||
It's my understanding that we don't need this. Please hold off until tomorrow and I can confirm/deny.
Updated•9 years ago
|
blocking-b2g: 2.5+ → ---
feature-b2g: --- → 2.5+
Comment 9•9 years ago
|
||
Countermanding #c8, please proceed.
Assignee | ||
Comment 10•9 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4683e58aa29d
Assignee | ||
Comment 11•9 years ago
|
||
Bug 1178856 - Create an API for detecting web-extensions support on b2g. r?fabrice
Attachment #8655271 -
Flags: review?(fabrice)
Comment 12•9 years ago
|
||
Comment on attachment 8655271 [details] MozReview Request: Bug 1178856 - Create an API for detecting web-extensions support on b2g. r?fabrice https://reviewboard.mozilla.org/r/17905/#review16083 ::: dom/base/Navigator.cpp:1602 (Diff revision 1) > +#ifdef MOZ_B2G I'm not convinced this needs to be guarded by MOZ_B2G since we also have support on firefox desktop.
Attachment #8655271 -
Flags: review?(fabrice)
Comment 13•9 years ago
|
||
Comment on attachment 8655271 [details] MozReview Request: Bug 1178856 - Create an API for detecting web-extensions support on b2g. r?fabrice https://reviewboard.mozilla.org/r/17905/#review16125
Attachment #8655271 -
Flags: review+
Assignee | ||
Comment 14•9 years ago
|
||
Thank you, Fabrice.
Flags: needinfo?(jonas)
Keywords: checkin-needed
Comment 15•9 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/c2199af05488
Keywords: checkin-needed
Comment 16•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c2199af05488
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•