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

--HG--
extra : rebase_source : 0fd55aa052fb44dac663619bec817c1d1550e714
This commit is contained in:
Nikhil Marathe 2015-03-18 13:55:33 -07:00
parent 8c40095e83
commit ad2ff46bf5

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);