From 4c41745e525a7fc35f29622e382ec7f881cc2e50 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 30 Oct 2004 18:04:40 +0000 Subject: Check for nsIDOMNSEvent::GetIsTrusted. 2004-10-30 Christian Persch * configure.ac: Check for nsIDOMNSEvent::GetIsTrusted. * embed/mozilla/EphyBrowser.cpp: Conditionally compile this code. * lib/ephy-marshal.list: Forgot to commit this. --- ChangeLog | 14 ++++++++++++++ configure.ac | 15 +++++++++++++++ embed/mozilla/EphyBrowser.cpp | 2 ++ lib/ephy-marshal.list | 1 + 4 files changed, 32 insertions(+) diff --git a/ChangeLog b/ChangeLog index e432a3228..af2243ab4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,17 @@ +2004-10-30 Christian Persch + + * configure.ac: + + Check for nsIDOMNSEvent::GetIsTrusted. + + * embed/mozilla/EphyBrowser.cpp: + + Conditionally compile this code. + + * lib/ephy-marshal.list: + + Forgot to commit this. + 2004-10-30 Christian Persch * configure.ac: diff --git a/configure.ac b/configure.ac index c30027419..3bbbf53e4 100644 --- a/configure.ac +++ b/configure.ac @@ -344,6 +344,21 @@ dnl changed from nsIXULChromeRegistry in 1.8a4 AC_CHECK_FILE([$MOZILLA_INCLUDE_ROOT/chrome/nsIChromeRegistrySea.h], [AC_DEFINE([HAVE_CHROME_NSICHROMEREGISTRYSEA_H], [1], [Define if nsIChromeRegistrySea.h exists])]) +dnl added after 1.7.3, on aviary and in 1.8a5 on trunk + +AC_MSG_CHECKING([for nsIDOMNSEvent::GetIsTrusted]) + +AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[nsIDOMNSEvent *p; + p->GetIsTrusted (nsnull);]] + )], + [AC_DEFINE([MOZ_NSIDOMNSEVENT_GETISTRUSTED],[1],[dummy]) result=yes], + [result=no]) + +AC_MSG_RESULT([$result]) + dnl check for broken reload in GtkMozEmbed dnl FIXME: I have NO IDEA how to do this. For now, just always enable our workaround dnl diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index da69e21b3..58826f5f0 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -216,6 +216,7 @@ EphyPopupBlockEventListener::HandleEvent (nsIDOMEvent * aDOMEvent) NS_IMETHODIMP EphyModalAlertEventListener::HandleEvent (nsIDOMEvent * aDOMEvent) { +#ifdef MOZ_NSIDOMNSEVENT_GETISTRUSTED NS_ENSURE_TRUE (mOwner, NS_ERROR_FAILURE); /* make sure the event is trusted */ @@ -251,6 +252,7 @@ EphyModalAlertEventListener::HandleEvent (nsIDOMEvent * aDOMEvent) { g_signal_emit_by_name (mOwner, "ge-modal-alert-closed"); } +#endif return NS_OK; } diff --git a/lib/ephy-marshal.list b/lib/ephy-marshal.list index e931ff895..23b5084f1 100644 --- a/lib/ephy-marshal.list +++ b/lib/ephy-marshal.list @@ -1,6 +1,7 @@ INT:STRING BOOLEAN:OBJECT BOOLEAN:STRING, STRING +BOOLEAN:VOID VOID:ENUM,INT,BOOLEAN VOID:INT,INT VOID:POINTER,INT -- cgit v1.2.3