зеркало из https://github.com/mozilla/gecko-dev.git
add cookie viewer and signon viewer
This commit is contained in:
Родитель
7f01f9158a
Коммит
e131a0ed1d
|
@ -67,7 +67,7 @@
|
|||
static NS_DEFINE_IID(kCFileWidgetCID, NS_FILEWIDGET_CID);
|
||||
static NS_DEFINE_IID(kIFileWidgetIID, NS_IFILEWIDGET_IID);
|
||||
|
||||
#ifdef ClientWallet
|
||||
#if defined(ClientWallet) || defined(SingleSignon)
|
||||
#include "nsIWalletService.h"
|
||||
static NS_DEFINE_IID(kIWalletServiceIID, NS_IWALLETSERVICE_IID);
|
||||
static NS_DEFINE_IID(kWalletServiceCID, NS_WALLETSERVICE_CID);
|
||||
|
@ -463,6 +463,54 @@ nsBrowserAppCore::WalletSafeFillin() {
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifdef SingleSignon
|
||||
NS_IMETHODIMP
|
||||
nsBrowserAppCore::SignonViewer()
|
||||
{
|
||||
nsIWalletService *walletservice;
|
||||
nsresult res;
|
||||
res = nsServiceManager::GetService(kWalletServiceCID,
|
||||
kIWalletServiceIID,
|
||||
(nsISupports **)&walletservice);
|
||||
if ((NS_OK == res) && (nsnull != walletservice)) {
|
||||
res = walletservice->SI_DisplaySignonInfoAsHTML();
|
||||
NS_RELEASE(walletservice);
|
||||
}
|
||||
#ifndef HTMLDialogs
|
||||
return newWind("file:///y|/htmldlgs.htm");
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
#else
|
||||
nsBrowserAppCore::SignonViewer()
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CookieManagement
|
||||
NS_IMETHODIMP
|
||||
nsBrowserAppCore::CookieViewer()
|
||||
{
|
||||
nsINetService *netservice;
|
||||
nsresult res;
|
||||
res = nsServiceManager::GetService(kNetServiceCID,
|
||||
kINetServiceIID,
|
||||
(nsISupports **)&netservice);
|
||||
if ((NS_OK == res) && (nsnull != netservice)) {
|
||||
res = netservice->NET_DisplayCookieInfoAsHTML();
|
||||
NS_RELEASE(netservice);
|
||||
}
|
||||
#ifndef HTMLDialogs
|
||||
return newWind("file:///y|/htmldlgs.htm");
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
#else
|
||||
nsBrowserAppCore::CookieViewer()
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsBrowserAppCore::LoadUrl(const nsString& aUrl)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче