Last modified: 2014-11-13 13:17:13 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T74579, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 72579 - VisualEditor: Deleting from a paragraph-terminating node to a paragraph-terminating node (?) is throwing "Unbalanced set of replace operations found"
VisualEditor: Deleting from a paragraph-terminating node to a paragraph-termi...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: High normal
: VE-deploy-nextup
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-27 20:34 UTC by Stryn
Modified: 2014-11-13 13:17 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Stryn 2014-10-27 20:34:15 UTC
Reproduce:

1. go to https://fi.wikipedia.org/wiki/User:Stryn/VE?veaction=edit
2. highlight all texts from the end of "This is just a test.[1]" to end of "Visuaalinen muokkain.[2]" and press backspace button or delete or whatever and nothing happens - VE just gets stuck.
3. you can't save the page nor switch to wikitext editor even if you have made changes to the page.

If you highlight text from "This is just a test.[1]" to "This is not." it's working as it should. So probably the problem is with the references.
Comment 1 etonkovidova 2014-11-03 23:13:08 UTC
Confirmed in test2 and on https://fi.wikipedia.org/wiki/User:Stryn/VE?veaction=edit.

On the page https://fi.wikipedia.org...  - there are many Uncaught Error: ve.dm.Document.getBranchNodeFromOffset(): offset 39 is out of bounds etc.


In test2: type four lines of text on four separate lines.

- Add reference to the end of the first line
- add another reference to the end of the second line
- leave the third line as it is
- re-use the first reference and add it to the end of the fourth line


Start highlighting the text and try to delete it with 'Delete' button. 
FF displays: 
Error: Unbalanced set of replace operations found load.php:316
TypeError: currentNode.children[(nao.offset - 1)] is undefined load.php:479
Error: Unbalanced input passed to document.

After several attempts of highlighting and deleting - the page becomes unresponsive - I can place cursor but cannot move it with arrow or Enter buttons; cannot Save, cannot switch to Read mode(TypeError: data[i] is undefined).

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


Navigation
Links