diff options
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 |