Bug 360526, Cert not imported - Feedback prompt sometimes does not work

r=rrelyea
This commit is contained in:
kaie%kuix.de 2006-12-06 16:31:32 +00:00
Родитель c26ec94941
Коммит 6a93344bb3
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -826,6 +826,10 @@ void nsNSSCertificateDB::DisplayCertificateAlert(nsIInterfaceRequestor *ctx,
nsPSMUITracker tracker;
if (!tracker.isUIForbidden()) {
nsCOMPtr<nsIInterfaceRequestor> my_cxt = ctx;
if (!my_cxt)
my_cxt = new PipUIContext();
// This shall be replaced by embedding ovverridable prompts
// as discussed in bug 310446, and should make use of certToShow.
@ -841,7 +845,7 @@ void nsNSSCertificateDB::DisplayCertificateAlert(nsIInterfaceRequestor *ctx,
nsCOMPtr<nsIInterfaceRequestor> proxiedCallbacks;
NS_GetProxyForObject(NS_PROXY_TO_MAIN_THREAD,
NS_GET_IID(nsIInterfaceRequestor),
ctx,
my_cxt,
NS_PROXY_SYNC,
getter_AddRefs(proxiedCallbacks));