Page MenuHomePhabricator

VisualEditor: Rich paste fails and crashes surface with (? specific) content
Closed, ResolvedPublic

Description

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.


Version: unspecified
Severity: minor

Details

Reference
bz61332

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:51 AM
bzimport set Reference to bz61332.

WFM in standalone and MediaWiki. Can anyone else reproduce?

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