Bug 931249 - patch 5 - set redirection limit back to zero. r=bkelly

This commit is contained in:
Nikhil Marathe 2015-03-18 13:55:33 -07:00
parent 5392a94907
commit d8a93fc400

View File

@ -86,7 +86,11 @@ public:
return rv;
}
// FIXME(nsm): Set redirect limit.
nsCOMPtr<nsIHttpChannel> httpChannel = do_QueryInterface(mChannel);
if (httpChannel) {
// Spec says no redirects allowed for SW scripts.
httpChannel->SetRedirectionLimit(0);
}
// Don't let serviceworker intercept.
nsCOMPtr<nsIHttpChannelInternal> internalChannel = do_QueryInterface(mChannel);