Closed Bug 1954522 Opened 3 months ago Closed 3 months ago

Add support for data collection permissions in `browser.permissions.getAll()`

Categories

(WebExtensions :: General, enhancement, P2)

enhancement

Tracking

(firefox139 fixed)

RESOLVED FIXED
139 Branch
Tracking Status
firefox139 --- fixed

People

(Reporter: willdurand, Assigned: willdurand)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [addons-jira])

Attachments

(1 file)

We should expose the data permissions in the return value of browser.permissions.getAll(), something like this probably:

await browser.permissions.getAll()
{
  origins: ["<all_urls>"],
  permissions: ["bookmarks"],
  // In this case, the permission is granted.
​  data_collection: ["technicalAndInteraction"]
}
Version: Trunk → unspecified
Assignee: nobody → wdurand
Attachment #9474169 - Attachment description: WIP: Bug 1954522 - Add support for data collection permissions in `browser.permissions.getAll()`. r?rpl! → Bug 1954522 - Add support for data collection permissions in `browser.permissions.getAll()`. r?rpl!
Status: NEW → ASSIGNED
Blocks: 1959984
Pushed by wdurand@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/839bc91d0960 Add support for data collection permissions in `browser.permissions.getAll()`. r=rpl
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 139 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: