mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Put try/catch around removeObserver that sometimes (inexplicably) fails. b=288770 r=mconnor
This commit is contained in:
parent
9d31f357b3
commit
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)
|
||||
|
Loading…
Reference in New Issue
Block a user