Backed out changeset dee772828d50 (bug 1344751)
authorSebastian Hengst <archaeopteryx@coole-files.de>
Wed, 05 Jul 2017 15:32:00 +0200
changeset 367453 c107e314c7397c30ae4417c3ba94f8c1a45d5d53
parent 367452 525cc3b789fc12a59be11e5e413acd6f377b0e7b
child 367454 a2ed9b85083f108f201b8129ea01e215bc2df369
push id32135
push userkwierso@gmail.com
push dateThu, 06 Jul 2017 00:12:17 +0000
treeherdermozilla-central@af0466865a21 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1344751
milestone56.0a1
backs outdee772828d502344d59deff11c41f16c7ea934a7
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Backed out changeset dee772828d50 (bug 1344751)
netwerk/base/nsStandardURL.cpp
--- a/netwerk/base/nsStandardURL.cpp
+++ b/netwerk/base/nsStandardURL.cpp
@@ -1149,22 +1149,22 @@ nsStandardURL::ParseURL(const char *spec
     // parse given URL string
     //
     rv = mParser->ParseURL(spec, specLen,
                            &mScheme.mPos, &mScheme.mLen,
                            &mAuthority.mPos, &mAuthority.mLen,
                            &mPath.mPos, &mPath.mLen);
     if (NS_FAILED(rv)) return rv;
 
+#ifdef DEBUG
     if (mScheme.mLen <= 0) {
-#ifdef DEBUG
         printf("spec=%s\n", spec);
+        NS_WARNING("malformed url: no scheme");
+    }
 #endif
-        return NS_ERROR_MALFORMED_URI;
-    }
      
     if (mAuthority.mLen > 0) {
         rv = mParser->ParseAuthority(spec + mAuthority.mPos, mAuthority.mLen,
                                      &mUsername.mPos, &mUsername.mLen,
                                      &mPassword.mPos, &mPassword.mLen,
                                      &mHost.mPos, &mHost.mLen,
                                      &mPort);
         if (NS_FAILED(rv)) return rv;