mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 03:19:06 +00:00
Bug 1765112. Silence spammy warnings in netwerk/url-classifier/AsyncUrlChannelClassifier.cpp. r=baku,dimi
Depends on D143890 Differential Revision: https://phabricator.services.mozilla.com/D143891
This commit is contained in:
parent
cc18ee7d76
commit
4ffc0e9581
@ -331,7 +331,7 @@ nsresult FeatureData::Initialize(FeatureTask* aTask, nsIChannel* aChannel,
|
||||
|
||||
rv = InitializeList(aTask, aChannel, nsIUrlClassifierFeature::entitylist,
|
||||
mEntitylistTables);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
@ -608,7 +608,7 @@ nsresult FeatureTask::Create(nsIChannel* aChannel,
|
||||
for (nsIUrlClassifierFeature* feature : features) {
|
||||
FeatureData* featureData = task->mFeatures.AppendElement();
|
||||
nsresult rv = featureData->Initialize(task, aChannel, feature);
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
}
|
||||
@ -770,7 +770,7 @@ nsresult FeatureData::InitializeList(
|
||||
nsIUrlClassifierFeature::URIType URIType;
|
||||
nsresult rv = mFeature->GetURIByListType(aChannel, aListType, &URIType,
|
||||
getter_AddRefs(uri));
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
if (NS_FAILED(rv)) {
|
||||
if (UC_LOG_ENABLED()) {
|
||||
nsAutoCString errorName;
|
||||
GetErrorName(rv, errorName);
|
||||
@ -883,7 +883,7 @@ nsresult AsyncUrlChannelClassifier::CheckChannel(
|
||||
RefPtr<FeatureTask> task;
|
||||
nsresult rv =
|
||||
FeatureTask::Create(aChannel, std::move(aCallback), getter_AddRefs(task));
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
if (NS_FAILED(rv)) {
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user