Closed Bug 1808172 Opened 2 years ago Closed 2 years ago

Simplify handling of utility objects in Prompter.jsm

Categories

(Toolkit Graveyard :: Notifications and Alerts, task)

Tracking

(firefox110 fixed)

RESOLVED FIXED
110 Branch
Tracking Status
firefox110 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

Currently, Prompter.jsm imports PromptUtils from SharedPromptUtils.jsm, and then does a strange dance where it creates a temporarily object which inherits from PromptUtils. Finally it overwrites the imported PromptUtils with the new version.

There's a couple of options here. The first is to move all the additional functions into SharedPromptUtils.jsm, but I am not sure that is best - there are some fairly specific functions in there.

The other option is to separate the two objects - use Utils in Prompter.jsm which will not be extended from PromptUtils. They can then both be accessed directly when required, and it will be clear which object is in use.

Blocks: 1808173
Pushed by mbanner@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/83e148b22444
Simplify handling of utility objects in Prompter.jsm. r=Gijs
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: