Closed Bug 1911834 Opened 4 months ago Closed 19 hours ago

Implement matches OR includeGlobs semantics for MV3 userScripts API

Categories

(WebExtensions :: General, enhancement, P2)

enhancement

Tracking

(firefox134 fixed)

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: robwu, Assigned: robwu)

References

(Blocks 1 open bug)

Details

(Whiteboard: [addons-jira])

Attachments

(1 file)

See https://bugzilla.mozilla.org/show_bug.cgi?id=1875475#c3 for details.

The current content script internals treats matches[] and includeGlobs[] as AND conditions, but they should be OR. A user script may run on any URL that the extension can script. At least matches[] or includeGlobs[] should be a non-empty array.

Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/1a3a7c2577d7 Implement matches OR includeGlobs semantics for user scripts r=zombie
Status: NEW → RESOLVED
Closed: 19 hours ago
Resolution: --- → FIXED
Target Milestone: --- → 134 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: