Bug 580579 - While creating services from category 'profile-after-change', service for entry 'nsUpdateServiceStub', contract ID '@mozilla.org/updates/update-service-stub;1' does not implement nsIObserver. r=dtownsend, approval2.0=dtownsend
authorRobert Strong <robert.bugzilla@gmail.com>
Fri, 23 Jul 2010 18:02:56 -0700
changeset 48157 eb480da7ffd55e7b78c93fcf0ce3014de13c788e
parent 48156 5b12b792b8a79055be703a09301c7b753b4b34c9
child 48158 3433d89bbea949a12ad9f1efc26479ddf2df999c
push id14598
push userrstrong@mozilla.com
push dateSat, 24 Jul 2010 01:03:20 +0000
treeherdermozilla-central@eb480da7ffd5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdtownsend
bugs580579
milestone2.0b3pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 580579 - While creating services from category 'profile-after-change', service for entry 'nsUpdateServiceStub', contract ID '@mozilla.org/updates/update-service-stub;1' does not implement nsIObserver. r=dtownsend, approval2.0=dtownsend
toolkit/mozapps/update/nsUpdateServiceStub.js
--- a/toolkit/mozapps/update/nsUpdateServiceStub.js
+++ b/toolkit/mozapps/update/nsUpdateServiceStub.js
@@ -79,13 +79,14 @@ function UpdateServiceStub() {
   if (statusFile.exists()) {
     let aus = Components.classes["@mozilla.org/updates/update-service;1"].
               getService(Ci.nsIApplicationUpdateService).
               QueryInterface(Ci.nsIObserver);
     aus.observe(null, "post-update-processing", "");
   }
 }
 UpdateServiceStub.prototype = {
+  observe: function(){},
   classID: Components.ID("{e43b0010-04ba-4da6-b523-1f92580bc150}"),
-  QueryInterface: XPCOMUtils.generateQI([])
+  QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver])
 };
 
 var NSGetFactory = XPCOMUtils.generateNSGetFactory([UpdateServiceStub]);