mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 11:16:51 +00:00
Merge "Clear selection after tearing down surface to work around Firefox bug"
This commit is contained in:
commit
3806a2838c
|
@ -336,6 +336,9 @@ ve.init.mw.ViewPageTarget.prototype.cancel = function () {
|
|||
this.showPageContent();
|
||||
this.restorePageTitle();
|
||||
|
||||
// Clear the selection; needed in Firefox for bug 71852
|
||||
window.getSelection().removeAllRanges();
|
||||
|
||||
// If there is a load in progress, abort it
|
||||
if ( this.loading ) {
|
||||
this.loading.abort();
|
||||
|
|
Loading…
Reference in a new issue