get port () {
    if (this._isSelf && this._self)
      return this._self.port;
    if (this._port) return this._port;
    // if no port, get the default port for the scheme
    // (which may be inherited from 'self')
    if (this.scheme) {
      try {
        var port = gIoService.getProtocolHandler(this.scheme).defaultPort;
        if (port > 0) return port;
      } catch(e) {
        // if any errors happen, fail gracefully.
      }
    }

    return undefined;
  }
/** 
   * If this doesn't have a nonstandard port (hard-defined), use the default
   * port for this source's scheme. Should never inherit port from 'self'.
   */
If this doesn't have a nonstandard port (hard-defined), use the default
port for this source's scheme. Should never inherit port from 'self'.
If this doesn ' t have a nonstandard port ( hard - defined ) use the default port for this source ' s scheme . Should never inherit port from ' self ' .
get port () {
    if (this._isSelf && this._self)
      return this._self.port;
    if (this._port) return this._port;
    if (this.scheme) {
      try {
        var port = gIoService.getProtocolHandler(this.scheme).defaultPort;
        if (port > 0) return port;
      } catch(e) {
      }
    }
    return undefined;
  }
get port ( ) { if ( this . _isSelf && this . _self ) return this . _self . port ; if ( this . _port ) return this . _port ; if ( this . scheme ) { try { var port = gIoService . getProtocolHandler ( this . scheme ) . defaultPort ; if ( port > 0 ) return port ; } catch ( e ) { } } return undefined ; }
If this doesn't have a nonstandard port (hard-defined), use the default
 port for this source's scheme.
If this doesn ' t have a nonstandard port ( hard - defined ) use the default port for this source ' s scheme .
// if no port, get the default port for the scheme // (which may be inherited from 'self') // if any errors happen, fail gracefully.