Closed Bug 1619630 Opened 6 years ago Closed 6 years ago

Several actors have a useless "dispatcher" constructor argument

Categories

(Firefox :: General, task, P3)

task

Tracking

()

RESOLVED FIXED
Firefox 75
Tracking Status
firefox75 --- fixed

People

(Reporter: Gijs, Assigned: Gijs)

References

Details

Attachments

(1 file)

+++ This bug was initially created as a clone of Bug #1619170 +++

All they do with it is pass it to super(), but JSWindowActorChild does not take any constructor arguments.

(In reply to Neil Deakin from bug 1619170 comment #2)

There are several other actors like this as well:

https://searchfox.org/mozilla-central/search?q=super(dispatcher)&case=false&regexp=false&path=

	browser/actors/AboutReaderChild.jsm
31	super(dispatcher);
	browser/actors/OfflineAppsChild.jsm
16	super(dispatcher);
	toolkit/actors/DateTimePickerChild.jsm
24	super(dispatcher);
	toolkit/actors/PictureInPictureChild.jsm
67	super(dispatcher);
	toolkit/actors/UAWidgetsChild.jsm

Not all of these are JSWindowActor-based - notably AboutReader and OfflineApps are not. But the other 3 look like they should have this removed.

Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/0aeddcf9020e remove useless 'dispatcher' argument to various JSWindowActorChild constructors, r=NeilDeakin
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: