зеркало из https://github.com/mozilla/gecko-dev.git
Put try/catch around removeObserver that sometimes (inexplicably) fails. b=288770 r=mconnor
This commit is contained in:
Родитель
9d31f357b3
Коммит
e5fb3daccc
|
@ -575,7 +575,11 @@
|
|||
|
||||
if (!this.hasAttribute("disablehistory")) {
|
||||
var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
|
||||
os.removeObserver(this, "browser:purge-session-history", false);
|
||||
try {
|
||||
os.removeObserver(this, "browser:purge-session-history", false);
|
||||
} catch (ex) {
|
||||
// It's not clear why this sometimes throws an exception.
|
||||
}
|
||||
}
|
||||
|
||||
if (this.mDragDropHandler)
|
||||
|
|
Загрузка…
Ссылка в новой задаче