diff --git a/netwerk/base/nsNetUtil.cpp b/netwerk/base/nsNetUtil.cpp index 0e8fafb34e41..15b5ddf52a18 100644 --- a/netwerk/base/nsNetUtil.cpp +++ b/netwerk/base/nsNetUtil.cpp @@ -1585,12 +1585,11 @@ NS_GetOriginAttributes(nsIChannel *aChannel, mozilla::OriginAttributes &aAttributes) { nsCOMPtr loadInfo = aChannel->GetLoadInfo(); - if (!loadInfo) { - return false; + // For some channels, they might not have loadInfo, like ExternalHelperAppParent.. + if (loadInfo) { + loadInfo->GetOriginAttributes(&aAttributes); } - loadInfo->GetOriginAttributes(&aAttributes); - bool isPrivate = false; nsCOMPtr pbChannel = do_QueryInterface(aChannel); if (pbChannel) {