Closed
Bug 1357638
Opened 7 years ago
Closed 7 years ago
"dom.forms.inputmode" is referred with Preferences::GetBool() at every click in <input type="text"> and <textarea> and moving focus to them
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P1)
Core
DOM: UI Events & Focus Handling
Tracking
()
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: masayuki, Assigned: ben.tian)
Details
Attachments
(1 file)
IMEStateManager::SetIMEState() refers "dom.forms.inputmode" with Preferences::GetBool() when it's called with <input type="text"> (or similar) and <textarea>. It's called at every focus change and click. So, this might not cause performance issue with any benchmark. But it might waste CPU/battery usage. So, perhaps, it should use Preferences::AddBoolVarCache().
Comment 1•7 years ago
|
||
Hi Ben, could you please take this? Thanks!
Flags: needinfo?(btian)
Priority: -- → P1
Whiteboard: [qf]
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Updated•7 years ago
|
Whiteboard: [qf] → [qf:p1]
Assignee | ||
Updated•7 years ago
|
Attachment #8859890 -
Flags: review?(masayuki)
Reporter | ||
Comment 5•7 years ago
|
||
mozreview-review |
Comment on attachment 8859890 [details] Bug 1357638 - Use Preferences::AddBoolVarCache() to accelerate dom.forms.inputmode access in IMEStateManager::SetIMEState(), https://reviewboard.mozilla.org/r/131870/#review135140
Attachment #8859890 -
Flags: review?(masayuki) → review+
Comment hidden (mozreview-request) |
Assignee | ||
Comment 7•7 years ago
|
||
Try result: https://treeherder.mozilla.org/#/jobs?repo=try&revision=968758ed21c7
Keywords: checkin-needed
Pushed by ihsiao@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f0127a117bcb Use Preferences::AddBoolVarCache() to accelerate dom.forms.inputmode access in IMEStateManager::SetIMEState(), r=masayuki
Keywords: checkin-needed
Comment 9•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f0127a117bcb
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•5 years ago
|
Component: Event Handling → User events and focus handling
Updated•2 years ago
|
Performance Impact: --- → P3
Whiteboard: [qf:p3]
You need to log in
before you can comment on or make changes to this bug.
Description
•