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
1e6359f6d7
commit
554941ee2b
@ -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