Page MenuHomePhabricator

VE failing to load a second time after saving
Closed, ResolvedPublic

Event Timeline

So not in fact cause by the promise refactor, but the surface padding refactor (https://gerrit.wikimedia.org/r/c/VisualEditor/VisualEditor/+/1161510):

  • When the target is torn down after save the toolbar is set to null
  • A debounced 'position' event triggers a recalculation of surface padding
  • This calls getToolbar, which lazy-initialises target.toolbar
  • When we go to initialise the target again, it thinks the toolbar is already setup so it skips it.

Change #1164163 had a related patch set uploaded (by Esanders; author: Esanders):

[VisualEditor/VisualEditor@master] Don't lazy-initialize the toolbar when calculating surface padding

https://gerrit.wikimedia.org/r/1164163

Change #1164164 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] Force-clear toolbar after teardown

https://gerrit.wikimedia.org/r/1164164

Esanders triaged this task as Unbreak Now! priority.Jun 26 2025, 11:37 AM

Change #1164165 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@wmf/1.45.0-wmf.7] Force-clear toolbar after teardown

https://gerrit.wikimedia.org/r/1164165

Change #1164165 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@wmf/1.45.0-wmf.7] Force-clear toolbar after teardown

https://gerrit.wikimedia.org/r/1164165

Mentioned in SAL (#wikimedia-operations) [2025-06-26T13:11:30Z] <esanders@deploy1003> Started scap sync-world: Backport for [[gerrit:1164165|Force-clear toolbar after teardown (T397914)]]

Mentioned in SAL (#wikimedia-operations) [2025-06-26T13:13:47Z] <esanders@deploy1003> esanders: Backport for [[gerrit:1164165|Force-clear toolbar after teardown (T397914)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-06-26T13:21:22Z] <esanders@deploy1003> Finished scap sync-world: Backport for [[gerrit:1164165|Force-clear toolbar after teardown (T397914)]] (duration: 09m 52s)

Change #1164164 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Force-clear toolbar after teardown

https://gerrit.wikimedia.org/r/1164164

Change #1164163 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] ve.init.Target: Don't lazy-initialize the toolbar in #getToolbar

https://gerrit.wikimedia.org/r/1164163

Change #1165533 had a related patch set uploaded (by Esanders; author: Esanders):

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (10fa68ec4)

https://gerrit.wikimedia.org/r/1165533

VE loads fine when I save multiple time. Pending related patch set merge. Will retest after.

Change #1165848 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Thiemo Kreuz (WMDE)):

[VisualEditor/VisualEditor@master] ve.init.Target: Fix double initialization of toolbars

https://gerrit.wikimedia.org/r/1165848

Change #1165848 merged by jenkins-bot:

[VisualEditor/VisualEditor@master] ve.init.Target: Fix double initialization of toolbars

https://gerrit.wikimedia.org/r/1165848

Change #1165533 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Update VE core submodule to master (4d51df7e7)

https://gerrit.wikimedia.org/r/1165533

thiemowmde lowered the priority of this task from Unbreak Now! to Needs Triage.Jul 15 2025, 8:16 AM

I think we are unblocked here, aren't we?