Closed Bug 1611426 Opened 5 years ago Closed 10 months ago

Cleanup nsContentBlocker permissions

Categories

(Core :: Permission Manager, task, P3)

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: emz, Assigned: wwen, Mentored)

References

Details

(Keywords: priv-triaged, Whiteboard: [lang=js])

Attachments

(1 file)

Now that nsContentBlocker has been removed in Bug 1357107, we should clean up the leftover permissions from the profiles.

Permissions used by nsContentBlocker

It would probably make sense to do this in FF 75 earliest, after the nsContentBlocker removal hit release.

Status: NEW → ASSIGNED
Priority: -- → P3

Paul, any news on this bug?

Flags: needinfo?(pbz)

I'm currently busy with other tasks but this is definitely something I'd like to get back to. However, I don't want to block anyone else from picking this up!

Assignee: pbz → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(pbz)
Severity: normal → S3

To clean up these old permissions you can add a migration in BrowserGlue.sys.mjs, see https://searchfox.org/mozilla-central/rev/2a867dd1ab015c3ef24b774a57709fb3b3dc4961/browser/components/BrowserGlue.sys.mjs#3802. The nsIPermissionManager interface is accessible via Services.perms and allows you to clear the permission which match the type list here: https://searchfox.org/mozilla-central/rev/ba4fab1cc2f1c9c4e07cdb71542b8d441707c577/extensions/permissions/nsPermissionManager.cpp#107-118

Mentor: pbz
Whiteboard: [lang=js]
Keywords: priv-triaged
Assignee: nobody → wwen
Status: NEW → ASSIGNED
Attachment #9402018 - Attachment description: Bug 1611426 - Add migration to delete permissions no longer used by nsContentBlocker. r=pbz → Bug 1611426 - [WIP] Add migration to delete permissions no longer used by nsContentBlocker. r=pbz
Attachment #9402018 - Attachment description: Bug 1611426 - [WIP] Add migration to delete permissions no longer used by nsContentBlocker. r=pbz → Bug 1611426 - Add migration to delete permissions no longer used by nsContentBlocker. r=pbz
Depends on: 1899292
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/98d624d1597e Add migration to delete permissions no longer used by nsContentBlocker. r=pbz,firefox-desktop-core-reviewers ,Gijs
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: