Move the contents of preferencesBindings.js into ESM for better type support in the future
Categories
(Toolkit :: Preferences, task, P1)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox145 | --- | fixed |
People
(Reporter: mstriemer, Assigned: mstriemer)
References
Details
(Keywords: perf-alert, Whiteboard: [recomp])
Attachments
(3 files)
In bug 1976049 we'd like to enable better typescript support for the Settings UI code. This code depends on the preferencesBindings.js file which is somewhat stuck as a regular JS file for now. It has a closure which is preventing types from being exported
We can work around this by extracting its contents into ESMs and exporting them with the same API in preferencesBindings.js
| Assignee | ||
Comment 1•11 months ago
|
||
Updated•11 months ago
|
| Assignee | ||
Comment 2•11 months ago
|
||
| Assignee | ||
Comment 3•11 months ago
|
||
Updated•11 months ago
|
| Assignee | ||
Updated•11 months ago
|
Updated•11 months ago
|
Comment 5•11 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/f59cbe2e4ee7
https://hg.mozilla.org/mozilla-central/rev/a8d1e0c87dce
https://hg.mozilla.org/mozilla-central/rev/ae4ce6a2183c
Comment 6•11 months ago
|
||
(In reply to Pulsebot from comment #4)
Pushed by mstriemer@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/a6c1c2ab86cc
https://hg.mozilla.org/integration/autoland/rev/f59cbe2e4ee7
Part 1: Extract preferencesBindings.js classes into ESMs r=mkennedy,mconley
https://github.com/mozilla-firefox/firefox/commit/a42125dfdb35
https://hg.mozilla.org/integration/autoland/rev/a8d1e0c87dce
Part 2: Add Toolkit::Preferences to mots.yaml r=mossop,shtrom
https://github.com/mozilla-firefox/firefox/commit/13e2814fdf80
https://hg.mozilla.org/integration/autoland/rev/ae4ce6a2183c
Part 3: Include about:config in Toolkit::Preferences in mots.yaml r=mossop
Perfherder has detected a browsertime performance change from push ae4ce6a2183cb2914c2839f6ec98219a09e1fb5f.
If you have any questions, please reach out to a performance sheriff. Alternatively, you can find help on Slack by joining #perf-help, and on Matrix you can find help by joining #perftest.
Improvements:
| Ratio | Test | Platform | Options | Absolute values (old vs new) | Performance Profiles |
|---|---|---|---|---|---|
| 3% | speedometer3 Editor-TipTap/Highlight/Async | macosx1500-aarch64-shippable | fission webrender | 1.37 -> 1.34 | Before/After |
Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.
If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a performance sheriff to do that for you.
You can run all of these tests on try with ./mach try perf --alert 46907
The following documentation link provides more information about this command.
Updated•10 months ago
|
Description
•