Closed Bug 1491094 Opened 6 years ago Closed 6 years ago

Investigate whether we can remove GV's ACCESS_WIFI_STATE permission requirement

Categories

(GeckoView :: General, defect, P1)

Unspecified
Android
defect

Tracking

(geckoview62 fixed, firefox-esr60 wontfix, firefox62 wontfix, firefox63 fixed, firefox64 fixed)

RESOLVED FIXED
mozilla64
Tracking Status
geckoview62 --- fixed
firefox-esr60 --- wontfix
firefox62 --- wontfix
firefox63 --- fixed
firefox64 --- fixed

People

(Reporter: cpeterson, Assigned: snorp)

References

Details

Attachments

(1 file)

Focus+WebView does not require the ACCESS_WIFI_STATE permission, so this permission may be preventing some Focus+WebView users from updating to Focus+GV.

GV uses Android's Wi-Fi APIs to check whether the network is offline. We may be able get the same network status using some other API without this permission.

https://searchfox.org/mozilla-central/rev/de7676288a78b70d2b9927c79493adbf294faad5/mobile/android/geckoview/src/main/AndroidManifest.xml#5
Note that this also causes some valid privacy concerns for Focus users: https://github.com/mozilla-mobile/focus-android/issues/3441
We should try to fix this bug in GV 62 in Focus 7.0. Adding this permission causes an annoying update process for users updating for Focus+WebView to Focus+GV. Users with Android >= O have to click through a permission prompt. Users with Android < O have to open the Google Play Store and manually update.
Assignee: nobody → snorp
If we can remove the ACCESS_WIFI_STATE permission, we might be able to remove (android:required="false") the android.hardware.wifi feature requirement (like android.hardware.touchscreen bug 1490786).
No longer depends on: 1490786
See Also: → 1490786
See Also: → 1494739
Comment on attachment 9012698 [details]
Bug 1491094 - Don't require ACCESS_WIFI_STATE for GeckoView r=droeh

Dylan Roeh (:droeh) has approved the revision.
Attachment #9012698 - Flags: review+
Pushed by jwillcox@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/149bad7f0537
Don't require ACCESS_WIFI_STATE for GeckoView r=droeh
Comment on attachment 9012698 [details]
Bug 1491094 - Don't require ACCESS_WIFI_STATE for GeckoView r=droeh

Approval Request Comment
[Feature/Bug causing the regression]: N/A
[User impact if declined]: Unnecessary permissions in GeckoView apps
[Is this code covered by automated tests?]: No
[Has the fix been verified in Nightly?]: No
[Needs manual test from QE? If yes, steps to reproduce]: No
[List of other uplifts needed for the feature/fix]: None
[Is the change risky?]: No
[Why is the change risky/not risky?]: Removes a permission and guards around the couple places where we used the thing provided by said permission.
[String changes made/needed]: None
Attachment #9012698 - Flags: approval-mozilla-beta?
https://hg.mozilla.org/mozilla-central/rev/149bad7f0537
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 64
Comment on attachment 9012698 [details]
Bug 1491094 - Don't require ACCESS_WIFI_STATE for GeckoView r=droeh

P1 got Geckoview, uplift accepted for 63 beta 11, thanks.
Attachment #9012698 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment on attachment 9012698 [details]
Bug 1491094 - Don't require ACCESS_WIFI_STATE for GeckoView r=droeh

Retroactively setting the GV62 approval flag.
Attachment #9012698 - Flags: approval-mozilla-geckoview62+
Product: Firefox for Android → GeckoView
Target Milestone: Firefox 64 → mozilla64
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: