B2G/gecko/b2g/chrome/content/shell.js
// This function submits a crash when we're online.
This function submits a crash when we're online.
This function submits a crash when we ' re online .
function shell_submitCrash(aCrashID) {
    if (this.onlineForCrashReport()) {
      this.submitQueuedCrashes();
      return;
    }
    Services.obs.addObserver(function observer(subject, topic, state) {
      let network = subject.QueryInterface(Ci.nsINetworkInterface);
      if (network.state == Ci.nsINetworkInterface.NETWORK_STATE_CONNECTED
          && network.type == Ci.nsINetworkInterface.NETWORK_TYPE_WIFI) {
        shell.submitQueuedCrashes();
        Services.obs.removeObserver(observer, topic);
      }
    }, "network-interface-state-changed", false);
  }
function shell_submitCrash ( aCrashID ) { if ( this . onlineForCrashReport ( ) ) { this . submitQueuedCrashes ( ) ; return ; } Services . obs . addObserver ( function observer ( subject , topic , state ) { let network = subject . QueryInterface ( Ci . nsINetworkInterface ) ; if ( network . state == Ci . nsINetworkInterface . NETWORK_STATE_CONNECTED && network . type == Ci . nsINetworkInterface . NETWORK_TYPE_WIFI ) { shell . submitQueuedCrashes ( ) ; Services . obs . removeObserver ( observer , topic ) ; } } , "network-interface-state-changed" , false ) ; }
This function submits a crash when we're online.
This function submits a crash when we ' re online .