Opened 8 years ago
Last modified 8 years ago
#14844 confirmed Bug
[WebKit] Image2 throws IndexSizeError while undoing deletion of partially uploaded image
Reported by: | kkrzton | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.5.11 |
Keywords: | Cc: |
Description
Steps to reproduce
- Go to http://tests.ckeditor.dev:1030/tests/plugins/uploadwidget/manual/image2.
- Drop image into editor.
- Select the image with some surrounding text.
- Delete selection while the image is still being uploaded.
- Click undo.
Expected result
Deleted text should be brought back (without image) by undo.
Actual result
Deleted text is brought back (without image) by undo and error is thrown (in Chrome: Uncaught IndexSizeError: Failed to execute 'setEnd' on 'Range': There is no child at offset 11.
; in Opera: Uncaught IndexSizeError: Failed to execute 'setEnd' on 'Range': The offset 7 is larger than or equal to the node's length (5).
)