Closed Bug 1062253 Opened 11 years ago Closed 10 years ago

Exception calling callback: TypeError: this._backgroundUpdateCheckCodePing is not a function @ nsUpdateService.js:2380:8

Categories

(Toolkit :: Application Update, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla38
Tracking Status
firefox35 --- wontfix
firefox36 --- verified
firefox37 --- verified
firefox38 --- verified
firefox-esr31 --- verified

People

(Reporter: gfritzsche, Assigned: robert.strong.bugs)

Details

Attachments

(2 files)

I happened to see this in my browser console 1409745211633 addons.manager WARN Exception calling callback: TypeError: this._backgroundUpdateCheckCodePing is not a function (resource://gre/components/nsUpdateService.js:2380:8) JS Stack trace: AUS__checkAddonCompatibility/<@nsUpdateService.js:2380:9 < safeCall@AddonManager.jsm:168:5 < getAddonsByTypes_noMoreObjects@AddonManager.jsm:2061:9 < AOC_callNext@AddonManager.jsm:263:7 < getAddonsByTypes_concatAddons@AddonManager.jsm:2056:11 < SocialAddonProvider.getAddonsByTypes@SocialService.jsm:1057:5 < callProvider@AddonManager.jsm:194:12 < getAddonsByTypes_nextObject@AddonManager.jsm:2053:1 < AOC_callNext@AddonManager.jsm:269:7 < getAddonsByTypes_concatAddons@AddonManager.jsm:2056:11 < this.Experiments.PreviousExperimentProvider.prototype<.getAddonsByTypes@Experiments.jsm:2302:5 < callProvider@AddonManager.jsm:194:12 < getAddonsByTypes_nextObject@AddonManager.jsm:2053:1 < AOC_callNext@AddonManager.jsm:269:7 < getAddonsByTypes_concatAddons@AddonManager.jsm:2056:11 < PL_getAddonsByTypes@PluginProvider.jsm:148:5 < callProvider@AddonManager.jsm:194:12 < getAddonsByTypes_nextObject@AddonManager.jsm:2053:1 < AOC_callNext@AddonManager.jsm:269:7 < getAddonsByTypes_concatAddons@AddonManager.jsm:2056:11 < OpenH264Provider.getAddonsByTypes@OpenH264Provider.jsm:344:5 < callProvider@AddonManager.jsm:194:12 < getAddonsByTypes_nextObject@AddonManager.jsm:2053:1 < AOC_callNext@AddonManager.jsm:269:7 < getAddonsByTypes_concatAddons@AddonManager.jsm:2056:11 < LightweightThemeManager_getAddonsByTypes@LightweightThemeManager.jsm:390:5 < callProvider@AddonManager.jsm:194:12 < getAddonsByTypes_nextObject@AddonManager.jsm:2053:1 < AOC_callNext@AddonManager.jsm:269:7 < getAddonsByTypes_concatAddons@AddonManager.jsm:2056:11 < getAddonsByTypes_getVisibleAddons@XPIProvider.jsm:3689:7 < makeSafe/<@XPIProviderUtils.js:146:17 < asyncMap_gotValue@XPIProviderUtils.js:181:7 < asyncMap_callback@XPIProviderUtils.js:188:9 < completeAddon@XPIProviderUtils.js:135:5 < getAddon@AddonRepository.jsm:580:7 < this.AddonRepository.getCachedAddonByID<@AddonRepository.jsm:592:5 < TaskImpl_run@Task.jsm:314:40 < TaskImpl@Task.jsm:275:3 < createAsyncFunction/asyncFunction@Task.jsm:249:14 < getRepositoryAddon@XPIProviderUtils.js:137:3 < asyncMap_each@XPIProviderUtils.js:187:7 < asyncMap@XPIProviderUtils.js:185:3 < this.XPIDatabase.getAddonList/<@XPIProviderUtils.js:1071:9 < Handler.prototype.process@Promise-backend.js:865:23 < this.PromiseWalker.walkerLoop@Promise-backend.js:744:7
Nearby code: else { LOG("UpdateService:_checkAddonCompatibility - no incompatible " + "add-ons found, just download the update"); var status = self.downloadUpdate(self._update, true); if (status == STATE_NONE) cleanupActiveUpdate(); self._update = null; this._backgroundUpdateCheckCodePing(PING_BGUC_CHECK_NO_INCOMPAT); } Should probably be self instead of this. Problem also affects ESR31.
Attached patch patchSplinter Review
Assignee: nobody → robert.strong.bugs
Status: NEW → ASSIGNED
Attachment #8562351 - Flags: review?(spohl.mozilla.bugs)
Attachment #8562351 - Flags: review?(spohl.mozilla.bugs) → review+
Target Milestone: --- → mozilla38
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Comment on attachment 8562351 [details] [diff] [review] patch Approval Request Comment [Feature/regressing bug #]: Bug 886545 [User impact if declined]: This is in support of telemetry for understanding update orphaning which is an engineering goal [Describe test coverage new/current, TreeHerder]: Manually tested. [Risks and why]: minimal [String/UUID change made/needed]: None
Attachment #8562351 - Flags: approval-mozilla-esr31?
Attachment #8562351 - Flags: approval-mozilla-beta?
Attachment #8562351 - Flags: approval-mozilla-aurora?
Comment on attachment 8562351 [details] [diff] [review] patch Can this be verified by QE? Taking it for aurora at least.
Attachment #8562351 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Flags: needinfo?(robert.strong.bugs)
(In reply to Sylvestre Ledru [:sylvestre] from comment #6) > Comment on attachment 8562351 [details] [diff] [review] > patch > > Can this be verified by QE? Taking it for aurora at least. I can provide steps for QE verification
Flags: needinfo?(robert.strong.bugs)
Comment on attachment 8562351 [details] [diff] [review] patch Indeed, it would be nice if you could provide some step to QE (especially for the esr version). thanks
Attachment #8562351 - Flags: approval-mozilla-esr31?
Attachment #8562351 - Flags: approval-mozilla-esr31+
Attachment #8562351 - Flags: approval-mozilla-beta?
Attachment #8562351 - Flags: approval-mozilla-beta+
Using an aurora build that is from prior to this patch landing on February 12th open about:config and set the app.update.log pref to true, app.update.enabled pref to false and the devtools.errorconsole.enabled pref to true. Install the add-on attach to this bug by opening about:addons and dragging the link to the attachment to the about:addons tab's content window. Check for updates (do not install) and find the entry that starts with "AUS:SVC Checker:getUpdateURL - update URL: " in the error console. Create a reference to the url. See below for an example url I got for aurora. https://aus4.mozilla.org/update/3/Firefox/37.0a2/20150211004833/WINNT_x86-msvc/en-US/aurora/Windows_NT%206.3.0.0%20(x64)/default/default/update.xml Create a new pref with the name app.update.url.override and a string value with the url you got previously. In about:config set the app.update.enabled pref to true In the error console run const Ci = Components.interfaces; const Cc = Components.classes; Cc["@mozilla.org/updates/update-service;1"].getService(Ci.nsIApplicationUpdateService).QueryInterface(Ci.nsITimerCallback).notify(null); You should see a message that contains the following in the error console addons.manager WARN Exception calling callback: TypeError: this._backgroundUpdateCheckCodePing is not a function (resource://gre/components/nsUpdateService.js:2695:8) JS Stack trace: Finish the update and restart In the error console run const Ci = Components.interfaces; const Cc = Components.classes; Cc["@mozilla.org/updates/update-service;1"].getService(Ci.nsIApplicationUpdateService).QueryInterface(Ci.nsITimerCallback).notify(null); You should no longer see a message that contains the following in the error console addons.manager WARN Exception calling callback: TypeError: this._backgroundUpdateCheckCodePing is not a function (resource://gre/components/nsUpdateService.js:2695:8) JS Stack trace:
OS: Mac OS X → All
Note: the same process can be used for all channels when they have an update to a version that contains this fix.
Kamil, would you be willing to verify this bug?
Flags: needinfo?(kjozwiak)
I forgot a couple of steps Using an aurora build that is from prior to this patch landing on February 12th open about:config and set the app.update.log pref to true, app.update.enabled pref to false and the devtools.errorconsole.enabled pref to true. Install the add-on attach to this bug by opening about:addons and dragging the link to the attachment to the about:addons tab's content window. Check for updates (do not install) and find the entry that starts with "AUS:SVC Checker:getUpdateURL - update URL: " in the error console. Create a reference to the url. See below for an example url I got for aurora. https://aus4.mozilla.org/update/3/Firefox/37.0a2/20150211004833/WINNT_x86- msvc/en-US/aurora/Windows_NT%206.3.0.0%20(x64)/default/default/update.xml Save the xml file and modify it as follows displayVersion="39.0" appVersion="39.0" platformVersion="39.0" Place the xml file on a web server. Create a new pref with the name app.update.url.override and a string value with the url to the new xml file. In about:config set the app.update.enabled pref to true In the error console run const Ci = Components.interfaces; const Cc = Components.classes; Cc["@mozilla.org/updates/update-service;1"].getService(Ci.nsIApplicationUpdateService).QueryInterface(Ci.nsITimerCallback).notify(null); You should see a message that contains the following in the error console addons.manager WARN Exception calling callback: TypeError: this._backgroundUpdateCheckCodePing is not a function (resource://gre/components/nsUpdateService.js:2695:8) JS Stack trace: Finish the update and restart In the error console run const Ci = Components.interfaces; const Cc = Components.classes; Cc["@mozilla.org/updates/update-service;1"].getService(Ci.nsIApplicationUpdateService).QueryInterface(Ci.nsITimerCallback).notify(null); You should no longer see a message that contains the following in the error console addons.manager WARN Exception calling callback: TypeError: this._backgroundUpdateCheckCodePing is not a function (resource://gre/components/nsUpdateService.js:2695:8) JS Stack trace:
Also, if the update.xml has a <patch type="partial" block remove it.
Thanks for the steps Robert!! Here are the results, looks like everything is working correctly: Nightly: PASSED ======== Build Used: http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2015-02-11-03-02-28-mozilla-central/ * received the error mentioned in comment # 16 in the error console ** 1424284506610 addons.manager WARN Exception calling callback: TypeError: this._backgroundUpdateCheckCodePing is not a function (resource://gre/components/nsUpdateService.js:2695:8) * Updated/Restarted and ensured that the same error wasn't appearing the second time around * went through the test case twice and got the same results Aurora: PASSED ======= * Build Used: http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/2015-02-11-00-48-33-mozilla-aurora/ * received the error mentioned in comment # 16 in the error console ** 1424283732945 addons.manager WARN Exception calling callback: TypeError: this._backgroundUpdateCheckCodePing is not a function (resource://gre/components/nsUpdateService.js:2695:8) * Updated/Restarted and ensured that the same error wasn't appearing the second time around * went through the test case twice and got the same results BETA: PASSED ===== Build Used: http://ftp.mozilla.org/pub/mozilla.org/firefox/candidates/36.0b8-candidates/build1/ * received the error mentioned in comment # 16 in the error console ** 1424287447277 addons.manager WARN Exception calling callback: TypeError: this._backgroundUpdateCheckCodePing is not a function (resource://gre/components/nsUpdateService.js:2689:8) * Updated/Restarted and ensured that the same error wasn't appearing the second time around * went through the test case twice and got the same results ESR: PASSED ==== Build Used: http://ftp.mozilla.org/pub/mozilla.org/firefox/candidates/31.4.0esr-candidates/build1/win32/en-US/ * received the error mentioned in comment # 16 in the error console ** 1424288473851 addons.manager WARN Exception calling callback: TypeError: this._backgroundUpdateCheckCodePing is not a function (resource://gre/components/nsUpdateService.js:2635:8) * Updated/Restarted and ensured that the same error wasn't appearing the second time around * went through the test case twice and got the same results * changed the channel-pref to "esr-localtest"
Status: RESOLVED → VERIFIED
Flags: needinfo?(kjozwiak)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: