Kluge to build against mozilla-1.8a1. There's probably a

better way to do this...
This commit is contained in:
Adam Weinberger 2004-07-07 20:00:33 +00:00
parent f82a372836
commit a030b09337
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113161

View File

@ -0,0 +1,19 @@
--- extensions/popup-blocker/mozilla/mozilla-helpers.cpp.orig Wed Jul 7 15:55:52 2004
+++ extensions/popup-blocker/mozilla/mozilla-helpers.cpp Wed Jul 7 15:57:58 2004
@@ -65,12 +65,16 @@
nsCOMPtr<nsPIDOMWindow> piWin(do_QueryInterface (domWindow, &rv));
NS_ENSURE_SUCCESS (rv, NULL);
+#if MOZILLA_SNAPSHOT < 18
nsCOMPtr<nsIChromeEventHandler> chromeHandler;
rv = piWin->GetChromeEventHandler (getter_AddRefs (chromeHandler));
NS_ENSURE_SUCCESS (rv, NULL);
+#endif
nsCOMPtr<nsIDOMEventReceiver> eventReceiver;
+#if MOZILLA_SNAPSHOT < 18
eventReceiver = do_QueryInterface (chromeHandler, &rv);
+#endif
NS_ENSURE_SUCCESS (rv, NULL);
nsCOMPtr<nsIDOMEventTarget> target;