Closed Bug 2031598 Opened 1 month ago Closed 1 month ago

Fix MessageHandlerRegistry.sys.mjs calling getExistingMessageHandler with an unused second argument

Categories

(Remote Protocol :: Agent, task, P3)

task

Tracking

(firefox151 fixed)

RESOLVED FIXED
151 Branch
Tracking Status
firefox151 --- fixed

People

(Reporter: jdescottes, Assigned: armin, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=js][webdriver:m20][webdriver:external][webdriver:relnote])

Attachments

(1 file)

The second argument at https://searchfox.org/firefox-main/rev/8332a06d47ce7d66623d807068b3410061cd29d3/remote/shared/messagehandler/MessageHandlerRegistry.sys.mjs#165-168

const rootMessageHandler = this.getExistingMessageHandler(
  sessionId,
  lazy.RootMessageHandler.type
);

is unused so it can be removed. But looking at the code, getRootMessageHandler is not used at the moment so I suggest to completely remove the method.

This is a simple code removal, if anyone wants to get an easy first contribution to setup the environment, this could be a good bug !

Hi, I would like to work on this. As you said, perfect for setting up the environment.

Sounds good Armin, you can follow the instructions on https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html to get started. The bug will be automatically assigned to you as soon as you submit a patch for it on Phabricator!

(In reply to Julian Descottes [:jdescottes] from comment #2)

Sounds good Armin, you can follow the instructions on https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html to get started. The bug will be automatically assigned to you as soon as you submit a patch for it on Phabricator!

Great, I will get to it after work. Thanks!

Assignee: nobody → armin
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 151 Branch
Priority: -- → P3
Whiteboard: [lang=js] → [lang=js][webdriver:m20][webdriver:external]
Whiteboard: [lang=js][webdriver:m20][webdriver:external] → [lang=js][webdriver:m20][webdriver:external][webdriver:relnote]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: