Hi all,
I have M16 embedding app on Windows.
When application starts, I create web browser (like in MfcEmbed) and call nsWebBrowser::Activate() - it works fine! But when I call then nsWebBrowser::Deactivate() it doesn't work. Debugging into Mozilla code shows that my DocShell has NULL PresShell so the Deactivate method exits immediately.
When I set the PresShell variable manually to something (not NULL), it doesn't exit and deactivates the focus correctly.
Following a quote from nsWebBrowser.cpp:
=======================================================
NS_ENSURE_STATE(mDocShell); nsCOMPtr<nsIPresShell> presShell; mDocShell->GetPresShell(getter_AddRefs(presShell));
if(!presShell) // HERE I GOT NULL
return NS_OK;=======================================================
Please help, Anton. _______________________________________________ mozilla-embedding mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-embedding
