Bug 1558915 - Use infallible nsIURI::SchemeIs in dom/. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D40108
This commit is contained in:
Tom Schuster
2019-08-02 08:54:18 +00:00
parent 4aa70f1270
commit 1079fb412e
27 changed files with 53 additions and 176 deletions

View File

@@ -198,12 +198,7 @@ bool ScriptLoadRequest::ShouldAcceptBinASTEncoding() const {
#ifdef JS_BUILD_BINAST
// We accept the BinAST encoding if we're using a secure connection.
bool isHTTPS = false;
nsresult rv = mURI->SchemeIs("https", &isHTTPS);
MOZ_ASSERT(NS_SUCCEEDED(rv));
Unused << rv;
if (!isHTTPS) {
if (!mURI->SchemeIs("https")) {
return false;
}