function logout(aRpCallerId) {
    // XXX Bug 945363 - Resolve the SSO story for FXA and implement
    // logout accordingly.
    //
    // For now, it makes no sense to logout from a specific RP in
    // Firefox Accounts, so just directly call the logout callback.
    if (!this._rpFlows.has(aRpCallerId)) {
      log.error("logout() called before watch()");
      return;
    }

    // Call logout() on the next tick
    let runnable = {
      run: () => {
        this.fxAccountsManager.signOut().then(() => {
          this.doLogout(aRpCallerId);
        });
      }
    };
    Services.tm.currentThread.dispatch(runnable,
                                       Ci.nsIThread.DISPATCH_NORMAL);
  }
/**
   * Invoked when a user wishes to logout of a site (for instance, when clicking
   * on an in-content logout button).
   *
   * @param aRpCallerId
   *        (integer)  the id of the doc object obtained in .watch()
   *
   */
Invoked when a user wishes to logout of a site (for instance, when clicking
on an in-content logout button).

@param aRpCallerId
(integer)  the id of the doc object obtained in .watch()
Invoked when a user wishes to logout of a site ( for instance when clicking on an in - content logout button ) . @param aRpCallerId ( integer ) the id of the doc object obtained in . watch ()
function logout(aRpCallerId) {
     For now, it makes no sense to logout from a specific RP in
     Firefox Accounts, so just directly call the logout callback.
    if (!this._rpFlows.has(aRpCallerId)) {
      log.error("logout() called before watch()");
      return;
    }
     Call logout() on the next tick
    let runnable = {
      run: () => {
        this.fxAccountsManager.signOut().then(() => {
          this.doLogout(aRpCallerId);
        });
      }
    };
    Services.tm.currentThread.dispatch(runnable,
                                       Ci.nsIThread.DISPATCH_NORMAL);
  }
function logout ( aRpCallerId ) { if ( ! this . _rpFlows . has ( aRpCallerId ) ) { log . error ( "logout() called before watch()" ) ; return ; } let runnable = { run : ( ) => { this . fxAccountsManager . signOut ( ) . then ( ( ) => { this . doLogout ( aRpCallerId ) ; } ) ; } } ; Services . tm . currentThread . dispatch ( runnable , Ci . nsIThread . DISPATCH_NORMAL ) ; }
Invoked when a user wishes to logout of a site (for instance, when clicking
 on an in-content logout button).
Invoked when a user wishes to logout of a site ( for instance when clicking on an in - content logout button ) .
// XXX Bug 945363 - Resolve the SSO story for FXA and implement // logout accordingly. // // For now, it makes no sense to logout from a specific RP in // Firefox Accounts, so just directly call the logout callback. // Call logout() on the next tick