Closed
Bug 1184404
Opened 9 years ago
Closed 9 years ago
support additional navigator.getFeature keys for OpenMobile ACL
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
People
(Reporter: bwalker, Assigned: wchen)
References
Details
Attachments
(1 file)
1.34 KB,
patch
|
khuey
:
review+
gwagner
:
approval-mozilla-b2g32+
gwagner
:
approval-mozilla-b2g34+
gwagner
:
approval-mozilla-b2g37+
|
Details | Diff | Splinter Review |
This bug is to track the extension of the existing getFeature support for OpenMobile ACL. The proposal here is to allow apps with the "external-app" permission to call on any property matching getFeature("acl.*") and have the implementation retrieve the corresponding values from the android property_get.
Comment 1•9 years ago
|
||
Which getFeature is this about?
Comment 2•9 years ago
|
||
navigator.getFeature()
Reporter | ||
Updated•9 years ago
|
Summary: support additional getFeature values for OpenMobile ACL → support additional navigator.getFeature keys for OpenMobile ACL
What's wrong with <extapp>.getCustomFeature("feature-foo")?
Reporter | ||
Comment 4•9 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #3) > What's wrong with <extapp>.getCustomFeature("feature-foo")? Hamzata, would you be OK with calling getCustomFeature() from within your JS code to access these other values?
Flags: needinfo?(hdiallo)
Comment 5•9 years ago
|
||
(In reply to Bill Walker [:bwalker] [@wfwalker] from comment #4) > (In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #3) > > What's wrong with <extapp>.getCustomFeature("feature-foo")? > > Hamzata, would you be OK with calling getCustomFeature() from within your JS > code to access these other values? Bill, that is fine. The idea was to minimize the changes by leveraging the implementation of getFeature() we already have. But please remember that we can't use the plugin because ACL will might not be installed by the time we make this call.
Flags: needinfo?(hdiallo)
Assignee | ||
Comment 6•9 years ago
|
||
Attachment #8634580 -
Flags: review?(khuey)
Reporter | ||
Comment 7•9 years ago
|
||
(In reply to William Chen [:wchen] from comment #6) > Created attachment 8634580 [details] [diff] [review] > Support additional navigator.getFeature keys for OpenMobile ACL Awesome! One question -- this would require Firefox Marketplace to list "external-app" in its privileges when it calls getFeature("acl.version"), right?
Assignee | ||
Comment 8•9 years ago
|
||
No, in the patch I uploaded, acl.version is a special case and doesn't require the "external-app" permission.
Reporter | ||
Comment 9•9 years ago
|
||
(In reply to William Chen [:wchen] from comment #8) > No, in the patch I uploaded, acl.version is a special case and doesn't > require the "external-app" permission. I see it now. I misread the patch. Triple awesome.
Comment 10•9 years ago
|
||
Hamzata, William already created the patch for the issue we discussed yesterday. Could you test it and inform us that it works. So that, once we get your ok, we can land it in the 2.1s and 2.0m branches. thanks, didem
Flags: needinfo?(hdiallo)
Comment on attachment 8634580 [details] [diff] [review] Support additional navigator.getFeature keys for OpenMobile ACL Review of attachment 8634580 [details] [diff] [review]: ----------------------------------------------------------------- Not using the thing that we custom built for this exact use case is dumb, but w/e.
Attachment #8634580 -
Flags: review?(khuey) → review+
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → wchen
Assignee | ||
Comment 13•9 years ago
|
||
Comment on attachment 8634580 [details] [diff] [review] Support additional navigator.getFeature keys for OpenMobile ACL NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): Bug 1169474 User impact if declined: It may be harder to ship ACL without the changes. Testing completed: Manually tested on device. Risk to taking this patch (and alternatives if risky): Low risk, changes are small and only compiles in Gonk. Affects apps with "external-app" permission which is only available to OpenMobile apps. String or UUID changes made by this patch: None
Attachment #8634580 -
Flags: approval-mozilla-b2g37?
Attachment #8634580 -
Flags: approval-mozilla-b2g34?
Attachment #8634580 -
Flags: approval-mozilla-b2g32?
Comment 14•9 years ago
|
||
Comment on attachment 8634580 [details] [diff] [review] Support additional navigator.getFeature keys for OpenMobile ACL Approving since Fabrice is out.
Attachment #8634580 -
Flags: approval-mozilla-b2g37?
Attachment #8634580 -
Flags: approval-mozilla-b2g37+
Attachment #8634580 -
Flags: approval-mozilla-b2g34?
Attachment #8634580 -
Flags: approval-mozilla-b2g34+
Attachment #8634580 -
Flags: approval-mozilla-b2g32?
Attachment #8634580 -
Flags: approval-mozilla-b2g32+
Comment 15•9 years ago
|
||
Adding Josh and Mahe so they are aware of the approvals.
https://hg.mozilla.org/releases/mozilla-b2g32_v2_0/rev/367b6867e3ff https://hg.mozilla.org/releases/mozilla-b2g32_v2_0m/rev/367b6867e3ff https://hg.mozilla.org/releases/mozilla-b2g34_v2_1/rev/29d54b125d3a http://hg.mozilla.org/releases/mozilla-b2g34_v2_1s/rev/29d54b125d3a https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/rev/e2d1f1f55803
status-b2g-v2.0:
--- → fixed
status-b2g-v2.0M:
--- → fixed
status-b2g-v2.1:
--- → fixed
status-b2g-v2.1S:
--- → fixed
status-b2g-v2.2:
--- → fixed
status-b2g-v2.2r:
--- → ?
https://hg.mozilla.org/mozilla-central/rev/1bcf82e1e10a
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
Updated•9 years ago
|
status-b2g-master:
--- → fixed
Comment 19•9 years ago
|
||
(In reply to Didem Ersoz [:didem] from comment #10) > Hamzata, > > William already created the patch for the issue we discussed yesterday. > Could you test it and inform us that it works. So that, once we get your ok, > we can land it in the 2.1s and 2.0m branches. > > thanks, > didem For clearing the needinfo flag...
Flags: needinfo?(hdiallo)
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•