зеркало из https://github.com/mozilla/pjs.git
Put try/catch around removeObserver that sometimes (inexplicably) fails. b=288770 r=mconnor
This commit is contained in:
Родитель
741dc3a8f5
Коммит
fbf1213627
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче