mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1184275 - Remove warnings that URI is not a file URI. r=jduell
This error is handled properly and appears to happen due to legitimate usage. The warnings are updated to just return the proper error code.
This commit is contained in:
parent
e52fed601f
commit
2e955093fe
@ -14074,7 +14074,10 @@ nsDocShell::ShouldPrepareForIntercept(nsIURI* aURI, bool aIsNavigate,
|
|||||||
bool isThirdPartyURI = true;
|
bool isThirdPartyURI = true;
|
||||||
result = thirdPartyUtil->IsThirdPartyURI(mCurrentURI, aURI,
|
result = thirdPartyUtil->IsThirdPartyURI(mCurrentURI, aURI,
|
||||||
&isThirdPartyURI);
|
&isThirdPartyURI);
|
||||||
NS_ENSURE_SUCCESS(result, result);
|
if (NS_FAILED(result)) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
if (isThirdPartyURI &&
|
if (isThirdPartyURI &&
|
||||||
(Preferences::GetInt("network.cookie.cookieBehavior",
|
(Preferences::GetInt("network.cookie.cookieBehavior",
|
||||||
nsICookieService::BEHAVIOR_ACCEPT) ==
|
nsICookieService::BEHAVIOR_ACCEPT) ==
|
||||||
|
@ -371,7 +371,9 @@ ThirdPartyUtil::GetBaseDomain(nsIURI* aHostURI,
|
|||||||
if (aBaseDomain.IsEmpty()) {
|
if (aBaseDomain.IsEmpty()) {
|
||||||
bool isFileURI = false;
|
bool isFileURI = false;
|
||||||
aHostURI->SchemeIs("file", &isFileURI);
|
aHostURI->SchemeIs("file", &isFileURI);
|
||||||
NS_ENSURE_TRUE(isFileURI, NS_ERROR_INVALID_ARG);
|
if (!isFileURI) {
|
||||||
|
return NS_ERROR_INVALID_ARG;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
@ -2091,7 +2091,9 @@ HttpBaseChannel::ShouldIntercept()
|
|||||||
nsresult rv = controller->ShouldPrepareForIntercept(mURI,
|
nsresult rv = controller->ShouldPrepareForIntercept(mURI,
|
||||||
IsNavigation(),
|
IsNavigation(),
|
||||||
&shouldIntercept);
|
&shouldIntercept);
|
||||||
NS_ENSURE_SUCCESS(rv, false);
|
if (NS_FAILED(rv)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return shouldIntercept;
|
return shouldIntercept;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user