Closed Bug 1987272 Opened 11 months ago Closed 11 months ago

Move the contents of preferencesBindings.js into ESM for better type support in the future

Categories

(Toolkit :: Preferences, task, P1)

task

Tracking

()

RESOLVED FIXED
145 Branch
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: nobody → mstriemer
Status: NEW → ASSIGNED
Severity: -- → N/A
Priority: -- → P1
Whiteboard: [recomp]
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch

(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.

Keywords: perf-alert
QA Whiteboard: [qa-triage-done-c146/b145]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: