diff options
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index 06f84bd94..7bfda8bcc 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -367,8 +367,20 @@ EphyPopupBlockEventListener::HandleEvent (nsIDOMEvent * aDOMEvent) NS_CSTRING_ENCODING_UTF8, popupWindowFeaturesString); - g_signal_emit_by_name(mOwner->mEmbed, "ge_popup_blocked", + nsEmbedCString popupWindowNameString; +#ifdef HAVE_GECKO_1_9 + nsEmbedString popupWindowName; + rv = popupEvent->GetPopupWindowName (popupWindowName); + NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE); + + NS_UTF16ToCString (popupWindowName, + NS_CSTRING_ENCODING_UTF8, + popupWindowNameString); +#endif + + g_signal_emit_by_name(mOwner->mEmbed, "ge-popup-blocked", popupWindowURIString.get(), + popupWindowNameString.get(), popupWindowFeaturesString.get()); return NS_OK; |