mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 931249 - patch 5 - set redirection limit back to zero. r=bkelly
--HG-- extra : rebase_source : 0fd55aa052fb44dac663619bec817c1d1550e714
This commit is contained in:
parent
8c40095e83
commit
ad2ff46bf5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user