Page MenuHomePhabricator

Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist.
Closed, DuplicatePublic

Description

On visual editor I get error "Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist." when I change paragraphs' order in an article.

Source:
ExtensionCommon.jsm:425

Cu.reportError(`Unchecked lastError value: ${this.lastError}`);

It happens when you change order of paragraphs (by copy pasting) in any article and then click anywhere in the same article, after that visual editor is messing with text and don't let you save your edits or switch to source edit mode.

Reproduce (at least) on Firefox 59:

  1. open any article, like https://en.wikipedia.org/wiki/Higashi-Ōbuke_Station
  2. click "edit" (opens in visual editor)
  3. copy or cut some paragraph and its content
  4. paste the copied paragraph and its content to somewhere else on the article

Recorded video:
https://youtu.be/cLjqp-6xbJM

Event Timeline

This error message does not come from VisualEditor. We don't have any code like that. From a quick Google search it appears to be some issue with Firefox extensions.

The copy-paste bug you're seeing is filed as T187690: Copy-pasting section headings emits JS error and doesn't let you save, so I think this is a duplicate of that task? We just fixed that and the fix should go live on Wikipedias later today. (Thanks for including the video, by the way, that's very helpful.)