Closed Bug 1776841 Opened 2 years ago Closed 2 years ago

Support <all_urls> in MV3 web_accessible_resources[].matches

Categories

(WebExtensions :: General, defect, P2)

Firefox 104
defect

Tracking

(firefox104 fixed)

RESOLVED FIXED
104 Branch
Tracking Status
firefox104 --- fixed

People

(Reporter: oliver, Assigned: mixedpuppy)

References

Details

(Whiteboard: [addons-jira])

Attachments

(2 files)

Attached file Archive.zip (deleted) —

Steps to reproduce:

  1. Unzip Archive.zip
  2. Enable "extensions.manifestV3.enabled" and "xpinstall.signatures.required" in Firefox Nightly.
  3. Attempt to load the "all_urls" extension.

Actual results:

The extension fails to load because <all_urls> does not match the expected RegEx.

Expected results:

It would be great for this to be supported.

The functionality would be the same as both https://*/* and http://*/* which already work today. I've included a "regex" extension which demonstrates this. Load the extension, make sure to give it permission to alter all webpages, and then go to https://example.com/ to see the content script/CSS injected and a red border shown.

Both of these examples work in Chrome.

Source code: https://play.web-extensions.dev/#s=N4IgRgTg9g7gzgUwiAXCAwgC2gWwSAGhBwEMA7ASwDME4AXANSTgqjNRAFkGBmQkCmQDGAGwCuAEwQAFKCICeVCiJGo6EMQiJ0EOAA4iSOgJISOmBCqgB1KBBFmiSkbVQBtUGRJ4OpSjXoAOgArODZ%2BHQAPOg5gAB0yAAJEuJAvPFSUFJAAQRVEgFUAJQAZOESAITEAc1SCBOTUgDdmVjJM7IAGQIBGOobsv2paOgB9FogWNg6eeqTsqTghCAo9OjaO1O4eSprEooQ9aH751KE2HTIxpZW1uA63AeT4%2BeTG4iMhC3vURMfXt7vAA8JBUozE9jgAD5Uk83gBdOaA96hB5wwFnC4IK4hH7oxLwuEAXwGiIGqRgCDAoxIQiEtBYYBcowgtCgEPpPyy-0BL2R2VZYQ5tDRAIxIHo8hccECQjgeLFBKRyNSpDoXxFvx5-OyILBEJE0NhisJAJJ81NRJARIInm8%2BDQ5yu2LogTocAiCGiHCdYRcgREUGqAApUjkJBJBNVEpLpRYEK7AoFUgBKADcCQSvroiREggA1okALyJCRQIRiPA45YIIwIACiLirdFDIDzZHzqYzZHb%2BcCrJExeysdo8boqW7vbd8j0CCHqSidAA9HKfpOC4FsAgqEPILBEBB%2B2IrhQ8IFqgniiVWyOZauuwkyxXm4EwFAJPJAiQ9LOyBIsMoEjBr26YJNatppPaHC3rK8qet6aBvh%2BiR8okb4QFIEBZAATHokQxnIFASIkrISN2VpEvCRJAA

The Bugbug bot thinks this bug should belong to the 'WebExtensions::Untriaged' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Product: Firefox → WebExtensions
Blocks: 1697334
Status: UNCONFIRMED → NEW
Component: Untriaged → General
Ever confirmed: true
Whiteboard: [addons-jira]
Severity: -- → S3
Priority: -- → P2
Assignee: nobody → mixedpuppy
Status: NEW → ASSIGNED
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c48a6a27843f Support <all_urls> in MV3 web_accessible_resources[].matches r=rpl
Pushed by scaraveo@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8014dc2c6c61 Support <all_urls> in MV3 web_accessible_resources[].matches r=rpl
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
Flags: needinfo?(mixedpuppy)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: