Closed
Bug 1851173
Opened 8 months ago
Closed 8 months ago
scripting.getRegisteredScripts should only return scripts registered using the scripting API namespace
Categories
(WebExtensions :: General, defect, P2)
WebExtensions
General
Tracking
(firefox119 fixed)
RESOLVED
FIXED
119 Branch
Tracking | Status | |
---|---|---|
firefox119 | --- | fixed |
People
(Reporter: rpl, Assigned: rpl)
Details
Attachments
(1 file)
This is technically mainly a potential issue that only manifest_version 2 extensions can hit, because they have both contentScripts and scripting API namespaces available (while manifest_version 3 extensions can't hit it because the contentScripts API namespace isn't exposed to MV3 extensions at all).
If an extension uses both the contentScripts and scripting APIs, then contentScripts registered from the contentScripts.register API method are actually returned as part of the results of the scripting.getRegisteredContentScripts API method.
This behavior seems to be unintended and likely surprising and unexpected from an extension perspective.
This bugzilla issue tracks is tracking fixing the unexpected behavior.
Assignee | ||
Comment 1•8 months ago
|
||
Updated•8 months ago
|
Assignee: nobody → lgreco
Attachment #9351213 -
Attachment description: WIP: Bug 1851173 - Reproduce the issue with contentScripts.register scripts returned by scripting.getRegisteredContentScripts with a minimal test case. → Bug 1851173 - scripting.getRegisteredContentScripts shouldn't return content scripts registered through contentScripts.register. r?willdurand!
Status: NEW → ASSIGNED
Assignee | ||
Updated•8 months ago
|
Severity: -- → S4
Priority: -- → P2
Pushed by luca.greco@alcacoop.it: https://hg.mozilla.org/integration/autoland/rev/f896bcf490ca scripting.getRegisteredContentScripts shouldn't return content scripts registered through contentScripts.register. r=willdurand
Comment 3•8 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
status-firefox119:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•