Bug 1259846 - QI Services.appinfo to nsICrashReporter because it might not have been QIed yet. r=Mossop a=ritu
authorFelipe Gomes <felipc@gmail.com>
Tue, 29 Mar 2016 15:20:19 -0300
changeset 323776 35e304886cc36220b2a04c6e1cab374fae6513ea
parent 323775 ee1fb75222074125e8be8b84ca942fc2fa87f5ba
child 323777 46a10deb9c422eb88e17abd0a07c11ac074dec5a
push id5913
push userjlund@mozilla.com
push dateMon, 25 Apr 2016 16:57:49 +0000
treeherdermozilla-beta@dcaf0a6fa115 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop, ritu
bugs1259846
milestone47.0a2
Bug 1259846 - QI Services.appinfo to nsICrashReporter because it might not have been QIed yet. r=Mossop a=ritu MozReview-Commit-ID: KqyzDnLVENW
browser/extensions/e10srollout/bootstrap.js
--- a/browser/extensions/e10srollout/bootstrap.js
+++ b/browser/extensions/e10srollout/bootstrap.js
@@ -90,17 +90,17 @@ function getUserSample() {
   let val = Math.floor(Math.random() * 100);
   Preferences.set(PREF_COHORT_SAMPLE, val);
   return val;
 }
 
 function setCohort(cohortName) {
   Preferences.set(PREF_COHORT_NAME, cohortName);
   try {
-    Services.appinfo.annotateCrashReport("E10SCohort", cohortName);
+    Services.appinfo.QueryInterface(Ci.nsICrashReporter).annotateCrashReport("E10SCohort", cohortName);
   } catch (e) {}
 }
 
 function optedIn() {
   return Preferences.get(PREF_E10S_OPTED_IN, false) ||
          Preferences.get(PREF_E10S_FORCE_ENABLED, false);
 }