Last modified: 2012-10-16 08:50:14 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 T40037, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38037 - VisualEditor: select all (ctrl+a) throws JS error in Firefox
VisualEditor: select all (ctrl+a) throws JS error in Firefox
Status: RESOLVED WORKSFORME
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Inez Korczyński
https://www.mediawiki.org/wiki/Visual...
:
: 38207 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-28 18:58 UTC by Brion Vibber
Modified: 2012-10-16 08:50 UTC (History)
4 users (show)

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


Attachments

Description Brion Vibber 2012-06-28 18:58:38 UTC
Possibly harmless but worrying.

Steps to repro:
* go to https://www.mediawiki.org/wiki/VisualEditor:Test?debug=true
* hit edit
* click in the article
* ctrl+a (cmd+a on mac) to select all

Expected:
* all text of article should be selected

Actual:
* all text of article is selected
* AND there's an error in the JS console: "end is undefined"
ve.ce.Surface.js (line 832)
rangyRange.setEnd( end.node, end.offset );
Comment 1 Brion Vibber 2012-06-28 19:00:11 UTC
Tested in Firefox 12.0 on Ubuntu 12.04 and 16 nightly on Mac OS X 10.7.4
Comment 2 Roan Kattouw 2012-07-05 20:17:30 UTC
I can reproduce this in Firefox 13. Does not happen in Chrome.
Comment 3 Roan Kattouw 2012-07-05 20:17:39 UTC
*** Bug 38207 has been marked as a duplicate of this bug. ***
Comment 4 Nicolas Raoul 2012-07-06 02:28:58 UTC
(In reply to comment #0)
> Possibly harmless

It actually is harmful, and I suggest raising priority.

Steps to reproduce:
1) Go to http://www.mediawiki.org/wiki/Special:VisualEditorSandbox with Firefox
2) Press CTRL-A (or select all text with the mouse)
3) Press CTRL-X to cut all this text. The text disappears.
4) Press CTRL-V to reinsert the text.

PROBLEM: One can enter text, but not new lines. Pressing "Enter" does not have
any effect.

Tested on Ubuntu 2012.04, Firefox 13.0.1

Tip to take with a grain of salt: I have seen some problems with UNDO when selecting everything or even everything but last character, but I can't reproduce, so don't mind. If I find something reproducible I will let you know.
Comment 5 Christian Williams 2012-10-16 08:50:14 UTC
It doesn't look like this is happening any longer. Lots of changes that may have fixed this have rolled out since July.

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


Navigation
Links