Page MenuHomePhabricator

VisualEditor: Clicking away before VE loads completely throws JS error
Closed, ResolvedPublic

Description

VE error when not completely loaded

on any page editable by VE:

invoke VE
immediately click Preferences or other live link

an alert appears saying "Error loading data from server: error. Would you like to retry?"


Version: unspecified
Severity: normal

Attached:

ve_error_when_not_completely_loaded.png (309×753 px, 61 KB)

Details

Reference
bz47813

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 1:19 AM
bzimport set Reference to bz47813.
  • Bug 48520 has been marked as a duplicate of this bug. ***

From Ed's comment:

In ve.init.mw.ViewPageTarget.prototype.tearDownToolbar, this.toolbar is
undefined if the editor hasn't finished loading.

Actually, this looks like a different bug (but in the same loop).

Related URL: https://gerrit.wikimedia.org/r/64333 (Gerrit Change Ide5def0e983bab49108b40008fc170957c7fc2a2)