Opened 11 years ago

Last modified 11 years ago

#11427 confirmed Bug

[IE8] Many "Invalid argument" errors when beginning of the document is removed

Reported by: Piotr Jasiun Owned by:
Priority: Normal Milestone:
Component: General Version: 4.0
Keywords: Cc:

Description (last modified by Piotr Jasiun)

  1. Open replacebyclass.html sample in IE 8.
  2. Select content: from strike through three and up to the begging of the document.
  3. Press Ctrl+C or Delete.

Result: Error: Invalid argument and Browser crash.

The same in inline.

IE9 and Chrome works fine.

Since 4.0.

Attachments (2)

11427-ie8-Browser-crash-when-begging-of-the-document-is-removed.webm (1.5 MB) - added by Piotr Jasiun 11 years ago.
11427.html (960 bytes) - added by Piotrek Koszuliński 11 years ago.

Download all attachments as: .zip

Change History (11)

comment:1 Changed 11 years ago by Piotr Jasiun

Screencast attached.

comment:2 Changed 11 years ago by Piotr Jasiun

Description: modified (diff)

comment:3 Changed 11 years ago by Marek Lewandowski

Status: newconfirmed

comment:4 Changed 11 years ago by Piotrek Koszuliński

Milestone: CKEditor 4.3.3

We need to investigate this issues.

First of all - using git bisect, because it may give us some idea what change (most likely some completely unrelated one) caused this.

comment:5 Changed 11 years ago by Piotr Jasiun

I get a browser crash because of debugging configuration. With the default settings you should get "only" plenty of "Invalid argument." errors.

Last edited 11 years ago by Piotr Jasiun (previous) (diff)

comment:6 Changed 11 years ago by Piotr Jasiun

Summary: [IE8] Browser crash when begging of the document is removed[IE8] Many "Invalid argument" errors when begging of the document is removed

comment:7 Changed 11 years ago by Piotrek Koszuliński

Summary: [IE8] Many "Invalid argument" errors when begging of the document is removed[IE8] Many "Invalid argument" errors when beginning of the document is removed

comment:8 Changed 11 years ago by Piotrek Koszuliński

Milestone: CKEditor 4.3.3

Unfortunately this issue is a very serious IE's bug. I triggered it without any plugins:

var editor = CKEDITOR.inline( 'editable', { plugins: '', allowedContent: true } );

and in both kind of editors. IE starts to throw errors for nearly every DOM operation, so I don't see a place where we could handle it with try-catch.

I even triggered it on native contenteditable with one line of selection#getRanges. See 11427.html.

However, to trigger this, we need very precise HTML. Even a space after image is important! And there has to be an inline element inside second paragraph. And image has to be floated. Therefore, I don't see this as a bug for which we should waste more time.

Last edited 11 years ago by Piotrek Koszuliński (previous) (diff)

Changed 11 years ago by Piotrek Koszuliński

Attachment: 11427.html added

comment:9 Changed 11 years ago by Jakub Ś

I think I have another TC for this one:

  1. Open replacebycode sample
  2. Click 3 times on "Apollo 11" header. It should be selected after these 3 clicks.
  3. Press Delete key or type any letter

Result: Error is thrown and page crashes.

There are also other similar issues: #10584 and #10477.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy