Closed Bug 1926767 Opened 3 months ago Closed 3 months ago

amIAddonManager interface is nothing

Categories

(Toolkit :: Add-ons Manager, task, P5)

task

Tracking

()

RESOLVED FIXED
134 Branch
Tracking Status
firefox134 --- fixed

People

(Reporter: m_kato, Assigned: enoki.lucas, Mentored)

References

Details

(Keywords: good-first-bug, Whiteboard: [lang=js])

Attachments

(1 file)

https://searchfox.org/mozilla-central/rev/abe6e3de6850eca664e968484f8ecfc53487ea42/toolkit/mozapps/extensions/amManager.sys.mjs#323 is trying to register amIAddonManager interface for QI, but his interface is removed.

So we should remove this meaningless QI parameter.

For the record, the interface was removed in bug 1445551, specifically https://hg.mozilla.org/mozilla-central/rev/f52c1d6859be#l16.1

To resolve the bug, it suffices to remove the line mentioned in the initial comment (and maybe remove a few line breaks if prettier prefers to put the array content and function call on one line).

Severity: -- → N/A
Priority: -- → P5
See Also: → 1445551

Hello! New contributor here. I'd like to take on this bug if that is possible.
Could I get assigned?

Hi Lucas,

When you attach a patch, a bot will automatically assign the bug to you.

To get started, you need to check out the code. You can find instructions at https://wiki.mozilla.org/WebExtensions/Contribution_Onramp

Usually you need to build and run tests to verify the patch, but because I already verified that this is dead code, and no functional impact is expected from removing the line, the work needed becomes simpler - just remove one line of code, create a commit and then submit a patch.

Please give that a try, and let me know if you need more help!

Mentor: rob

The amIAddonManager interface was removed in Bug 1445551, but the registration was left in amManager.sys.mjs. This patch removes the now-unused QI parameter, as it no longer serves any purpose.

Assignee: nobody → enoki.lucas
Status: NEW → ASSIGNED
Pushed by rob@robwu.nl: https://hg.mozilla.org/integration/autoland/rev/410ba76dc336 Remove amIAddonManager interface registration in amManager.sys.mjs. r=robwu
Status: ASSIGNED → RESOLVED
Closed: 3 months 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

Creator:
Created:
Updated:
Size: