зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1391693 P3 Allow CSP report channels to be internally redirected. r=ckerschb
This commit is contained in:
Родитель
9ed7291825
Коммит
eec881a235
|
@ -1528,6 +1528,11 @@ CSPReportRedirectSink::AsyncOnChannelRedirect(nsIChannel* aOldChannel,
|
|||
uint32_t aRedirFlags,
|
||||
nsIAsyncVerifyRedirectCallback* aCallback)
|
||||
{
|
||||
if (aRedirFlags & nsIChannelEventSink::REDIRECT_INTERNAL) {
|
||||
aCallback->OnRedirectVerifyCallback(NS_OK);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
// cancel the old channel so XHR failure callback happens
|
||||
nsresult rv = aOldChannel->Cancel(NS_ERROR_ABORT);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
|
Загрузка…
Ссылка в новой задаче