Last Comment Bug 579760 - Caret ("cursor") disappears before span with set background-color in iframe in designmode (rich text editor)
: Caret ("cursor") disappears before span with set background-color in iframe i...
Status: NEW
[good first bug]
:
Product: Core
Classification: Components
Component: Editor (show other bugs)
: Trunk
: All All
: -- major with 16 votes (vote)
: ---
Assigned To: Sreejith R
:
:
Mentors:
data:text/html,<!DOCTYPE html><div co...
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-18 11:40 PDT by Cacycle
Modified: 2015-06-22 23:23 PDT (History)
8 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments
Testcase (1.06 KB, text/html)
2010-07-18 11:41 PDT, Cacycle
no flags Details
Testcase (1.06 KB, text/html)
2010-07-18 11:50 PDT, Cacycle
no flags Details
Testcase (1.18 KB, text/html)
2010-07-18 11:57 PDT, Cacycle
no flags Details
missingTextCursorOnGoogleSpreadsheet.png (15.02 KB, image/png)
2014-07-07 00:14 PDT, Sebastian Zartner [:sebo]
no flags Details

Description Cacycle 2010-07-18 11:40:26 PDT
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.6) Gecko/20100625 Firefox/3.6.6 ( .NET CLR 3.5.30729)

The caret ("cursor") disappears when positioned from the left just before a span with set background-color style in iframes in designmode. This is a major problem in all existing rich text editors.

It only happens when moving the caret to the right, not when moving the caret to the left. It also happens only on the left side of the span. It does not happen when setting other styles such as color or border. It happens for all tested inline elements (<span>, <font>, <i>). It does not happen if the start of the span is at the beginning of a new line, e.g. after a <br> or for block level elements.


Reproducible: Always
Comment 1 Cacycle 2010-07-18 11:41:33 PDT
Created attachment 458195 [details]
Testcase
Comment 2 Cacycle 2010-07-18 11:50:14 PDT
Created attachment 458196 [details]
Testcase
Comment 3 Cacycle 2010-07-18 11:57:12 PDT
Created attachment 458198 [details]
Testcase
Comment 4 Cacycle 2010-07-18 12:04:23 PDT
A similar but maybe unrelated bug is described in 579763.
Comment 5 Cacycle 2010-07-18 13:00:36 PDT
A similar but maybe unrelated bug is described in bug 579763.
Comment 6 Sebastian Zartner 2010-12-04 13:05:52 PST
I can confirm this for FF 3.6.12 as well as today's nightly build of FF 4.0b8pre using Windows XP SP3.
Comment 7 Logan Rosen [:Logan] 2011-06-22 22:14:44 PDT
Changing the status to "New," as this is confirmed in the latest nightly build of Firefox on my end.
Comment 8 Sebastian Zartner [:sebo] 2014-07-07 00:14:36 PDT
Created attachment 8451457 [details]
missingTextCursorOnGoogleSpreadsheet.png

Here's a real world example:

1. Go to https://docs.google.com/spreadsheets/d/1-CERGJ75bZKrk73cWCqXtU2yBQYbNkSraymMW96efeo/edit?pli=1#gid=1950799756
2. Switch to the 'Abs. Numbers Monthly Summary' sheet
3. Select table cell B19
4. Click between the equal sign and the apostrophe inside the formula input field

Sebastian
Comment 9 Sebastian Zartner [:sebo] 2015-03-17 01:24:59 PDT
Here's a simpler test case (using contenteditable):

data:text/html,<!DOCTYPE html><div contenteditable="true">a<span style="background:lightblue;">b</span></div>

Set the text cursor before the a and then move it one to the right.

=> The text cursor disappears.

Sebastian
Comment 10 Sreejith R 2015-05-19 22:17:34 PDT
Build identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Firefox/38.0

Can confirm it's there in FF 38.0.1
Comment 11 Sreejith R 2015-05-19 22:24:08 PDT
Can I work on this? It's my first bug. I heard editor code can be a bit hairy. But I feel I can do it.
Comment 12 Sebastian Zartner [:sebo] 2015-06-20 04:46:09 PDT
I think I didn't reply to this earlier. If so, sorry for that!
I assigned the bug to you now, Sreejith. Thank you for taking it over! Please let me know if I can be of any help!

Sebastian
Comment 13 Sreejith R 2015-06-22 23:23:52 PDT
@Sebastian I'll start on this. Will let you know about updates.

Note You need to log in before you can comment on or make changes to this bug.