mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1179399 - Part 1: Relax the ShouldIntercept checks when overriding JAR channel info; r=jdm
This commit is contained in:
parent
5d84fcf3df
commit
67dedca94f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user