Doug Turner wrote:
dimon wrote:
hi
i have my own browser on embedding... and i have a problem with
opening https sites...
after certificate dialog are shown there are no nothing...
1) loading https://mail.yahoo.com
2) certificate dialog are show
3) press ok (to accept certificate)
4) and no nothing loading
why???
i think problem with handling event...
How are you handling window creation -- are you using the
nsIWindowCreator? How is your ShowAsModal() implemented?
Regards,
Doug Turner
/////////////window creator
//////nsresult CTab::CreateBrowserWindow(PRUint32 aChromeFlags,
//nsIWebBrowserChrome *aParent, nsIWebBrowserChrome **aNewWindow)
NS_ENSURE_ARG_POINTER(aNewWindow);
*aNewWindow = 0;
if(aChromeFlags == 0xf8000406)
{
CWebFrame *frm = new CWebFrame(NULL);
if (!frm)
return NS_ERROR_OUT_OF_MEMORY;
frm->Show(TRUE);
CImplement *container = frm->pTab->pHTML->GetBrowserImplement();
return container->QueryInterface(NS_GET_IID(nsIWebBrowserChrome),
(void **) aNewWindow);
}
else
{
if(aChromeFlags!=4094)
{
CreateHTMLWindow();
if(pHTML)///refer to last created HTML window
{
*aNewWindow = NS_REINTERPRET_CAST(nsIWebBrowserChrome *,
pHTML->GetBrowserImplement());
NS_ADDREF(*aNewWindow);
}
}
else
{
if (pActiveHTML)//activated
{
*aNewWindow = NS_REINTERPRET_CAST(nsIWebBrowserChrome *,
pActiveHTML->GetBrowserImplement());
NS_ADDREF(*aNewWindow);
}
}
}
/////////////////////////////////
///ShowAsModal()
////////////////////////////////
MSG msg;
HANDLE hFakeEvent = ::CreateEvent(NULL, TRUE, FALSE, NULL);
while (aRunCondition ) {
// Process pending messages
while (::PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE)) {
if (!::GetMessage(&msg, NULL, 0, 0)) {
// WM_QUIT
aRunCondition = PR_FALSE;
break;
}
PRBool wasHandled = PR_FALSE;
::NS_HandleEmbeddingEvent(msg, wasHandled);
if (wasHandled)
continue;
::TranslateMessage(&msg);
::DispatchMessage(&msg);
}
// Do idle stuff
::MsgWaitForMultipleObjects(1, &hFakeEvent, FALSE, 100,
QS_ALLEVENTS);
}
::CloseHandle(hFakeEvent);
return msg.wParam;
_______________________________________________
mozilla-embedding mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-embedding