Bug 1179399 - Part 1: Relax the ShouldIntercept checks when overriding JAR channel info; r=jdm

This commit is contained in:
Ehsan Akhgari 2015-07-01 18:35:23 -04:00
parent 5d84fcf3df
commit 67dedca94f

View File

@ -683,8 +683,6 @@ nsJARChannel::OverrideSecurityInfo(nsISupports* aSecurityInfo)
"This can only be called when we don't have a security info object already");
MOZ_RELEASE_ASSERT(aSecurityInfo,
"This can only be called with a valid security info object");
MOZ_RELEASE_ASSERT(ShouldIntercept(),
"This can only be called on channels that can be intercepted");
mSecurityInfo = aSecurityInfo;
return NS_OK;
}
@ -694,8 +692,6 @@ nsJARChannel::OverrideURI(nsIURI* aRedirectedURI)
{
MOZ_RELEASE_ASSERT(mLoadFlags & LOAD_REPLACE,
"This can only happen if the LOAD_REPLACE flag is set");
MOZ_RELEASE_ASSERT(ShouldIntercept(),
"This can only be called on channels that can be intercepted");
mAppURI = aRedirectedURI;
}