Bug 1259846 - QI Services.appinfo to nsICrashReporter because it might not have been QIed yet. r=Mossop
authorFelipe Gomes <felipc@gmail.com>
Tue, 29 Mar 2016 15:20:19 -0300
changeset 290795 7720685c0eba1b49380b66419c48ecbf7d1a60d5
parent 290794 1e908cdc6c424be15d00ddefa9667f9b07531ccb
child 290796 a8a4422d6038a54a328b3c221e14ef2c19b9fe30
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersMossop
bugs1259846
milestone48.0a1
Bug 1259846 - QI Services.appinfo to nsICrashReporter because it might not have been QIed yet. r=Mossop 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);
 }