diff --git a/toolkit/content/widgets/expander.xml b/toolkit/content/widgets/expander.xml index d58ed4381a07..c09800d2b58b 100644 --- a/toolkit/content/widgets/expander.xml +++ b/toolkit/content/widgets/expander.xml @@ -14,7 +14,7 @@ - + diff --git a/toolkit/mozapps/extensions/content/update.js b/toolkit/mozapps/extensions/content/update.js index 9e43ff7cb913..3feb0c61ac1a 100644 --- a/toolkit/mozapps/extensions/content/update.js +++ b/toolkit/mozapps/extensions/content/update.js @@ -43,6 +43,13 @@ var gUpdateDialog = { os.removeObserver(this, this._messages[i]); }, + cancel: function () + { + // This will cause uninit to be called, removing our listener, so the extension manager's + // notifications will go nowhere. + window.close(); + }, + observe: function (aSubject, aTopic, aData) { switch (aTopic) { diff --git a/toolkit/mozapps/extensions/content/update.xul b/toolkit/mozapps/extensions/content/update.xul index fd945e5ad768..e541309ef099 100644 --- a/toolkit/mozapps/extensions/content/update.xul +++ b/toolkit/mozapps/extensions/content/update.xul @@ -37,7 +37,6 @@ # ***** END LICENSE BLOCK ***** - @@ -52,7 +51,7 @@ buttons="cancel" onload="gUpdateDialog.init();" onunload="gUpdateDialog.uninit();" - oncancel="onCancelUpdateCheck();"> + ondialogcancel="gUpdateDialog.cancel();">