diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-03-10 03:56:42 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-03-10 03:56:42 +0800 |
commit | 341dd6e97d99ecfea71de18c6260b55da35c7eb4 (patch) | |
tree | 7f3cb1ef3277e5690b2fe1d470c6a46146b235ba /embed | |
parent | 777d98fa52496bd7d1e993bcab7a84b2b98417db (diff) | |
download | gsoc2013-epiphany-341dd6e97d99ecfea71de18c6260b55da35c7eb4.tar gsoc2013-epiphany-341dd6e97d99ecfea71de18c6260b55da35c7eb4.tar.gz gsoc2013-epiphany-341dd6e97d99ecfea71de18c6260b55da35c7eb4.tar.bz2 gsoc2013-epiphany-341dd6e97d99ecfea71de18c6260b55da35c7eb4.tar.lz gsoc2013-epiphany-341dd6e97d99ecfea71de18c6260b55da35c7eb4.tar.xz gsoc2013-epiphany-341dd6e97d99ecfea71de18c6260b55da35c7eb4.tar.zst gsoc2013-epiphany-341dd6e97d99ecfea71de18c6260b55da35c7eb4.zip |
Add some checking.
svn path=/branches/gnome-2-22/; revision=8076
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/EphyLoginPrompter.cpp | 38 |
1 files changed, 8 insertions, 30 deletions
diff --git a/embed/mozilla/EphyLoginPrompter.cpp b/embed/mozilla/EphyLoginPrompter.cpp index ae7e590c6..ff9f7f956 100644 --- a/embed/mozilla/EphyLoginPrompter.cpp +++ b/embed/mozilla/EphyLoginPrompter.cpp @@ -24,36 +24,10 @@ #include <nsStringAPI.h> -#include <nsComponentManagerUtils.h> -#include <nsIChannel.h> -#include <nsIDOMDocument.h> -#include <nsIDOMHTMLDocument.h> -#include <nsIDownload.h> -#include <nsIHttpChannel.h> -#include <nsIInputStream.h> -#include <nsILocalFile.h> -#include <nsIMIMEHeaderParam.h> -#include <nsIMIMEInfo.h> -#include <nsIMIMEService.h> -#include <nsIPrefService.h> -#include <nsIPromptService.h> -#include <nsIURI.h> -#include <nsIURL.h> -#include <nsIWebBrowserPersist.h> -#include <nsIWindowWatcher.h> -#include <nsServiceManagerUtils.h> -#include <nsXPCOMCID.h> - -#include "eel-gconf-extensions.h" -#include "ephy-debug.h" -#include "ephy-file-chooser.h" -#include "ephy-gui.h" -#include "ephy-prefs.h" +#include "EphyUtils.h" -#ifndef HAVE_GECKO_1_9 -#include "EphyBadCertRejector.h" -#endif -#include "MozDownload.h" +#include "ephy-debug.h" +#include "ephy-embed.h" #include "EphyLoginPrompter.h" @@ -73,6 +47,11 @@ NS_IMPL_ISUPPORTS1 (EphyLoginPrompter, NS_IMETHODIMP EphyLoginPrompter::Init(nsIDOMWindow *aWindow) { mWindow = aWindow; + + /* Ensure it's one of ours */ + GtkWidget *embed = EphyUtils::FindGtkParent (aWindow); + NS_ENSURE_TRUE (embed, NS_ERROR_FAILURE); + return NS_OK; } @@ -94,4 +73,3 @@ NS_IMETHODIMP EphyLoginPrompter::PromptToChangePasswordWithUsernames(nsILoginInf return NS_ERROR_NOT_IMPLEMENTED; } - |