Bug 1061136 - Followup bugfix. r=bz
authorBobby Holley <bobbyholley@gmail.com>
Mon, 08 Sep 2014 22:22:21 -0700
changeset 227459 6db078d61361d2bd86ec6a10bc21c8c0fa5b8cfc
parent 227458 22eb7571af8e9dd3415ff5bfb3fabc3361556d1f
child 227460 654b0c2a09135aeed35f1527572a078e4d688fbf
push id4187
push userbhearsum@mozilla.com
push dateFri, 28 Nov 2014 15:29:12 +0000
treeherdermozilla-beta@f23cc6a30c11 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1061136
milestone35.0a1
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
Bug 1061136 - Followup bugfix. r=bz
caps/nsScriptSecurityManager.cpp
--- a/caps/nsScriptSecurityManager.cpp
+++ b/caps/nsScriptSecurityManager.cpp
@@ -1428,17 +1428,17 @@ nsScriptSecurityManager::AddSitesToFileU
         bound = SkipUntil<IsWhitespace>(aSiteList, base);
         nsAutoCString site(Substring(aSiteList, base, bound - base));
 
         // Check if the URI is schemeless. If so, add both http and https.
         nsAutoCString unused;
         if (NS_FAILED(sIOService->ExtractScheme(site, unused))) {
             AddSitesToFileURIWhitelist(NS_LITERAL_CSTRING("http://") + site);
             AddSitesToFileURIWhitelist(NS_LITERAL_CSTRING("https://") + site);
-            return;
+            continue;
         }
 
         // Convert it to a URI and add it to our list.
         nsCOMPtr<nsIURI> uri;
         nsresult rv = NS_NewURI(getter_AddRefs(uri), site, nullptr, nullptr, sIOService);
         if (NS_SUCCEEDED(rv)) {
             mFileURIWhitelist.AppendElement(uri);
         } else {