Page MenuHomePhabricator

[Edit Check] Publish changes button in VE does not react anymore after abandoning Edit Check by switching to read mode
Closed, ResolvedPublic

Description

  1. Go to this page: https://patchdemo.wmflabs.org/wikis/9a60b4369e/wiki/Douglas_Adams
  2. Add at-least 50 characters of new content to trigger Edit check.
  3. When the Edit Check reference dialog appears switch to read mode.
  4. Open the editor again and make another edit. (Note: it doesn't have to be the one that would trigger edit check)
  5. Click on the Publish changes button.

Observed Result: The Publish changes button doesn't do anything. Refreshing does make the button work again.

Event Timeline

ArticleTarget.saveDialogIsOpening is set while edit check is running (as it interrupts the save process), and if we teardown the target it never gets reset to false.

On the next load it blocks the save dialog opening.

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

[mediawiki/extensions/VisualEditor@master] Edit check: Clean up when VE is deactivated

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

Change 956829 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Edit check: Clean up when VE is deactivated

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

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

[mediawiki/extensions/VisualEditor@master] Edit check: stop an error on save if no reference-needing content added

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

Change 964106 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Edit check: stop an error on save if no reference-needing content added

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