aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/EphyContentPolicy.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/embed/mozilla/EphyContentPolicy.cpp b/embed/mozilla/EphyContentPolicy.cpp
index fc367c2b1..f72f2f172 100644
--- a/embed/mozilla/EphyContentPolicy.cpp
+++ b/embed/mozilla/EphyContentPolicy.cpp
@@ -128,10 +128,6 @@ EphyContentPolicy::ShouldLoad(PRUint32 aContentType,
aContentLocation->SchemeIs ("resource", &isResource);
if (isChrome || isResource) return NS_OK;
- PRBool isHttps = PR_FALSE;
- aContentLocation->SchemeIs ("https", &isHttps);
- if (isHttps) return NS_OK;
-
/* is this url allowed ? */
nsCString contentSpec;
aContentLocation->GetSpec (contentSpec);
@@ -170,6 +166,10 @@ EphyContentPolicy::ShouldLoad(PRUint32 aContentType,
}
}
+ PRBool isHttps = PR_FALSE;
+ aContentLocation->SchemeIs ("https", &isHttps);
+ if (isHttps) return NS_OK;
+
PRBool isHttp = PR_FALSE;
aContentLocation->SchemeIs ("http", &isHttp);
if (isHttp) return NS_OK;