aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyUtils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/EphyUtils.cpp')
-rw-r--r--embed/mozilla/EphyUtils.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/embed/mozilla/EphyUtils.cpp b/embed/mozilla/EphyUtils.cpp
index 885a49f08..07aa4ceed 100644
--- a/embed/mozilla/EphyUtils.cpp
+++ b/embed/mozilla/EphyUtils.cpp
@@ -39,7 +39,6 @@
#ifdef HAVE_GECKO_1_9
#include <nsPIDOMWindow.h>
-#include <nsDOMJSUtils.h> /* for GetScriptContextFromJSContext */
#include <nsIScriptContext.h>
#include <nsIScriptGlobalObject.h>
#endif
@@ -187,10 +186,10 @@ EphyJSUtils::IsCalledFromScript ()
nsIDOMWindow *
EphyJSUtils::GetDOMWindowFromCallContext ()
{
- /* TODO: We can do this on 1.8 too, but we'd need to use headers which include private string API
+ /* TODO: We could do this on 1.8, but we'd need to use headers which include private string API
* so we'll have to move this to MozillaPrivate
*/
-#ifdef HAVE_GECKO_1_9
+#if 0
nsresult rv;
nsCOMPtr<nsIXPConnect> xpc (do_GetService(nsIXPConnect::GetCID(), &rv));
NS_ENSURE_SUCCESS (rv, nsnull);