Bug 1558915 - Use infallible nsIURI::SchemeIs in netwerk/. r=baku

Sorry I had some problems figuring out who can review netwerk/. Most people seem to be on PTO.

Differential Revision: https://phabricator.services.mozilla.com/D41175
This commit is contained in:
Tom Schuster
2019-08-08 13:02:36 +00:00
parent 94ec2f52bc
commit 4677ddb1c8
20 changed files with 97 additions and 220 deletions

View File

@@ -3075,9 +3075,7 @@ WebSocketChannel::AsyncOnChannelRedirect(
NS_ENSURE_SUCCESS(rv, rv);
// newuri is expected to be http or https
bool newuriIsHttps = false;
rv = newuri->SchemeIs("https", &newuriIsHttps);
NS_ENSURE_SUCCESS(rv, rv);
bool newuriIsHttps = newuri->SchemeIs("https");
if (!mAutoFollowRedirects) {
// Even if redirects configured off, still allow them for HTTP Strict