Closed Bug 1828128 Opened 2 years ago Closed 2 years ago

MV3 extension cannot load when an empty web_accessible_resources list is in manifest.json

Categories

(WebExtensions :: General, enhancement, P2)

enhancement

Tracking

(firefox114 fixed)

RESOLVED FIXED
114 Branch
Tracking Status
firefox114 --- fixed

People

(Reporter: robwu, Assigned: robwu)

References

Details

(Whiteboard: [addons-jira])

Attachments

(1 file)

web_accessible_resources is allowed to be an empty list in MV2 (and also in Chrome's MV3).

Firefox currently refuses to load the extension when an empty web_accessible_resources list is specified.

It even refuses to load if web_accessible_resources is specified, but matches or resources is an empty list. In bug 1809431 we updated the schema to allow an empty extension_ids list.
Chrome allows the extension to load with these set to an empty list, we should too.

See Also: → 1809431
Assignee: nobody → rob
Status: NEW → ASSIGNED

I found another issue - web_accessible_resources does not permit additional properties. That means that extensions with use_dynamic_url will fail to load (we haven't implemented use_dynamic_url yet, it's part of bug 1713196).

See Also: → 1713196
  • Do not require any item in the arrays

  • Allow web_accessible_resources to have unrecognized properties instead
    of refusing to load the extension.

  • Fix up minor quality issues in tests.

Severity: -- → N/A
Type: defect → enhancement
Priority: -- → P2
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/2dfd444d61d4 Relax required syntax for web_accessible_resources r=willdurand
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 114 Branch
See Also: → 1831417
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: