aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-favicon-cache.c6
-rw-r--r--embed/mozilla/EphyBrowser.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c
index f06cfa41a..53207d65b 100644
--- a/embed/ephy-favicon-cache.c
+++ b/embed/ephy-favicon-cache.c
@@ -544,6 +544,7 @@ ephy_favicon_cache_download (EphyFaviconCache *cache,
ephy_embed_persist_set_dest (persist, dest);
ephy_embed_persist_set_flags (persist, EPHY_EMBED_PERSIST_NO_VIEW |
+ EPHY_EMBED_PERSIST_NO_CERTDIALOGS |
EPHY_EMBED_PERSIST_DO_CONVERSION);
ephy_embed_persist_set_max_size (persist, EPHY_FAVICON_MAX_SIZE);
ephy_embed_persist_set_source (persist, favicon_url);
@@ -587,7 +588,12 @@ ephy_favicon_cache_get (EphyFaviconCache *cache,
if (url == NULL) return NULL;
+#ifdef HAVE_GECKO_1_9
+ if (!g_str_has_prefix (url, "http://") &&
+ !g_str_has_prefix (url, "https://")) return NULL;
+#else
if (!g_str_has_prefix (url, "http://")) return NULL;
+#endif
priv->requests += 1;
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index 1bc8fc440..688ee482b 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -181,7 +181,13 @@ EphyDOMLinkEventListener::HandleEvent (nsIDOMEvent* aDOMEvent)
/* Only proceed for http favicons. Bug #312291 */
PRBool isHttp = PR_FALSE;
favUri->SchemeIs ("http", &isHttp);
+#ifdef HAVE_GECKO_1_9
+ PRBool isHttps = PR_FALSE;
+ favUri->SchemeIs ("https", &isHttps);
+ if (!isHttp && !isHttps) return NS_OK;
+#else
if (!isHttp) return NS_OK;
+#endif
/* check if load is allowed */
nsCOMPtr<nsIScriptSecurityManager> secMan