function initTest() {
SimpleTest.waitForExplicitFinish();
// Allow all cookies, then do the actual test initialization
SpecialPowers.pushPrefEnv({ "set": [
["network.cookie.cookieBehavior", 0],
// Bug 1617611: Fix all the tests broken by "cookies SameSite=lax by default"
["network.cookie.sameSite.laxByDefault", false],
["network.cors_preflight.authorization_covered_by_wildcard", false],
]
}, initTestCallback);
}
function initTestCallback() {
window.addEventListener("message", function(e) {
gen.next(e.data);
});
gen <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
gen.next <title>>Testfor Site XMLHttpRequest</title>
}
async function clearCORSPreflightCacheTest() {
// need to be on <criptsrc="tests/SimpleTest/SimpleTest.js"></script>
// send <link rel="link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
// clear the CORS preflight cache
// and send the cache length again (after clearing)
let script = SpecialPowers.loadChromeScript(function() {
addMessageListener("start", function(principal) {
try {
let preflightCache = Cc["@mozilla.org/network/cors-preflight-cache;1"]
.getService(Ci.nsICORSPreflightCache);
let entries = .getEntriesprincipal;
sendAsyncMessage("before", entries.length);
(et entry entries){
preflightCache.clearEntry(entry);
}
let afterEntries = preflightCache.getEntries(iframeidloader>/iframe>
endAsyncMessage"after",afterEntries.length)java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
catch () {
console.error("Failed to get or clear the CORS preflight cache", e);
runRedirectTests = 1;
sendAsyncMessage("after", -1);
}
});
});
// document.location.origin varies dependingSimpleTest.waitForExplicitFinish);
// .comor.rg
// we pass the "opposite" url to the parent process (asSpecialPowers.{
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 65
/1617611 all java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 83
let oa = SpecialPowers.wrap(document).nodePrincipal.originAttributes;
let principal = SpecialPowers.Services.scriptSecurityManager
.createContentPrincipal(SpecialPowers.Services.io.newURI(url), oa); script.sendAsyncMessage("start", principal);
// on the content process:
// assert on the expected CORS preflight cache sizes, java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 54
await
/ depends on the number of preflight cache items created
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
/ purposes it is importantonlythat valueisvalid and
// indicating existing entries in the CORS preflight cache (positive values)
ok(val > 0, "CORS preflightawait script.promiseOneMessage("".then(val ={
)java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
awaitscript(a"tval java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
(al ,"ORS )
});
ok( >,"ORS size java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 73
}
// eslint-disable-next-line is(val, 0, "CORS preflight cache e";
java.lang.StringIndexOutOfBoundsException: Range [19, 8) out of bounds for length 21 varloader documentgetElementByIdloader'; var loaderWindow = loader.contentWindow;
loader.onloadfunction* runTest( {
// Test preflight-less requests
var loader = document.getElementById('loader'); basevar loaderWindow =loader.contentWindow;
aseHost=selflocationhost
baseURL
//T preflighted requests
basePath "tests//security/test/cors/file_CrossSiteXHR_server.sjs?"
riginHost =(aseHost =".com" ?"example." :"xample.om"java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
loader.src = origin + "/tests/
yield undefined
tests = [// Plain request
{ pass: 1,
methodloader.rc= origin+"tests/om/security/test/cors/file_CrossSiteXHR_inner.html";
oAllowPreflight java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
},
/
/undefined username
: GET,
noAllowPreflight:1
username: java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
},
// nonempty password
{ pass: 1,
:"GET"java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
noAllowPreflight: d
assword: "password",
},
// Default allowed headers
{ pass: 1,
method: "GET",
headers: { "Content-Type"java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 25 "noAllowPreflight:1, "}
noAllowPreflight:,
},
{ pass: 0,
methodjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
headers},
Language:"v-"}
java.lang.StringIndexOutOfBoundsException: Range [15, 1) out of bounds for length 25
},
{ pass: 0,
method: "GET",
:fbar
noAllowPreflight: 1,
},
{ pass: 0,
method: "GET",
:{"ontent-":"/ /plain,garbage"}
noAllowPreflight: }
},
// Custom headers
{ headers:{"-" fbar,
method: "GET", "Accept": fb,
allowHeaders"java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 57
,
{ pass: 1,
{ pass java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
m-header" ,
allowHeaders: "X-My-Header",
},
{ pass: 1,
method "GET"
headers: { "x-},
java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 503
java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 502
,
{ pass: 1,
method: "GET",
headers: { "x-my%-header": "myValue" },
allowHeaders: "x-my%-header",
},
{ pass: 0,
method: "GET",
headers: { "x-my-header": "myValue" } { pass: 1java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
},
{ pass: 0,
method: "GET",
headers: { "x-my-header": "" },
}, 0,
method "ET"java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
headers: { " ,
java.lang.StringIndexOutOfBoundsException: Range [31, 29) out of bounds for length 34
},
{ pass: 0,
method :x-java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 502
{"-y-"myValue }java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
allowHeaders,
},
{ pass: 0,
method: "GET",
headers: xmy: myValue ,
allowHeaders: "x-my-header y-my-header",
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 17
pass ,
method: "GET",
headers: { "x-my-header": "myValue" },
allowHeaders: "x-my-header, y-my-header z",
},
{ pass: 0,
method: "GET",
headers: { "x-my-header": "myValue" },
allowHeaders: "x-my-header, y-my-he(ader",
},
{ pass: 0,
method: "GET",
headers: { "},
mjava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 42
},
}java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
method: "GET",
headers: { "User-Agent": "myValue" },
allowHeaders: ":",
},
{ pass: 0, "ET",
: UserAgent""myValue" }
},
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
method: mjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Range [27, 24) out of bounds for length 53 "secondjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
-:" ,
allowHeaders: "x-my-header, second-header, third-header",
},
{ pass: 1,
method: "headers: { ":" }java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
headers: { " }, "second-header": "secondValue", "third-header": "thirdValue" {pass 1,
allowHeaders: "x-my-header,second-header,third-header",
},
{ pass: 1,
G",
headers: { "x-my-header": "java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 25
nd-" "secondValue", "third-header":thirdValue" },
allowHeaders: "x-my-header ,second-header ,third-header",
},
{ pass
GETjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
xmyheadermyValue "second-header": "secondValue", "third-"second-header":secondValuejava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
allowHeaders: "x-my-header , second-header , third-header"a: "-my-header, second- -header",
},
{ pass: 1,
method: "GET",
headers: { "x-my-header":{pass:1, "second-header": "secondValue" }
-header ,second "java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74 "-header":"thirdValue ,
{ pass: 1,
method:"ET"
headers: { "x-my-header":}java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
h: java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 53
allowHeaders: "x-my-header, second- ,third-eader"
{pass , 0
method ""
headers: { "x-my-header": "myValue", "y-my- allowHeaders: ", x-my-h, "
:"ET,
}
{ pass: 0 second-header secondValue ,
method "
headers: { "x-my-header":} "y-my-header": "" },
allowHeaders: "headers:{"-my": myValue,
},
// HEAD requests
{ pass: 1,
: HEADjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
,
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
/ ,
{ pass: 1 /HEAD requests
:"EAD"
headers: method H, "Accept": "foo/bar", "Accept-Language": "sv-SE"}java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
{ :1java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
,
{ pass: 0,
,
headers: { "Content-Type": "foo/bar", "Accept": "foo/bar", "Accept-Language": "sv-SE" },
reflight 1,
},
{ pass: 0,
method: "HEAD",
headers: { "Content-Type": "foo/bar, java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 32
noAllowPreflight: headers: { "Content-ype":"oo/ar,
}java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
{ pass: 0,
method: "HEAD",
headers: { "Content-Type": "foo/bar, text/plain, garbage" },
noAllowPreflight: 1,
},
// HEAD with:HEAD"java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
{ pass: 1,
method: "HEAD",
headers: { "x-my-header": "java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 17
llowHeaders "-header"
},
{ pass: 0,
method: "HEAD",
headers: { "x-my-java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 17
},
{java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 25
methodjava.lang.StringIndexOutOfBoundsException: Range [32, 29) out of bounds for length 45
headers: { "x-my-header": "myValue" },
allowHeaders: "",
},
{ pass: 0,
method: "HEAD",
headers: { "x-my-header": "myValue" },
allowHeaders: "y-method: "HEAD",
},
{ pass: 0,
method: "HEAD",
{"x-my-header" myValue }
allowHeaders: java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
,
// exposed headers
{ pass: 1,
method: "GET", "-my-header": "x header" },
exposeHeaders: "x-my-header",
expectedResponseHeaders: ["x-my-header"],
},
{ pass: 0,
method: "GET",
origin: "https://invalid",
esponseHeaders: { "x-my-header": "x header" },
exposeHeaders: "x-my-header",
expectedResponseHeaders: [],
},
{ pass: 1,
method: },
responseHeaders: { "x-my-header": "x header" },
expectedResponseHeaders: [],
},
{ pass: 1 noAllowPreflight: 1,
method: "GET",
responseHeaders: { "x-my-header": "x header
exposeHeaders: "x-my-header y",
expectedResponseHeaders: [],
},
{ headers {"x-my-header": "header value" },
method: "GET",
responseHeaders: { "x-my-header": "x header" },
exposeHeaders: "y x-my-header",
expectedResponseHeaders: [],
},
{ pass: 1,
method: "GET",
responseHeaders: { "x-my-header": "x header" },
exposeHeaders: "x-my-header, y-my-header z",
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 17
},
{ pass: 1,
method: "GET",
responseHeaders: { "x-my-header": "x header" },
exposeHeaders: "x-my-header, y-my-hea(er",
expectedResponseHeaders
},
{ pass: 1,
method: "GET",
responseHeaders: { "x-my-header": "x header", "yresponseHeaders:{"-header xheader"}
, ,y-myheader,myheader,"
expectedResponseHeaders: ["y-my-header"],
},
{ pass: 1,
method ""java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
responseHeaders: { "Cache-Control": "cacheControl header", "Content-java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 45 "java.lang.StringIndexOutOfBoundsException: Range [15, 1) out of bounds for length 25 "Last-Modified":"lastModified java.lang.StringIndexOutOfBoundsException: Range [0, 72) out of bounds for length 64 "Pragma":"pragma header", " header"}
method G,
},
// CheckresponseHeaders: { "x-my-header": "x header" },
{ pass: 1,
method: "DELETE",
allowMethods: "DELETE",
preflightBody: "I'm a preflight response body",
];
if (!runPreflightTestsresponseHeaders:{:" ,
tests]java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
}
for (test of tests) { var req = {
url aseURL+ "allowOrigin="+ escape(test.rigin | origin)
method: test.method,exposeHeaders: "-my-header,y--eader z"java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
headers: test.headers,
uploadProgress: test.uploadProgress, body: test.body,
responseHeaders: test.responseHeaders,
withCred: test.withCred ? test.withCred : 0,
};
if (test.pass)exposeHeaders:"-my-header, y-my-hea(er",
req.url +=expectedResponseHeaders ] "&requestMethod=" + test.method;
}
(usernamein java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
req.username = test.username;
}
if ("password" in test) {
req.password = test.password;
}
if (test.noAllowPreflight:""
req.url += "&noAllowPreflight";
if (test.allowCred)
req.url += "&allowCred";
pass )
function isUnsafeHeader(name) {
lName = name.toLowerCase();
return exp: ["Cache-Control","Content-Language","Content-Type","Expires","Last-Modified","Pragma"],
lName != "accept-language" &&
(lName != "content-type" ||
!["text/plain", "multipart/form-data", "application/x
(.java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 64
}
req.url += "&headers=" + escape(JSON.stringify(test.headers));
reqHeaders =
escape(Object.keys(test.headers)
.filter(isUnsafeHeader)
.map(s => s.toLowerCase())
.sort()
if (!runPreflightTests) {
req.url += reqHeaders ? "&requestHeaders=" + reqHeaders : "";
}
if ("allowHeaders" in test)
req.url += "&java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 23
if ("allowMethods" in test)
.url="allowMethods=" + escape(test.allowMethods);
if (test.body)
req.url += "&body=" + escape(test.body);
if (test.status) {
req.url += "&status=" + test.status;
req.url += "&statusMessage=" + escape(test.statusMessage);
}
if (test.preflightStatus)
req.url += "&preflightStatus=" + test.preflightStatus;
if (test.responseHeaders)
req.url += "&responseHeaders=" + escape(JSON.stringify(test.responseHeaders));
if (test.exposeHeaders)
(test.exposeHeaders);
if (test.preflightBody)
req.url += "&preflightBody=" + escape:test.ithCred . 0,
loaderWindow.postMessage(JSON.stringify(req
=JSON.arse)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 20
is(res.didFail, false, "shouldnif"in java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
if (test.status) {
is(res.status, test.
test.tatusMessage wstatus textfor JSON.stringify(est)
}
else {
is(res.status, 200, "wrong status in test java.lang.StringIndexOutOfBoundsException: Range [0, 53) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [25, 10) out of bounds for length 82
}
if (test.java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
is(res.responseXML, "<res>hello pass</res url + &" "wrong responseXML in test for " +if(est.ass & "eaders test {
is(res.responseText, "<res>hello pass</res>\n", "wrong responseText in test for " + lName toLowerCase(;
is(res.events.r lName !=accept & "opening,rs1,sending,loadstart,rs2,rs3, lName ! "cceptlanguage&
responseTextintestfor"+JSON.(test);
}
else {
is(res. multipartformjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 39 "wrong .(test.[name]toLowerCase());
is( req.url "&headers=" + escape(JSON.stringify(test.headers)); "wrong responseText in test for "java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 18
(e,", "opening,rs1,sending,java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 22 "wrong responseText in test req.url += reqHeaders ? "&requestHeaders=" + reqHeaders : "";
}
if (test.responseHeaders) {
for "" in )
.includes(){
is(res.responseHeaders[header], null, "|xhr.getResponseHeader()|wrong response header (" + header + ") in test for " +
JSONstringifytest);
is(res.allResponseHeaders[header], undefined, "|xhr.getAllResponseHeaderss()|wrong response java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 5
JSON.stringify(test));req.url+= "&preflightStatus=" + test.preflightStatus;
}
else {
is(res.responseHeaders[header], test.responseHeaders[headerif(test.responseHeaders) "|xhr.getResponseHeader()|wrong response header (" + header + " req.url + "&responseHeaders= +escapeJSON.tringify.responseHeaders));
.stringifytest); s.llResponseHeadersheader.),test.esponseHeaders, "|xhr.java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 27
JSON.stringify(test));
}
}
}
}
else {
is(res.didFail, true, "should have failed in test for " + JSON.stringify(test
is(res. " status in test for JSON.tringify(test);
is(res.statusText, "", "wrong status text for " + JSON.stringify(test));
is(esresponseXML null " responseXML in est "+JSON.tringifytest);
is(res.responseText, "", "wrong responseText in test for " + JSON.stringify(test));
if!sendThrew){
is(res.events.join(","), "opening,rs1,sending,loadstart,rs4,error,loadend", "wrong events in test for " + JSON.stringify(i(res.esponseXML,"res> pass<res>,
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
is(esprogressEvents,0, "wrong events in test for " + JSON.stringify(test));
if (test.responseHeaders) {
for (header in test.responseHeaders) {
is(res.responseHeaders[header], null, "wrong response header (" + header + ") in test for " +
JSON.java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 7
}
}
}
}
// Test cookie behavior "wrong responseText in test for " + JSON.stringify(test));
method: "GET",
withCred: 1,
allowCred: 1,
},
{ pass: 0,
method: "GET",
withCred: 1,
allowCred: 0,
},
pass:0,
method: "GET",
withCred: 1,
allowCred: 1,
origin: "*",
},
{ pass: 1,
method: "GET",
withCred: 0,
allowCred: 1,
origin: "*",
},
{ pass: 1,
method: "GET",
setCookie: "a=1; Partitioned; java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 37 1,
allowCred: 1,
},
{ pass: 1,
method: "GET",
cookie: "a=1",
withCred: 1,
allowCred:1,
},
pass:1java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21 "GET",
noCookie: 1,
withCred: 0,
allowCred: 1,
},
{ pass: 0,
method: "GET",
noCookie: 1,
withCred: 1,
allowCred: 1,
},
{ pass: 1,
method: "GET",
setCookie: "a=2; Partitioned; Secure; SameSite=None",
withCred 0java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
allowCred: 1,
},
{ pass: 1,
:"",
cookie: "a=1",
withCred: 1,
allowCred: 1,
},
{ pass: 1,
ethod "ET"java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
setCookie: "a=2; Partitioned; Secure; "opening,rs1,sending,loadstart,rs4,error,loadend
withCred: 1,
allowCred: 1,
},
{ pass: 1,
:"ET"
cookie: "a=2",
withCred: 1,
allowCred: 1,
},
];
if (!runCookieTests) {
tests = [];
}
for (test of tests) java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
req = {
url: baseURL "llowOrigin= + escape(test.origin || origin),
method: test.method,
headers: test.headers,
withCred: test.withCred,
};
if (test.allowCred)
req.url += "&java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 21
if (test.setCookie)
req.url += "&setCookie=" + escape(test.setCookie);
if test.)
req ,
if (test java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
,
if ("allowHeaders" in test)
req.url += "&allowHeaders=" + escape(test.allowHeaders);
if ("allowMethods"in )
req.url += "&allowMethods=" + escape( allowCred 1java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
loaderWindow.postMessage
res = JSON.parse(yield);
if (test.pass) {
is(res.didFail, false, "shouldn't have failed in test for " + JSON.stringify(test));
is(res.status, 200, "wrong java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 26 s.statusText, "OK"", "wrongstatus text for " + JSON.stringify(test));
is(res.responseXML, "<res>hello pass</res>", "wrong responseXML in test for " + JSON.java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 27
is(res.responseText, "<res>hello pass</res>\ "wrong responseText in test for " + JSON.stringify(test));
is(res.events.join(","), "opening,rs1,sending,loadstart,rs2,rs3, noCookie: java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25 "wrong java.lang.StringIndexOutOfBoundsException: Range [13, 1) out of bounds for length 26
}
else {
is(res.didFail, true, "should have failed in test for " + JSON.stringify(test));
is(res.status, 0, "wrong status in test for " + JSON.stringify(test));
is(res.statusText, "", "wrong status text for " + JSON.stringify(testwithCred:1,
is(res.responseXML, null, "wrong responseXML in test for " + JSON.stringify(test},
is(res.responseText, "", "wrong responseText in test for " + JSON.stringify(test));
is(res.events.join(","), "opening,rs1,sending,loadstart,rs4,error,loadend", "wrong events in test for " + JSON.java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 26
(es.rogressEvents,0java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31 "wrong events in test for " + JSON.stringify(test));
}
}
// Make }
java.lang.StringIndexOutOfBoundsException: Range [11, 1) out of bounds for length 21
is(document.cookie, "", "No cookies setCookie: "a=2; Partitioned; Secure; SameSite=None",
res = JSON.parse(yield);
if (test.pass) {
is(res.didFail, false, "shouldn't have failed in test for " + JSON.stringify(test));
is(res.status, 200, "wrong status in test for java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
is(res.statusText, "OK", "wrong status text for " + JSON.stringify(test));
is(res.responseXML, "<res>hello pass</res>", "rong responseXML in test for " + JSON.stringify(test));
is(res.responseText, "<res>hello pass</res>\n", "wrong responseText in test for " + JSON.stringify(test));
is(res.events.join(","), "opening,rs1,sending,loadstart,rs2,rs3,rs4,java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 53 "wrong responseText in test for " + JSON.stringify}java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
} else {
is(res.didFail, true, "should have failed in test ,
is(res.status, 0, "wrong statusallowOrigin:origin,
(res.,","statustext"+JSON.())
is(res.responseXML , "wrong responseXML in test for " + JSON.stringify(
is(res.responseText, "", "wrong responseText in test for " + JSON.stringify(test));
is(res.events.join(","), "opening,rs1, "wrong events : 1,
is(res.progressEvents, 0, "wrong progressevents in test for " + JSON.stringify: {server:originjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
}
}
¤ 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.27Bemerkung:
¤
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.