Last modified: 2013-07-30 15:46:38 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 T54125, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52125 - VisualEditor - Using "Select all" (Ctrl+a) and deleting the selected content afterwards leaves the document uneditable.
VisualEditor - Using "Select all" (Ctrl+a) and deleting the selected content ...
Status: RESOLVED DUPLICATE of bug 50947
Product: VisualEditor
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Rob Moen
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-26 22:21 UTC by Excirial
Modified: 2013-07-30 15:46 UTC (History)
5 users (show)

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


Attachments

Description Excirial 2013-07-26 22:21:33 UTC
Tested on Firefox 22, Monobook and Vector skin. DOES NOT seem to affect Chrome 28 on Vector.

Steps to reproduce:
- Open the [[Olive Branch High School]] in the visual editor.
- Press CTRL+A to select everything on the page.
- Press Delete.

The result will be that the entire document becomes uneditable since there is no editable section anymore that the user can click. The console will report the error:
- "TypeError: node is null"

If you don't click anywhere else after pressing delete and start typing the visual editor will behave extremely wonkey. I have seen behavior that ranged from adding an unending steam of pawns to cursor focus jumping all over the page. Additionally, the console will fill with a hailstorm of errors (Below is just a small sample). 
- Error: ve.dm.Document.getNodeFromOffset(): offset -1 is out of bounds 
- TypeError: parent is null 
- Error: Unbalanced set of replace operations found 
- Error: Unbalanced input passed to document
- Error: Invalid retain length, cannot retain backwards

The above is likely just a consequence of the deletion . If i look at firebug's output it seems that Ctrl+A will delete these lines:

<p data-parsoid="{&quot;dsr&quot;:[0,45,0,0]}" class="ve-ce-branchNode">
<span class="ve-ce-branchNode-slug ve-ce-branchNode-inlineSlug">&#65279;</span></p>
Comment 1 Excirial 2013-07-26 23:15:50 UTC
Slight alteration: Chrome 28 does seem to be affected after all, though the problem is less severe.

(Chrome)
- Open the [[Nodeulseom]] in the visual editor.
- Press CTRL+A to select everything on the page.
- Press Delete.

Chrome will place a pawn (♙) in the article as soon as one starts typing after the deletion. Often this pawn is also a hyperlink. Firefox will behave in a similar fashion on this specific page.

Both Chrome and Firefox report a single error in the console:
"Error: Offset could not be translated to a DOM element and offset: 3"

This is probably because the article in this instance isn't blanked entirely. Ctrl+a followed by delete doesn't seem to delete the categories present in the article.
Comment 2 John Mark Vandenberg 2013-07-27 06:09:19 UTC
On Firefox I can get pawns too, or keypresses causing the character to appear twice, if I do
1. Control-A
2. Delete
3. type 'a'

But the page becomes unusable if I follow these steps:
1. Control-A
2. Delete
3. Click on the link icon, or anything else
4. type a- doesnt work
Comment 3 James Forrester 2013-07-30 15:46:38 UTC
This is a duplicate of bug 50947 - merging.

*** This bug has been marked as a duplicate of bug 50947 ***

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


Navigation
Links