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 157dceba6..1ed969adf 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -220,8 +220,13 @@ EphyBrowser::GetListener (void)
nsCOMPtr<nsPIDOMWindow> piWin(do_QueryInterface(domWindow));
NS_ENSURE_TRUE (piWin, NS_ERROR_FAILURE);
+#if MOZILLA_SNAPSHOT > 15
+ nsIChromeEventHandler* chromeHandler;
+ chromeHandler = piWin->GetChromeEventHandler();
+#else
nsCOMPtr<nsIChromeEventHandler> chromeHandler;
piWin->GetChromeEventHandler(getter_AddRefs(chromeHandler));
+#endif
mEventReceiver = do_QueryInterface(chromeHandler);
NS_ENSURE_TRUE (mEventReceiver, NS_ERROR_FAILURE);