Refactor subdialogs.js to reusable JSM
Categories
(Toolkit Graveyard :: Notifications and Alerts, enhancement, P1)
Tracking
(firefox80 fixed)
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.
Assignee | ||
Comment 1•5 years ago
|
||
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D82405
Comment 3•5 years ago
|
||
Taking a guess at priority for triage, please correct as necessary.
Assignee | ||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
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?
Assignee | ||
Comment 6•5 years ago
|
||
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.
Comment 7•5 years ago
|
||
Backed out for perma failures.
Log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=309123905&repo=autoland&lineNumber=8467
Backout: https://hg.mozilla.org/integration/autoland/rev/02fa37a7e4c19ff4e64f2a6f29ed618185353486
Assignee | ||
Comment 8•5 years ago
•
|
||
(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.
Comment 9•5 years ago
|
||
Many thanks.
Comment 10•5 years ago
|
||
Assignee | ||
Updated•5 years ago
|
Comment 11•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/4670b0d08306
https://hg.mozilla.org/mozilla-central/rev/f334186f5c18
Updated•2 years ago
|
Description
•