Closed
Bug 1373788
Opened 8 years ago
Closed 8 years ago
The caret stops blinking in the entire tab as soon as a text field is unfocused
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox-esr52 | --- | unaffected |
firefox54 | --- | unaffected |
firefox55 | --- | unaffected |
firefox56 | + | fixed |
People
(Reporter: mstange, Assigned: ehsan.akhgari)
References
()
Details
(Keywords: regression)
Attachments
(1 file)
885 bytes,
patch
|
MatsPalmgren_bugz
:
review+
|
Details | Diff | Splinter Review |
Steps to reproduce:
1. Go to https://bugzilla.mozilla.org/enter_bug.cgi?product=Core&component=Gecko%20Profiler
2. Please the cursor into the description text box and observe that the caret blinks.
3. Click into the "Blocks:" text field a few rows below.
Now the caret stops blinking. Changing focus to a different text field doesn't restore the blinking behavior.
Blinking still works in all other tabs, even ones that run in the same content process as this tab.
I don't know whether this is a regression.
Reporter | ||
Comment 1•8 years ago
|
||
There's nothing special about enter_bug.cgi. This happens as soon as you move focus out of a text field.
For example it's reproducible on data:text/html,<input><input>
Summary: The caret stops blinking when focus is placed in the "Blocks" textbox on enter_bug.cgi → The caret stops blinking in the entire tab as soon as a text field is unfocused
![]() |
||
Comment 2•8 years ago
|
||
[Tracking Requested - why for this release]: caret blinking is broken
Regression window:
https://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=dfee29c06556ebe2f4ac43cf0744be9e93390d1d&tochange=db8a48dae370605e2b6de21326f882ef839401fd
Regressed by: db8a48dae370 Ehsan Akhgari — Bug 1372761 - Avoid needlessly grabbing the timer thread lock when selections change in order to reset the caret timer; r=mats
Blocks: 1372761
status-firefox55:
--- → unaffected
status-firefox56:
--- → affected
tracking-firefox56:
--- → ?
Flags: needinfo?(ehsan)
Keywords: regressionwindow-wanted → regression
Version: Trunk → 56 Branch
![]() |
||
Updated•8 years ago
|
Component: Editor → Layout
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → ehsan
Flags: needinfo?(ehsan)
Assignee | ||
Comment 3•8 years ago
|
||
Otherwise the next time in ResetBlinking() we mistakenly think
we already have the blinking timer set.
Attachment #8878738 -
Flags: review?(mats)
Updated•8 years ago
|
Attachment #8878738 -
Flags: review?(mats) → review+
Comment 4•8 years ago
|
||
Could you also make a regression test for this if possible?
layout/base/tests/test_reftests_with_caret.html is probably a good place.
Flags: needinfo?(ehsan)
Assignee | ||
Comment 5•8 years ago
|
||
Sure, but I'll land the patch now as it's a pretty bad regression.
Keywords: leave-open
Pushed by eakhgari@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c90a327a4da0
Reset the cached blink rate when the caret stops blinking; r=mats
Assignee | ||
Comment 7•8 years ago
|
||
(In reply to Mats Palmgren (:mats) from comment #4)
> Could you also make a regression test for this if possible?
> layout/base/tests/test_reftests_with_caret.html is probably a good place.
Actually I can't think of a good way to test this, since we disable caret blinking here: <https://searchfox.org/mozilla-central/rev/b95a1a95838cc6e85ea5d9b9e3ae39b4cd69d8ef/layout/base/tests/test_reftests_with_caret.html#334>
![]() |
||
Comment 8•8 years ago
|
||
bugherder |
Assignee | ||
Comment 10•8 years ago
|
||
(In reply to :Ehsan Akhgari (needinfo please, extremely long backlog) from comment #7)
> (In reply to Mats Palmgren (:mats) from comment #4)
> > Could you also make a regression test for this if possible?
> > layout/base/tests/test_reftests_with_caret.html is probably a good place.
>
> Actually I can't think of a good way to test this, since we disable caret
> blinking here:
> <https://searchfox.org/mozilla-central/rev/
> b95a1a95838cc6e85ea5d9b9e3ae39b4cd69d8ef/layout/base/tests/
> test_reftests_with_caret.html#334>
Moving the needinfo.
Flags: needinfo?(ehsan) → needinfo?(mats)
Assignee | ||
Comment 11•8 years ago
|
||
And closing the bug because now I'm getting "release tracking alert" emails for it...
Comment 12•8 years ago
|
||
Yeah, I can't think of a way to test this either. I don't think it's possible
to make the reftest screenshot hit the caret off-cycle reliably. I suspect
that even a very long "ui.caretBlinkCount" would cause a lot of intermittent
failures.
A bug like this is will be detected by humans fast enough anyway. :-)
Flags: needinfo?(mats) → in-testsuite-
Assignee | ||
Comment 13•8 years ago
|
||
Yeah... Our caret testing already depends quite a bit on human testing anyway, so I'm not too sad about this one additional case.
Updated•8 years ago
|
status-firefox54:
--- → unaffected
status-firefox-esr52:
--- → unaffected
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•