Closed Bug 1650794 Opened 5 years ago Closed 5 years ago

Refactor subdialogs.js to reusable JSM

Categories

(Toolkit Graveyard :: Notifications and Alerts, enhancement, P1)

enhancement

Tracking

(firefox80 fixed)

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: emz, Assigned: emz)

References

Details

Attachments

(2 files)

We would like to re-use the SubDialog classes from subdialogs.js for a dialog box on tab level.

Blocks: 1650795

Taking a guess at priority for triage, please correct as necessary.

Severity: -- → N/A
Priority: -- → P2
Priority: P2 → P1
Pushed by pzuhlcke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/45b3d9917fb3 Refactor subdialogs.js to reusable SubDialog.jsm. r=Gijs,preferences-reviewers https://hg.mozilla.org/integration/autoland/rev/5ffeb4bf7fa5 Extended SubDialogManager to support queuing dialogs. r=Gijs

Great you put this JSM in toolkit. Thunderbird could use it too as we use now our own subdialogs.js. The only problem is, that we insert dialog.css from "chrome://messenger/skin/preferences/dialog.css" which has some differences from the browser one. Would it be somehow possible to load the stylesheet depending on the app that uses the JSM? Or is there a different solution?

Flags: needinfo?(pbz)

Oh I see, the default list of injected stylesheets still references a CSS from preferences. To make it more modular we can probably just remove the default entries from the injectedStyleSheets array and let the consumers provide it.

Flags: needinfo?(pbz)

(In reply to Richard Marti (:Paenglab) from comment #5)

Great you put this JSM in toolkit. Thunderbird could use it too as we use now our own subdialogs.js. The only problem is, that we insert dialog.css from "chrome://messenger/skin/preferences/dialog.css" which has some differences from the browser one. Would it be somehow possible to load the stylesheet depending on the app that uses the JSM? Or is there a different solution?

I've talked to :gjis to confirm. I'll move the preferences stylesheet to be passed by the consumer and we'll land the JSM with only common.css. That way it should also be compatible with Thunderbird.

Many thanks.

Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/4670b0d08306 Refactor subdialogs.js to reusable SubDialog.jsm. r=Gijs,preferences-reviewers https://hg.mozilla.org/integration/autoland/rev/f334186f5c18 Extended SubDialogManager to support queuing dialogs. r=Gijs
Flags: needinfo?(pbz)
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla80
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: