mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 853568 - Intermittent browser_webconsole_bug_599725_response_headers.js | we do not have the Content-Type header | Content-Length != 60 - Didn't expect 60, but got it; r=vporof
This commit is contained in:
parent
a17eef7216
commit
4744f71f6a
@ -30,8 +30,21 @@ function performTest(lastFinishedRequest, aConsole)
|
||||
function (aResponse) {
|
||||
headers = aResponse.headers;
|
||||
ok(headers, "we have the response headers");
|
||||
ok(!readHeader("Content-Type"), "we do not have the Content-Type header");
|
||||
isnot(readHeader("Content-Length"), 60, "Content-Length != 60");
|
||||
|
||||
let contentType = readHeader("Content-Type");
|
||||
let contentLength = readHeader("Content-Length");
|
||||
|
||||
ok(!contentType, "we do not have the Content-Type header");
|
||||
isnot(contentLength, 60, "Content-Length != 60");
|
||||
|
||||
if (contentType || contentLength == 60) {
|
||||
console.debug("lastFinishedRequest", lastFinishedRequest,
|
||||
"request", lastFinishedRequest.request,
|
||||
"response", lastFinishedRequest.response,
|
||||
"updates", lastFinishedRequest.updates,
|
||||
"response headers", headers);
|
||||
}
|
||||
|
||||
executeSoon(finishTest);
|
||||
});
|
||||
|
||||
@ -44,9 +57,9 @@ function test()
|
||||
|
||||
browser.addEventListener("load", function onLoad() {
|
||||
browser.removeEventListener("load", onLoad, true);
|
||||
openConsole(null, function() {
|
||||
executeSoon(() => openConsole(null, () => {
|
||||
HUDService.lastFinishedRequestCallback = performTest;
|
||||
content.location.reload();
|
||||
});
|
||||
}));
|
||||
}, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user