Closed Bug 1810047 Opened 2 years ago Closed 1 year ago

Implement extension runtime permissions Dialog in AC

Categories

(Fenix :: WebExtensions, task, P3)

All
Android
task

Tracking

(firefox120 verified)

VERIFIED FIXED
120 Branch
Tracking Status
firefox120 --- verified

People

(Reporter: cpeterson, Assigned: willdurand)

References

Details

(Keywords: dev-doc-complete, Whiteboard: [addons-jira])

Attachments

(3 files)

From github: https://github.com/mozilla-mobile/fenix/issues/16912.

Steps to reproduce

  1. Go to Settings of an extension with runtime permission request (should be options.html on desktop)
  2. Let the extionsion request runtime permissions. Say, click Grant permission in the Settings page

Expected behavior

A popup is shown to grant/deny the runtime permission request

Actual behavior

Nothing happens.

Device information

  • Android device: Android 10
  • Fenix version: Nightly 201207 17:01 (Build #2015780043)

┆Issue is synchronized with this Jira Task

Change performed by the Move to Bugzilla add-on.

Cathy says:

The geckoview work to implement permissions.request has been completed. Fenix can now implement the new delegate method onOptionalPrompt.
Related patch: https://phabricator.services.mozilla.com/D143925
Related geckoview bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1601420

https://github.com/mozilla-mobile/fenix/issues/16912#issuecomment-1117508957

Severity: -- → N/A
Type: enhancement → task
Depends on: 1601420
See Also: → 1811563
See Also: → 1811608
Blocks: 1796175

We did a similar implementation for normal prompt dialogs (Like alert or confirm) that website could requests, see GeckoPromptDelegate for references.

Summary: Implement extension runtime permissions → Implement extension runtime permissions Dialog in AC

When implementing this API we have to take into consideration Android permission that could be needed to access the APIs, like geolocation must have access to the location permission.

Blocks: 1812299
Priority: -- → P3
Duplicate of this bug: 1811608
No longer duplicate of this bug: 1811608
Duplicate of this bug: 1850221
Assignee: nobody → wdurand
Whiteboard: [addons-jira]
Status: NEW → RESOLVED
Closed: 1 year ago
Flags: qe-verify+
Resolution: --- → FIXED
Target Milestone: --- → 120 Branch

We should mark the WebExtensions API (permissions.request()) as compatible with Firefox Android 120 now.

Keywords: dev-doc-needed
Depends on: 1858057
Flags: qe-verify+

Verified as Fixed. Tested on the latest Fenix Nightly 120.0a1 (Build #2015979426), 76b8895043+, in both Light/Dark and Portrait/Landscape modes, using an Oppo Reno6 5G running Android 13.

Using the STR from Bug 1858057, an optional permission dialogue is displayed on the Settings page of the add-on when the user checks the box for the optional permission.

See the attached screenshot for more details.

Status: RESOLVED → VERIFIED
Attached image 1697094748838.JPEG

We should mark the WebExtensions API (permissions.request()) as compatible with Firefox Android 120 now.

Completed in https://github.com/mdn/browser-compat-data/pull/21846

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: