B2G/gecko/toolkit/components/captivedetect/captivedetect.js
/*
     * Treat all HTTP transactions as captive portal login activities.
     */
Treat all HTTP transactions as captive portal login activities.
Treat all HTTP transactions as captive portal login activities .
function observeActivity(aHttpChannel, aActivityType,
                                              aActivitySubtype, aTimestamp,
                                              aExtraSizeData, aExtraStringData) {
      if (aActivityType === Ci.nsIHttpActivityObserver.ACTIVITY_TYPE_HTTP_TRANSACTION
          && aActivitySubtype === Ci.nsIHttpActivityObserver.ACTIVITY_SUBTYPE_RESPONSE_COMPLETE) {
        switch (state) {
          case LOGIN_OBSERVER_STATE_IDLE:
          case LOGIN_OBSERVER_STATE_VERIFY_NEEDED:
            state = LOGIN_OBSERVER_STATE_BURST;
            break;
          default:
            break;
        }
      }
    }
function observeActivity ( aHttpChannel , aActivityType , aActivitySubtype , aTimestamp , aExtraSizeData , aExtraStringData ) { if ( aActivityType === Ci . nsIHttpActivityObserver . ACTIVITY_TYPE_HTTP_TRANSACTION && aActivitySubtype === Ci . nsIHttpActivityObserver . ACTIVITY_SUBTYPE_RESPONSE_COMPLETE ) { switch ( state ) { case LOGIN_OBSERVER_STATE_IDLE : case LOGIN_OBSERVER_STATE_VERIFY_NEEDED : state = LOGIN_OBSERVER_STATE_BURST ; break ; default : break ; } } }
Treat all HTTP transactions as captive portal login activities.
Treat all HTTP transactions as captive portal login activities .