Changes between Initial Version and Version 16 of Ticket #14714


Ignore:
Timestamp:
Mar 15, 2017, 9:58:42 AM (7 years ago)
Author:
Marek Lewandowski
Comment:

Changed reproduce steps in the summary - the former involved some redundant steps. Adding original TC below:

Steps to reproduce

  1. Open two tabs in Chrome or Opera
  2. Open divarea sample and clear editor contents.
  3. Type text, select Big from styles dropdown, type more text, select Small and type more text
  4. Click on another tab, click on tab with editor and select e.g. Typewriter style from dropdown.

Expected result

No JS error is thrown

Actual result

Code: selection.js 
Line: 1921 
Message: Uncaught IndexSizeError: Failed to execute 'setStart' on 'Range': The offset 22 is larger than or equal to the node's length (15).

Code: style.js
Line: 331 
Message: Uncaught TypeError: Cannot read property 'elements' of null

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14714

    • Property Status changed from new to assigned
    • Property Owner set to Marek Lewandowski
    • Property Summary changed from Divarea - changing tabs and applying styles throws JS error to [Webkit/Blink] Exception thrown on refocusing blurred inline editor
    • Property Milestone changed from to CKEditor 4.7.0
  • Ticket #14714 – Description

    initial v16  
    11== Steps to reproduce ==
    22
    3 1. Open two tabs in Chrome or Opera
    4 2. Open divarea sample and clear editor contents.
    5 3. Type text, select {{{Big}}} from styles dropdown, type more text, select {{{Small}}} and type more text
    6 4. Click on another tab, click on tab with editor and select e.g. {{{Typewriter}}} style from dropdown.
     31. Open div area sample.
     41. Clear up the editor content.
     51. Put the selection inside the editor.
     61. Select "Marker" style from a styles dropdown and type some text.
     71. Blur the editor (by clicking outside of the editor).
     81. Click on styles button.
     91. Blur the editor (by clicking outside of the editor).
     101. Click on styles button.
    711
    812== Expected result ==
     
    1216== Actual result ==
    1317
    14 JS error is thrown: [[BR]]
    15 Code: selection.js [[BR]]
    16 Line: 1921 [[BR]]
    17 Message: Uncaught IndexSizeError: Failed to execute 'setStart' on 'Range': The offset 22 is larger than or equal to the node's length (15).
    18 
    19 Code: style.js[[BR]]
    20 Line: 331 [[BR]]
    21 Message: Uncaught TypeError: Cannot read property 'elements' of null
     18JS error is thrown:
     19{{{
     20Uncaught DOMException: Failed to execute 'setStart' on 'Range': The offset 13 is larger than or equal to the node's length (6).
     21}}}
    2222
    2323== Other details (browser, OS, CKEditor version, installed plugins) ==
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy