Closed
Bug 1749590
Opened 4 years ago
Closed 4 years ago
Setting the value and defaultValue of a range input is a lot slower in Firefox than Chrome/Safari
Categories
(Core :: DOM: Forms, defect)
Core
DOM: Forms
Tracking
()
RESOLVED
FIXED
98 Branch
| Tracking | Status | |
|---|---|---|
| firefox98 | --- | fixed |
People
(Reporter: jrmuizel, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
The requestAnimationFrame callback on the attached test case takes about 400+ ms in Firefox vs ~10ms in Chrome. All of the time in Firefox is being spent in ICU.
| Reporter | ||
Comment 1•4 years ago
|
||
| Reporter | ||
Comment 2•4 years ago
|
||
This extra work is showing up noticeably in profiles when sliding the volume slider on twitch (see bug 1749365)
Blocks: 1749365
| Reporter | ||
Comment 3•4 years ago
|
||
Here's a profile of Firefox: https://share.firefox.dev/3zN8q4r
| Assignee | ||
Comment 4•4 years ago
|
||
There's no reason the value of <input type=range> should use ICU. <input type=number> needs to accept possibly-localized user input, but that's not true of range. I can fix when I'm back from PTO if there's nobody who can take it earlier.
Flags: needinfo?(emilio)
| Assignee | ||
Comment 5•4 years ago
|
||
It should never need to deal with a localized value, unlike
<input type=number>.
Updated•4 years ago
|
Assignee: nobody → emilio
Status: NEW → ASSIGNED
| Assignee | ||
Comment 6•4 years ago
|
||
Actually it's even more trivial than I thought.
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7384180a6da7
Don't do localization shenanigans for <input type=range>. r=edgar
Comment 8•4 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox98:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
| Reporter | ||
Comment 9•4 years ago
|
||
I confirmed that this is dramatically better.
You need to log in
before you can comment on or make changes to this bug.
Description
•