Closed Bug 1415416 Opened 7 years ago Closed 7 years ago

Problem with cursor, it doesn't appear on focused textbox

Categories

(Core :: DOM: Editor, defect, P2)

56 Branch
defect

Tracking

()

VERIFIED FIXED
mozilla59
Tracking Status
firefox-esr52 --- unaffected
firefox56 --- wontfix
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- verified

People

(Reporter: hunglech, Assigned: m_kato)

References

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.89 Safari/537.36 Steps to reproduce: When i change readOnly and value in texbox and press tab key the cursor does not appear on focused textbox Actual results: Ex: https://jsfiddle.net/b2y7horx/ When focus on text1 and press tabkey, it focus on text2 but the cursor does not show Expected results: The cursor appear on textbox Thank you FF team
I didn't see this in 55, seems a regression after that somewhere.
This is the regression-window https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=9af23c413a1f8d337b19b4f8450e241e91b71136&tochange=d2aff6fc075dc4a0e5ca5b4cf7d530979942d4b4 I failed to determine a specific commit which may cause this. Could you take a look at the window and see if you have thoughts about which seems suspicious, Jessica?
Flags: needinfo?(jjong)
Priority: -- → P2
Version: 58 Branch → 56 Branch
Regressed by: c46231bce5bc Makoto Kato — Bug 1375910 - Don't remove text node when setting value is empty string. r=masayuki :m_kato Your patch seems cause the regression. Can you look into this?
Blocks: 1375910
Component: DOM: Core & HTML → Editor
Flags: needinfo?(m_kato)
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → m_kato
Flags: needinfo?(m_kato)
Flags: needinfo?(jjong)
It seems to call collapse in this case. But it might cause performance regression.
nsTextControlFrame::SelectAllOrCollapseToEndOfText won't detect that text is empty. So we should add logic to detect empty correctly or use nsIEditor's method.
Comment on attachment 8941772 [details] Bug 1415416 - Part 1. Collapse selection on focus when value is empty. https://reviewboard.mozilla.org/r/212020/#review218078
Attachment #8941772 - Flags: review?(masayuki) → review+
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/autoland/rev/e77e0779441a Part 1. Collapse selection on focus when value is empty. r=masayuki https://hg.mozilla.org/integration/autoland/rev/02e365e09e79 Part 2. Add test. r=masayuki
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
Not a new issue, we're at RC week => wontfix for 58.
Flags: qe-verify+
I have reproduced this issue using Firefox 58.0a1 (2017.11.07) on Win 8.1 x64. I can confirm this issue is fixed, I verified using Firefox 59.0b5 on Win 8.1 x64 and Mac OS X 10.13.2 and Ubuntu 14.04 x64.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: