Last modified: 2014-08-28 15:40:19 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 T57433, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55433 - VisualEditor: Copying text sometimes makes the page jump/scroll in Firefox
VisualEditor: Copying text sometimes makes the page jump/scroll in Firefox
Status: RESOLVED WORKSFORME
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Ed Sanders
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-07 18:21 UTC by Quim Gil
Modified: 2014-08-28 15:40 UTC (History)
7 users (show)

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


Attachments

Description Quim Gil 2013-10-07 18:21:24 UTC
1. Edit a page with VisualEditor.
2. Copy a line of text.

Sometimes it just copies the line to the clipboard without generating any move of the content (expected behavior). But sometimes just by typing ctrl-C with text selected you will see a jump of the page.

I haven't found the pattern, but it looks like doing this close to the end of long pages makes it easier to reproduce.
Comment 1 Ed Sanders 2014-01-21 15:04:11 UTC
I think Roan put in a fix this a while back, can he confirm?
Comment 2 James Forrester 2014-01-21 16:22:23 UTC
Yes, fixed in Gerrit change #106185 (made avaiable in MW-VE in Gerrit change #106731). Marking as such.
Comment 3 Juan de Vojníkov 2014-02-05 08:50:40 UTC
I am reopening this bug as I am obscuring such behaviour again in FF 26.0 at this page:
https://cs.wikipedia.org/wiki/Mammillaria_standleyi

Way to reproduce:
*Select an item in the unsorted list
*hit CTRL+C

You will see a jump up and down of the page, which is pretty unconfortable during editing.
Comment 4 Ed Sanders 2014-02-05 14:06:36 UTC
Can't reproduce in FF 26. What exact text did you select? Can someone else confirm?
Comment 5 Juan de Vojníkov 2014-02-17 10:49:05 UTC
OK I tried FF 27 and safe mode and I have discovered that problem comes when there are empty list items in undordered list. E.g. If I have:


*M. auricantha R.T. Craig
*M. auritricha R.T. Craig
*
*
*M. canelensis R.T. Craig
*M. hertrichiana R.T. Craig
*M. lindsayi R.T. Craig

And I select whatever string on that page and type CTRL+C it "jumps"

Note: to produce empty li is just place cursor on the end of second item and hit several times enter (in this case 2 times).
Comment 6 Juan de Vojníkov 2014-02-25 07:06:21 UTC
Well, the problem also encountered on this page: 
https://cs.wikipedia.org/wiki/Seznam_lid%C3%AD%2C_kte%C5%99%C3%AD_byli_zabiti_b%C4%9Bhem_Euromajdanu

E.g. when copy&pasting "." between rows it also jumps. Problem confirmed in:
*FF 27 safe mode
*FF 27.0.1
*FF 27.0.1 logged of

In Google Chrome 33.0.1750.117 m it jumps and paste sometimes and just once. In IE 7 VE doesnt work at all.
Comment 7 Keegan Peterzell 2014-07-07 22:59:12 UTC
Using *any* means of copying text is making the ctrl/cmd key cause a page to jump up, not just ctrl-c/cmd-c, in Firefox. Right-click and select "Copy" and the same thing happens to the ctrl/cmd key. I cannot replicate this in Chrome.

Using Firefox 30:
1. Open any article of reasonable length to edit in VisualEditor, let's say 
https://en.wikipedia.org/wiki/Cat?veaction=edit
2. Scroll down to the middle of the article, select any portion of text, and copy it by either ctrl-c/cmd-c *or* right-clicking on the section with the mouse and selecting copy, without using a keyboard shortcut at all.
3. Now press your control or command key while the selected text is still highlighted. It now functions as an "up" button.
4. Deselect the text that you have copied and function returns to the control/command.
Comment 8 Ed Sanders 2014-08-26 16:33:09 UTC
Can't reproduce any of the issues described in this bug.

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


Navigation
Links