Last modified: 2014-02-19 23:50:39 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 T63332, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61332 - VisualEditor: Rich paste fails and crashes surface with (? specific) content
VisualEditor: Rich paste fails and crashes surface with (? specific) content
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
ContentEditable (Other open bugs)
unspecified
All All
: Normal minor
: VE-deploy-2014-02-20
Assigned To: Ed Sanders
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-13 20:00 UTC by Moriel Schottlender
Modified: 2014-02-19 23:50 UTC (History)
7 users (show)

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


Attachments

Description Moriel Schottlender 2014-02-13 20:00:07 UTC
Steps to replicate:

1. Edit an article in VisualEditor (or start a new one)
2. Go to http://git-scm.com/download/linux
3. Copy the list, from "Debian/Ubuntu" to the end of the content in the white space.
4. Paste into the article in VE.

Observed: 

"Uncaught TypeError: Cannot call method 'getComparableObjectForSerialization' of undefined"

After that, interaction with the CE - mostly with link inspector and surface widgets produces errors or is unresponsive (Without console error)

I got this when I tried to add a link: "Uncaught TypeError: Cannot call method 'getSurface' of null"
"



Chrome 32.0.1700.107 under Ubuntu 12.04.
Comment 1 Ed Sanders 2014-02-14 10:46:45 UTC
WFM in standalone and MediaWiki. Can anyone else reproduce?
Comment 2 Ed Sanders 2014-02-15 15:09:51 UTC
This is a bug in remapStoreIndexes, so this only happens when the target document already has some annotations, and the content being pasted has annotated elements (in Moriel's case, a <br> inside a <code>)
Comment 3 Ed Sanders 2014-02-18 17:32:20 UTC
Committed while bugzilla was down:
https://gerrit.wikimedia.org/r/#/c/113538/

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


Navigation
Links