Page MenuHomePhabricator

Escape key instantly closes VE and discards changes with no confirmation
Closed, ResolvedPublic

Description

This feature worked as expected until now. The last time i remember it working correctly is a few month ago.

But now it is broken and no dialog "Are you sure?" is shown any more, when pressing Esc key once. Yesterday i lost a hour of work.

Tested in main view of VisualEditor on fr-, de- and en-wiki with Firefox 97.0 (64-Bit) on Win10.

See also this disussion: en-wiki:User_talk:Nick_Moyes#ESC_key_in_VisualEditor

Event Timeline

This may be a bug in recent refactoring we've done while working on the editing loading transitions (T299907), maybe rEVEDfb8815f6583d: Fix some behaviour when user aborts VE loading with escape?

Change 763799 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/VisualEditor@master] Only teardown with no prompt on escape while loading

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

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

[mediawiki/extensions/VisualEditor@master] Don't suppress teardown prompt when pressing escape

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

Change 763799 abandoned by DLynch:

[mediawiki/extensions/VisualEditor@master] Only teardown with no prompt on escape while loading

Reason:

I60fcddee7bf0dfb3a39e92d26898da2963861c19 is simpler

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

Change 763800 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] Don't suppress teardown prompt when pressing escape

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

We'll deploy the fix to all Wikimedia wikis on Monday. Sorry about the issue.

Actually, we can't deploy today, because it's a holiday in the US and so non-emergency deployments are not allowed. Tuesday then, I guess…

Change 764396 had a related patch set uploaded (by Bartosz Dziewoński; author: Esanders):

[mediawiki/extensions/VisualEditor@wmf/1.38.0-wmf.22] Don't suppress teardown prompt when pressing escape

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

Actually, we can't deploy today, because it's a holiday in the US and so non-emergency deployments are not allowed. Tuesday then, I guess…

Noted.

Change 764396 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@wmf/1.38.0-wmf.22] Don't suppress teardown prompt when pressing escape

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

Mentioned in SAL (#wikimedia-operations) [2022-02-22T08:20:52Z] <taavi@deploy1002> Synchronized php-1.38.0-wmf.22/extensions/VisualEditor/modules/ve-mw/init/targets/ve.init.mw.DesktopArticleTarget.js: Backport: Revert: [[gerrit:764396|Don't suppress teardown prompt when pressing escape (T302096)]] (duration: 00m 49s)

matmarex edited projects, added Editing QA; removed Patch-For-Review.

Fix deployed on all wikis.

I'll go ahead to verify this. Escape key triggers the confirmation dialog as expected if the key is pressed after one or more edits.

ppelberg claimed this task.