Closed Bug 889037 Opened 11 years ago Closed 8 years ago

Flip on b2g device api's when apps request them in their manifest

Categories

(Firefox for Android Graveyard :: Web Apps (PWAs), defect, P2)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: wesj, Unassigned)

Details

(Whiteboard: [WebRuntime])

b2g adds a slew of device apis that require no additional permissions for us, and that it would be neat to turn on for Fennec in general. Until we're comfortable enough with them to enable them for the web, maybe we could start by enabling them for just apps that request them. i.e. If an app wants device storage, and requests it in its manifest, then we'd flip the pref.
This is not a good idea. Some of these APIs are not tested under FxAndroid, so flipping these APIs on can risk exposure to crashes, security bugs, etc.
(In reply to Jason Smith [:jsmith] from comment #1)
> This is not a good idea. Some of these APIs are not tested under FxAndroid,
> so flipping these APIs on can risk exposure to crashes, security bugs, etc.

Erm, I'm pretty sure WesJ assumes that we're not going to enable an API without actually testing it to make sure it works correctly and doesn't cause security nor other regressions. :-)

Nevertheless, this bug is a bit broad, so it's hard to see how to make progress here.  Perhaps we can identify a few particular APIs that are useful/popular/easiest to implement and then file individual bugs for each one to track their implementation.
OS: Linux → All
Priority: -- → P2
Hardware: x86_64 → All
Whiteboard: [WebRuntime]
Per bug 1235869, we're going to disable the Android web runtime, so we won't fix this bug in it.

(This is part of a bulk resolution of bugs in the Firefox for Android::Web Apps component, from which I attempted to exclude bugs that are not specific to the runtime, but it's possible that I included one accidentally.  If so, I'm sorry, and please reopen the bug!)
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.