Closed Bug 1410980 Opened 7 years ago Closed 3 years ago

No easy way to find out which permissions exactly have been denied

Categories

(Firefox for Android Graveyard :: General, enhancement, P3)

All
Android
enhancement

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: JanH, Unassigned)

References

Details

When requesting multiple permissions in one go, it's currently not (easily?) possible to find out which permissions were really denied in the "andFallback" case.
Is this needed for another bug right now?
Potentially a follow-up of bug 1362919, so we can include the Image/Video capture options in the file picker depending on whether the permission was granted or not.
Blocks: 1411014
I think there still isn't anything that *really* needs this [1], but if we ever want to implement this I think one way would be to introduce a new callback (in addition to "run" and "andFallback") that uses a custom Runnable class which gets passed a list of which permissions where exactly granted respectively denied.

[1] The only benefit that I can think of would be that the file picker could allow recording a video if the camera permission was granted but the external storage permission wasn't.
We have completed our launch of our new Firefox on Android. The development of the new versions use GitHub for issue tracking. If the bug report still reproduces in a current version of [Firefox on Android nightly](https://play.google.com/store/apps/details?id=org.mozilla.fenix) an issue can be reported at the [Fenix GitHub project](https://github.com/mozilla-mobile/fenix/). If you want to discuss your report please use [Mozilla's chat](https://wiki.mozilla.org/Matrix#Connect_to_Matrix) server https://chat.mozilla.org and join the [#fenix](https://chat.mozilla.org/#/room/#fenix:mozilla.org) channel.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INCOMPLETE
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.