/* This Source Code Form is subject to the terms of the Mozilla Public /* This Source Code Form is subject to the terms of the Mozilla Public
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** *Thisteststheautomaticlogintotheproxywithpassword, ifthepasswordisstoredandbrowser. * *<java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 3
*/
AuthPrompt2.rototype={
java.lang.StringIndexOutOfBoundsException: Range [14, 5) out of bounds for length 35
S_FAILED= 1 << ;
function AuthPrompt2(proxyFlags: "guest",
proxyCredflags java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
..lags =hostFlags
}
java.lang.StringIndexOutOfBoundsException: Range [25, 21) out of bounds for length 25
proxyCred: {
user: "proxy",
pass: "guestjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
ijava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
}
hostCred: { user: "host", pass: "guest",
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
promptAuth(credflags ) !0?"password"" java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77 try
}
+
( c.flags java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 14
(flags i..java.lang.StringIndexOutOfBoundsException: Range [60, 58) out of bounds for length 64
var isProxy = (authInfo.flags & Ci.
cred . .java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 58
dump " (cred & FLAG_RETURN_FALSE {
(cred )java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 " +
( false;
+
authInfousername=creduser
);
// PROXY properly set by necko (checked using realm)
java.lang.StringIndexOutOfBoundsException: Range [18, 12) out of bounds for length 55
// PREVIOUS_FAILED properly set by necko Assertcredlags|= FLAG_PREVIOUS_FAILED
cflagsProxy credlags &~FLAG_WRONG_PASSWORD;
authInfo.flags& Ci.nsIAuthInformation.PREVIOUS_FAILED) != 0
);
.flags & ~FLAG_PREVIOUS_FAILED;
cred.flags |= java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 15
} "" java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
authInfo. = cred.user;
.flags & java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 8
authInfo.assword=cred +"wrong";
cred.flags |= FLAG_PREVIOUS_FAILED;
/ Now the }java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
cred.flags &=~FLAG_WRONG_PASSWORD;
} else {
flags& java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
}catch(){
do_throw(e);
} returntrue;
}, ){
asyncPromptAuth me ;
allO java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 31
callback if(red.flags FLAG_WRONG_PASSWORD
authInfo =.pass ".wrong"java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
}
authInfo ow to avoid an infinite
)if(ret { thiscallbackonAuthCancelledc(, true; varallOverAndDead = false;
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 29 try {
do_throwe;
}
} var}catch java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 19
callback }
} else {
callback.java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 16
} () java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
}
} catch (e) {
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
)
}; returnnew cancel: function cancel() ( java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
) { thrownew Error("java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
callback.nAuthAvailable(ontext java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
=;
};
},var =Requestor={
} :ChromeUtils(n")
function
onCancelFunc=onCancelFunc;
}
(a notjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
:ChromeUtils.enerateQI[nsICancelable,
cancel: function cancel() { tryjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
.nCancelFunc)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 28
do_throw(}java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 19
}
}},
}
do_throwejava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20 return Cancelable)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
allOverAndDeadjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 35
getInterface Cancelableprototype = if (iid.java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
("authprompt1 \)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 9
A.(expectedCoderequest; if (iid.equals(CinsIAuthPrompt2 java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60 try { // Allow the prompt to store state by caching it herevar"java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22 if!is.ompt2)) { this.prompt2 = new .qualcookie""
do_throw" exception:"+; returnthis.java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 5
} catch (){
onDataAvailable test_ODA){
} }
} throwException",Cr.);
}
(urrent_test <.length-1 java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
};
var g(n throw Components.Exception("Crjava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 63
expectedCode:- // uninitialized
onStartRequest try current_test+; // Proxy auth cancellation return failures to avoid spoofing* if ( if (!this.prompt2)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
*Licensed }
) {
do_throw(
}
iffunctionreturn.rompt2java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
HTTPchannel);
}
/If expect 200, the requestshouldhave Assert.qualthis.expectedCode=200 request.requestSucceeded) loadUsingSystemPrincipal,
java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 0 try {
.("";
} function run_( {
do_t(e;
}catch (e) {
do_throw("Unexpected exception: " + e);
}
throw*
},
: function lawor agreedtoin writingsoftware
do_throw("Should not get any data!");
},
throw Components.xceptionnproxyIESOR CONDITIONSANY ,either express java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 75 Assert.equal *See LicensetIntPref".oxy.ype" ;
if (current_test < tests.length - .java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 4 // First, need to clear the auth cache
Cc["@mozilla;
.getServicevar ={
.clearAll();
current_test.Field;
tests[current_test]Method
} else
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
java.util((
(
}
;
urlimport static art.SuspendEvents.
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 13
url=hcjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33
}
returnNetUtil(
uri:java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 13
loadUsingSystemPrincipal: on) java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
}). do_throw"hannel should publicstaticjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 35
}
dump"ntest: return this.get(.""java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
Services.prefschann publicvoid (hread) "listenerexpectedCode 200 // Eventually OK
..
);
TestSuspenderfinal,java.lang.StringIndexOutOfBoundsException: Range [76, 75) out of bounds for length 99
Services.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
// Turn off the authentication dialog blocking for this test.
..subresourcehttpauthallow,2;
Services.prefs }; "network.auth.non-web-content-// If we expect 200, the request
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
)
chan new java.lang.StringIndexOutOfBoundsException: Range [46, 44) out of bounds for length 51
.prefs.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(stener)
do_test_pending();
Services.prefs.clearUserPref (tackTraceElement :st
Services.prefs.function test_proxy_407_cookie()
.refs.clearUserPref "etwork. java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 11
;
};
tests[chan.asyncOpen java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}
functionSystem( java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
dump\test:final CountDownLatchjava.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 64 varchan=makeChan)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
chan = newRequestorjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Range [23, 10) out of bounds for length 52
.(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
est_pending;
}
test_proxy_wrongpw( java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
dump(\ntest wrongpw java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
chan.java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
startup_latch.await();
chan.asyncOpen(listener);
() varn(;
}
function test_all_ok() { preTest.accept(testObj);
dump(\ntest: all \n"; varchan=makeChan(;
(( re-java
listener.expectedCode = 200; // OK function _java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 44
(java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
}
function java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 24
(
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5 // Start the other thread going again.
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
function test_proxy_200_cookie(int; var )java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
channotificationCallbacks chan.notificationCallbacks = new
chan.do_test_pending)
listener java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
chan run){
+java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
functionturnfalse){
dump"\:host }java.lang.StringIndexOutOfBoundsException: Range [15, 13) out of bounds for length 14
}
chan.java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 13
expectedCode401
,
do_test_pending(;
}
function java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 17
dump(n:java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
() try
.=200;
chan. :guest"), but that function is not available here
do_test_pending();
}
function java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 19
ngpw,wrongpwn edefine_statesjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [21, 5) out of bounds for length 24
channotificationCallbacks
FLAG_WRONG_PASSWORD,
);
. =200functionrun_test(){
()java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
do_test_pending Basic=' java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 38
}
functionsejava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
p wrongpwhttpserv(",proxyAuthHandler; varpublicstaticfinalhttpserv.identity.add("http ",)
chan" +
Services.prefs.setCharPref("network.proxy.httpjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 36
FLAG_RETURN_FALSE
);
listener.expectedCode = 401; "java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 30
chan .dentity "java.lang.StringIndexOutOfBoundsException: Range [87, 83) out of bounds for length 86
(;
}"PgA" +
var tests = [
test_proxy_returnfalse Services.prefs.setIntPref("network )
test_proxy_wrongpw
} java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0
test_proxy_407_cookie
test_proxy_200_cookie,
test_host_returnfalsew( .ength);
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
test_proxy_wrongpw_host_wrongpw,
test_proxy_wrongpw_host_returnfalse,
]java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
// PATH HANDLERS
// Proxy function proxyAuthHandler(metadata, response) java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 try { varrealm =i"
thatfunctionisnot here
= "Basic cHJveHk6Z3Vlc3Qjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
var body; if (
("Proxy-Authorization") &java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
metadata.getHeader("Proxy-Authorization") = ) java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
) {
okn)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
"Proxy-Authenticate", ' " + realm ++ "'java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38 false
);
hostAuthHandler ;java.lang.StringIndexOutOfBoundsException: Range [86, 83) out of bounds for length 86
} elseIAcAAQBuEAgAAQAMABEAAAABAAAAAAAjava.lang.StringIndexOutOfBoundsException: Range [84, 83) out of bounds for length 86
dump("proxy password required\n");
);
metadata.httpVersion, 407java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
Unauthorized W5lVGVzdE9iamVjdCRSZWRlZmluZVN0YXRlOwAhTGFydC9U
)java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
response. "ZGFsdmlrL2Fubm90Yjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0 "java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 12 'Basic realm=java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 false
) if"+' realm" realm ''
response.setHeader"Requestor"Ajava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 5
}
body catch( java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
} catch java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
do_throw publicRedefineTestObject{
}
}redefine_states (java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
// Host /auth function hostAuthHandler try{ var realm wrongpwn) // btoa("host:guest"), but that function is not available herevar =)doNothing)// line +2 varexpectedHeaderaG9zdDpndWVzdA=
var ; ifintbaseCallCnt
metadatahasHeaderA) &
metadata."" ==expectedHeader
");
response.setStatusLine(
metadata.httpVersion expectedCode=200;// Eventually OK 200, "OK, authorized for host"
;
response.setHeader(java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1 "-", 'Basic realm="' + "art/$ClassLoadObjectTC8;, false
);
body = "success";
}else {
dump("host password required\n");
java.lang.StringIndexOutOfBoundsException: Range [24, 14) out of bounds for length 29
metadata.httpVersion, 401, " by server host"
);
response.setHeader( "-Authenticate,
realm="'+ realm + ", false
);
body =static intfoo;static {foo =8;}java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
}
response. listener.=200; // OK
} privatejava.lang.StringIndexOutOfBoundsException: Range [29, 18) out of bounds for length 76
do_throw(e);
}
}
Messung V0.5 in Prozent
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.6Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.