B2G/gecko/toolkit/mozapps/extensions/XPIProvider.jsm
/**
   * Adds a list of currently active add-ons to the next crash report.
   */
Adds a list of currently active add-ons to the next crash report.
Adds a list of currently active add - ons to the next crash report .
function XPI_addAddonsToCrashReporter() {
    if (!("nsICrashReporter" in Ci) ||
        !(Services.appinfo instanceof Ci.nsICrashReporter))
      return;
    if (Services.appinfo.inSafeMode)
      return;
    let data = this.enabledAddons;
    for (let id in this.bootstrappedAddons) {
      data += (data ? "," : "") + encodeURIComponent(id) + ":" +
              encodeURIComponent(this.bootstrappedAddons[id].version);
    }
    try {
      Services.appinfo.annotateCrashReport("Add-ons", data);
    }
    catch (e) { }
    const TelemetryPing = Cc["@mozilla.org/base/telemetry-ping;1"].getService(Ci.nsIObserver);
    TelemetryPing.observe(null, "Add-ons", data);
  }
function XPI_addAddonsToCrashReporter ( ) { if ( ! ( "nsICrashReporter" in Ci ) || ! ( Services . appinfo instanceof Ci . nsICrashReporter ) ) return ; if ( Services . appinfo . inSafeMode ) return ; let data = this . enabledAddons ; for ( let id in this . bootstrappedAddons ) { data += ( data ? "," : "" ) + encodeURIComponent ( id ) + ":" + encodeURIComponent ( this . bootstrappedAddons [ id ] . version ) ; } try { Services . appinfo . annotateCrashReport ( "Add-ons" , data ) ; } catch ( e ) { } const TelemetryPing = Cc [ "@mozilla.org/base/telemetry-ping;1" ] . getService ( Ci . nsIObserver ) ; TelemetryPing . observe ( null , "Add-ons" , data ) ; }
Adds a list of currently active add-ons to the next crash report.
Adds a list of currently active add - ons to the next crash report .
// In safe mode no add-ons are loaded so we should not include them in the // crash report