Steps to replicate the issue (include links if applicable):
- Start editing a page and make some changes.
- Reload it, to trigger the Edit Recovery notification.
- Click 'Discard changes'.
What happens?:
The text is reset, but the notification does not close, and the following error is shown in the console:
Uncaught TypeError: this.last is null addInner main.js:1 add main.js:1 of main.js:1 set main.js:1 update main.js:1 update main.js:1 applyTransaction main.js:1 Y main.js:1 yt main.js:1 applyTransaction main.js:1 get state main.js:1 update main.js:1 dispatchTransactions main.js:1 dispatch main.js:1 setSelection main.js:1 textSelection jQuery loadData edit.js:161 loadData edit.js:145 onLoadData edit.js:110 emit oojs.js:858 onClick oojs-ui-core.js:2376 jQuery 9 setButtonElement oojs-ui-core.js:2316 OoUiMixinButtonElement oojs-ui-core.js:2258 OoUiButtonWidget oojs-ui-core.js:3976 mwWidgetsEditRecoveryLoadNotification LoadNotification.js:11 onLoadData edit.js:102 promise callback*onLoadHandler/< edit.js:77 promise callback*onLoadHandler edit.js:74 add mediawiki.base.js:519 js edit.js:17 …
What should have happened instead?:
The text reset, the caret positioned at the top, and the notification closed.
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | https://phabricator.wikimedia.org/T354313 here |