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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user