mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1208755 HttpBaseChannel::ShouldIntercept() should not assume every channel has a LoadInfo. r=ckerschb
This commit is contained in:
parent
3485b8a369
commit
ff01387127
@ -877,7 +877,7 @@ nsJARChannel::ShouldIntercept()
|
||||
NS_GET_IID(nsINetworkInterceptController),
|
||||
getter_AddRefs(controller));
|
||||
bool shouldIntercept = false;
|
||||
if (controller && !mForceNoIntercept) {
|
||||
if (controller && !mForceNoIntercept && mLoadInfo) {
|
||||
bool isNavigation = mLoadFlags & LOAD_DOCUMENT_URI;
|
||||
nsContentPolicyType type = mLoadInfo->InternalContentPolicyType();
|
||||
nsresult rv = controller->ShouldPrepareForIntercept(mAppURI,
|
||||
|
@ -2272,7 +2272,7 @@ HttpBaseChannel::ShouldIntercept()
|
||||
nsCOMPtr<nsINetworkInterceptController> controller;
|
||||
GetCallback(controller);
|
||||
bool shouldIntercept = false;
|
||||
if (controller && !mForceNoIntercept) {
|
||||
if (controller && !mForceNoIntercept && mLoadInfo) {
|
||||
nsContentPolicyType type = mLoadInfo->InternalContentPolicyType();
|
||||
nsresult rv = controller->ShouldPrepareForIntercept(mURI,
|
||||
IsNavigation(),
|
||||
|
Loading…
Reference in New Issue
Block a user