Merge "Clear selection after tearing down surface to work around Firefox bug"

This commit is contained in:
jenkins-bot 2014-10-29 23:21:36 +00:00 committed by Gerrit Code Review
commit 3806a2838c

View file

@ -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();