Page MenuHomePhabricator

VisualEditor: Copying text sometimes makes the page jump/scroll in Firefox
Closed, DeclinedPublic

Description

  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.


Version: unspecified
Severity: normal

Details

Reference
bz55433

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:14 AM
bzimport set Reference to bz55433.

I think Roan put in a fix this a while back, can he confirm?

Yes, fixed in gerrit 106185 (made avaiable in MW-VE in gerrit change 106731). Marking as such.

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.

Can't reproduce in FF 26. What exact text did you select? Can someone else confirm?

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).

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.

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

  1. 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.
  2. Now press your control or command key while the selected text is still highlighted. It now functions as an "up" button.
  3. Deselect the text that you have copied and function returns to the control/command.

Can't reproduce any of the issues described in this bug.