Backed out changeset ec067b17f7d3 (bug 1453612) for failures on /fetch/api/response/response-static-redirect.html. CLOSED TREE

This commit is contained in:
Csoregi Natalia 2018-10-15 00:21:11 +03:00
Родитель 57a2bdc889
Коммит 2930ca39e4
2 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -140,7 +140,6 @@ Response::Redirect(const GlobalObject& aGlobal, const nsAString& aUrl,
Optional<Nullable<fetch::ResponseBodyInit>> body; Optional<Nullable<fetch::ResponseBodyInit>> body;
ResponseInit init; ResponseInit init;
init.mStatus = aStatus; init.mStatus = aStatus;
init.mStatusText.AssignASCII("");
RefPtr<Response> r = Response::Constructor(aGlobal, body, init, aRv); RefPtr<Response> r = Response::Constructor(aGlobal, body, init, aRv);
if (NS_WARN_IF(aRv.Failed())) { if (NS_WARN_IF(aRv.Failed())) {
return nullptr; return nullptr;

Просмотреть файл

@ -105,7 +105,6 @@ function testError() {
function testRedirect() { function testRedirect() {
var res = Response.redirect("./redirect.response"); var res = Response.redirect("./redirect.response");
is(res.status, 302, "Default redirect has status code 302"); is(res.status, 302, "Default redirect has status code 302");
is(res.statusText, "", "Default redirect has status text empty");
var h = res.headers.get("location"); var h = res.headers.get("location");
ok(h === (new URL("./redirect.response", self.location.href)).href, "Location header should be correct absolute URL"); ok(h === (new URL("./redirect.response", self.location.href)).href, "Location header should be correct absolute URL");
try { try {