Commit fd391b26 authored by valenting's avatar valenting
Browse files

Bug 1663642 - fix. r=kershaw a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D90070
parent 643848c5
......@@ -1497,6 +1497,9 @@ nsresult nsStandardURL::SetSpecWithEncoding(const nsACString& input,
// parse the given URL...
nsresult rv = ParseURL(spec, specLength);
if (mScheme.mLen <= 0) {
rv = NS_ERROR_MALFORMED_URI;
}
if (NS_SUCCEEDED(rv)) {
// finally, use the URLSegment member variables to build a normalized
// copy of |spec|
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment