Bug 933984 - Fix "this._mutationObserver is undefined" error on new tab page. r=gavin

This commit is contained in:
Drew Willcoxon 2013-11-04 22:32:33 -08:00
parent f95cc1a74a
commit 2a4e1d38cc

View File

@ -146,7 +146,8 @@ let gPage = {
handleEvent: function Page_handleEvent(aEvent) {
switch (aEvent.type) {
case "unload":
this._mutationObserver.disconnect();
if (this._mutationObserver)
this._mutationObserver.disconnect();
gAllPages.unregister(this);
break;
case "click":