Opened 16 years ago
Closed 16 years ago
#3849 closed Bug (fixed)
Switching list type at the end of documet crashes IE8.
Reported by: | Martin Kou | Owned by: | Martin Kou |
---|---|---|---|
Priority: | Must have (possibly next milestone) | Milestone: | CKEditor 3.0 |
Component: | Core : Lists | Version: | SVN (CKEditor) - OLD |
Keywords: | Confirmed IE Oracle Review+ | Cc: | Senthil |
Description
This issue affects only IE8. To reproduce:
- Open replacebyclass.html in IE8.
- Press Enter a few times to create some empty paragraphs, and type some text at the last paragraph created.
- Make sure your caret is now at the end of the last paragraph - the bug only occurs when the caret is at the end of the document.
- Click "Insert/Remove Numbered List".
- Click "Insert/Remove Bulleted List".
- IE8 crashes.
Attachments (1)
Change History (8)
comment:1 Changed 16 years ago by
Keywords: | Pending added; Confirmed removed |
---|
comment:3 Changed 16 years ago by
Keywords: | Confirmed added; Pending removed |
---|
The problem occurs when the list command is trying to restore the previous selection. It happens with the indent command as well.
Changed 16 years ago by
Attachment: | 3849.patch added |
---|
comment:4 Changed 16 years ago by
Keywords: | Review? added |
---|
comment:5 Changed 16 years ago by
This is caused by the collapsed selection fix for IE related to the isStartMarkerAlone flag. The flag is commented out and assumed to be always true (i.e. the hack fix is always applied in IE) because it was found that the flag somehow doesn't work after it's ported from v2 to v3. The problem is, when the fix is applied to cases where it is not needed, it might crash IE8.
The reason this flag doesn't work is due to #3880 - actually the evaluation statement has a hidden typo in v2, but somehow the typo-ed statement actually gives the correct results. When the same statement is ported to v3, there's no such typo, and corrected statement gave the wrong result instead. The typo-ed part of the evaluation statement in v2 is found to be redundant in #3880, the correct fix is to remove that part of the statement in both v2 and v3.
So I have re-enabled the isStartMarkerAlone check in v3, and the browser crash issue seems to go away.
comment:6 Changed 16 years ago by
Keywords: | Review+ added; Review? removed |
---|
Plz append changlog on commit.
comment:7 Changed 16 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fixed with [3808].
Click here for more info about our SVN system.
WFM with IE8, could you please provide the editor content for reproducing this?