aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyBrowser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r--embed/mozilla/EphyBrowser.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index 363131c70..03e2e51b2 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -180,6 +180,11 @@ EphyDOMLinkEventListener::HandleEvent (nsIDOMEvent* aDOMEvent)
EphyUtils::NewURI (getter_AddRefs (favUri), faviconUrl);
NS_ENSURE_TRUE (favUri, NS_ERROR_FAILURE);
+ /* Only proceed for http favicons. Bug #312291 */
+ PRBool isHttp = PR_FALSE;
+ favUri->SchemeIs ("http", &isHttp);
+ if (!isHttp) return NS_OK;
+
/* check if load is allowed */
nsCOMPtr<nsIScriptSecurityManager> secMan
(do_GetService("@mozilla.org/scriptsecuritymanager;1"));