Closed Bug 1845911 Opened 2 years ago Closed 2 years ago

Support expected mapping between unlimitedStorage extension permission to persistent-storage WebAPI permission on Android

Categories

(WebExtensions :: Android, enhancement, P2)

enhancement

Tracking

(firefox122 fixed)

RESOLVED FIXED
122 Branch
Tracking Status
firefox122 --- fixed

People

(Reporter: rpl, Assigned: rpl)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(1 file, 1 obsolete file)

The test covering this expected behavior is the test_ext_unlimitedStorage.html mochitest, which is currently disabled on Android builds, disabled for GeckoView in Bug 1615329.

The underlying issue is similar to the one behind test_ext_geolocation.html being disabled, tracked by Bug 1336194 (and in particular see Bug 1336194 comment 15), but unlike geolocation, persistent-storage doesn't require the embedder app to be requesting the related Android permission as it is needed for geolocation (see Bug 1336194 comment 16).

And so in for the mapping between "unlimitedStorage" extension permission and the related "persistent-storage" WebAPI permission, we could technically check if the permission have been granted already to the extension principal and short cut the check by allowing it right away if it is.

This bug is tracking looking into the changes to do that in the GeckoView JSWindow actor layer and re-enabling on GeckoView builds this mochitest to explicitly cover the expected behavior also on the GeckoView builds.

Severity: -- → N/A
Assignee: nobody → lgreco
Status: NEW → ASSIGNED
Blocks: 1336194

There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:rpl, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.

Flags: needinfo?(lgreco)
Flags: needinfo?(bugzeeeeee)
Flags: needinfo?(bugzeeeeee)
Flags: needinfo?(lgreco)
Whiteboard: [addons-jira]
Attachment #9362375 - Attachment description: WIP: Bug 1845911 - Ensure unlimitedStorage extension permission grants persistent-storage WebAPI permission on GeckoView as it does on Desktop builds. → Bug 1845911 - Ensure unlimitedStorage extension permission grants persistent-storage WebAPI permission on GeckoView as it does on Desktop builds.
Attachment #9362375 - Attachment is obsolete: true
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/ba8757a723af Ensure unlimitedStorage extension permission grants persistent-storage WebAPI permission on GeckoView as it does on Desktop builds. r=geckoview-reviewers,owlish,robwu
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: