Bug 1945924 - Replace SchemeIsFoo functions with the inlined SchemeIs() call. r=valentin,emilio,necko-reviewers,geckoview-reviewers,anti-tracking-reviewers,core-sessionstore-reviewers,ohall,farre

No behavior change intended.

Differential Revision: https://phabricator.services.mozilla.com/D236756
This commit is contained in:
kernp25
2025-03-31 14:25:54 +00:00
parent 709b897ab8
commit 4d18975ff5
43 changed files with 112 additions and 210 deletions

View File

@@ -58,6 +58,5 @@ bool ImageBlocker::ShouldBlock(nsIURI* aContentLocation) {
// we only want to check http, https
// for chrome:// and resources and others, no need to check.
return aContentLocation->SchemeIs("http") ||
aContentLocation->SchemeIs("https");
return net::SchemeIsHttpOrHttps(aContentLocation);
}