Closed Bug 1710917 Opened 4 years ago Closed 4 years ago

Consider removing checks on addon ids related to the SVG context-fill after all existing extensions using it are migrated to the new WebExtensionPolicy.isPrivileged check

Categories

(Core :: SVG, task)

task

Tracking

()

RESOLVED FIXED
91 Branch
Tracking Status
firefox91 --- fixed

People

(Reporter: rpl, Assigned: rpl)

References

Details

Attachments

(1 file, 1 obsolete file)

This is a follow up task from Bug 1394579.

As mentioned in Bug 1394579 comment 25:

we are going to allow contex-fill behind a separate check for WebExtensionPolicy.isPrivileged but we didn't remove yet the existing checks for @mozilla.com / @mozilla.org addon id suffixes, because we should double-check that the line extension that were leveraging those checks have been signed to be able to use the IsPrivileged condition.

Once we verified there are no other Mozilla extensions that are leveraging the checks on the Mozilla addon id suffixes, we should ideally rip that off and leave only the WebExtensionPolicy.isPrivileged one.

This patch does change the extension-related special case in SVGContextPaint::IsAllowedForImageFromURI
to check the "internal:svgContextPropertiesAllowed" extension permission, and move the existing
criteria in the Extension class (which takes care of adding the internal permission when those
criteria as met).

This patch does not contain yet a new explicit test case for the new internal permission (which is
part of the patch build on top of this one and attached to the same bugzilla issue), but it does
pass the existing mochitest-chrome (test_chrome_ext_svg_context_fill.html).

Assignee: nobody → lgreco
Status: NEW → ASSIGNED
Attachment #9223259 - Attachment is obsolete: true
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/f76f82499fc9 Introduced internal:svgContextPropertiesAllowed webextension permission. r=dholbert,mixedpuppy
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 91 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: