Last modified: 2014-08-29 20:48:06 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 T59217, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57217 - VisualEditor: Cutting text undoes previous typing
VisualEditor: Cutting text undoes previous typing
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: High major
: VE-deploy-2014-08-28
Assigned To: Ed Sanders
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-18 23:41 UTC by WhatamIdoing
Modified: 2014-08-29 20:48 UTC (History)
8 users (show)

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


Attachments

Description WhatamIdoing 2013-11-18 23:41:05 UTC
Intention:
Copyedit a page

Steps to Reproduce:
1. Open a page with pre-existing content.
2. Type or change some of the text (I was adding a new first line).
3. Select and cut (⌘ Command+x) some pre-existing text (I cut mine from the end of the third line).
4. Notice that what you typed on the first line has been undone.
5. Paste what you cut (in my case, at the end of the first line).
6. Notice that what you typed on the first line has been redone.



Expected Results:  
That text would not magically disappear and reappear.

Reproducible: Always

I experienced this on office.wikipedia.org using Safari 6 on Mac OS 10.7.5.  It was confirmed at en.wikipedia.org using Vector/Chrome 30/Windows 7, with the additional discoveries that:

If you type your new first line all in one go (so that 'undo' would remove the whole first line), the first character of the new line remains present.

The undone text only reappears if you paste your cut text onto the line with the now-missing text.
Comment 1 Mc128k 2014-08-21 09:29:51 UTC
I have a similar issue that makes Safari reopen a closed tab, same with cmd-x.
It doesn't happen immediately and in all cases though.
Comment 2 James Forrester 2014-08-21 16:07:20 UTC
(In reply to Mc128k from comment #1)
> I have a similar issue that makes Safari reopen a closed tab, same with
> cmd-x.
> It doesn't happen immediately and in all cases though.

I'm pretty sure it's impossible for VisualEditor to cause a browser to re-open a tab; you probably have a keyboard mapping clash or something similar?
Comment 3 WhatamIdoing 2014-08-21 16:44:57 UTC
Whether it's impossible or not, it happens every time I use Command-X in Safari after closing a tab.  It only happens if "Undo closed tab" is listed in Safari's Edit menu as the action for undo/Command-Z.  It's bug 58724.
Comment 4 Mc128k 2014-08-21 18:09:27 UTC
My computer is brand new, no custom shortcuts. Maybe VE is using a keyboard shortcut hack to make undo possible.
Comment 5 James Forrester 2014-08-29 20:48:06 UTC
Fixed at the same time as bug 58724.

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


Navigation
Links