зеркало из https://github.com/mozilla/gecko-dev.git
Bug 874754 - Suppress nsIEditor.removeEditorObserver exception. r=fabrice
Based on patch from Yuan Xulei <xyuan@mozilla.com> --HG-- extra : rebase_source : 77b563eaa784d42cdfd20a3aba1f5b928a53aaa6
This commit is contained in:
Родитель
90195a8deb
Коммит
4b01cfe591
|
@ -235,7 +235,13 @@ let FormAssistant = {
|
||||||
|
|
||||||
this._documentEncoder = null;
|
this._documentEncoder = null;
|
||||||
if (this._editor) {
|
if (this._editor) {
|
||||||
|
// When the nsIFrame of the input element is reconstructed by
|
||||||
|
// CSS restyling, the editor observers are removed. Catch
|
||||||
|
// [nsIEditor.removeEditorObserver] failure exception if that
|
||||||
|
// happens.
|
||||||
|
try {
|
||||||
this._editor.removeEditorObserver(this);
|
this._editor.removeEditorObserver(this);
|
||||||
|
} catch (e) {}
|
||||||
this._editor = null;
|
this._editor = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче