Open Bug 1307721 Opened 8 years ago Updated 1 month ago

Text cursor (caret) disappears in text area with dynamic content. Not a problem in Chrome.

Categories

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

49 Branch
Unspecified
Windows 10
defect

Tracking

()

People

(Reporter: miketangoromeo, Unassigned)

References

()

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
Build ID: 20160922113459

Steps to reproduce:

Open the editor for DIYCaptions by clicking Go on the homepage at www.diycaptions.com using the sample video ID suggested.  Click Save and Next several times. Each time, the cursor will be visible blinking at the beginning of the textarea control below the video pane. Now click Save and Previous.


Actual results:

The cursor will not be visible though if you type, the characters will be inserted at the end of the box. From there, it will be impossible to make the cursor visible short of clicking in the box with the mouse.


Expected results:

The cursor should always be visible and blinking. This has never been a problem in Chrome. But at the present time, I am not been able to come up with any approach in JavaScript which will make the cursor visible in Firefox when I use the Save and Previous button to go back one caption. When going back, the code places the cursor at the end of the text rather than at the beginning as it would when moving forward through the video.
OS: Unspecified → Windows 10
Component: Untriaged → Editor
Product: Firefox → Core
I've reproduced this on windows10, The cursor works just fine.It is visible and blinking at the beginning of the text area.

I have also reproduced it on Ubuntu 14.04 x32 on Firefox Nightly 52 and it also works just fine.

Mike, if I didn't get the steps to reproduce wrong, I'd move for a resolve as invalid.
My apologies. My instructions for duplicating the issue were incorrect. 

There is no problem if I navigate between subcaptions using the mouse to click either the "Save and Previous" or the "Save and Next" buttons. The problem occurs for me when I use the Shift+Tab key that is bound to the same function to trigger the Save and Previous. In that instance, my experience is that the cursor becomes invisible and focus is at least partially lost. If I type text at this point, the text is inserted at the end of the box, as would be the case in Chrome. So the caret is being properly placed. It just can't be seen by a human. 

Also, focus is lost in some fashion, as evidence by the fact that if I press the Home key the End key, the page moves rather than the caret moving to the beginning or end of the box.
Priority: -- → P3

This is annoying and happens every single day, multiple times. Yet no-one even bothered to set it to "new", from unconfirmed. (It's not even "new" yet, even though it's ancient.)

Also this doesn't seem to be of the uniquely Firefox disappearing issue. There are some much older ones, also never fixed.
Which matches my memories of sometimes getting this years before this bug was filed. But it didn't used to be a many times a day occurance.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.