Embedding: unable to edit text fields/no caret

"[email protected]" <[email protected]> Wed, 31 Aug 2011 18:20:31 +0100
Newsgroups gmane.comp.mozilla.devel.embedding
Organization NovaDSP
Message-ID <[email protected]>
For anyone else banging their head on this particular wall:

https://bugzilla.mozilla.org/show_bug.cgi?id=533245#c13

In short the solution is to implement GetVisibility like this:

NS_IMETHODIMP WebBrowserChrome::GetVisibility(PRBool * aVisibility)
{
     NS_ENSURE_ARG_POINTER(aVisibility);
     *aVisibility = PR_TRUE;
     return NS_OK;
}

rather than like this:


NS_IMETHODIMP WebBrowserChrome::GetVisibility(PRBool * aVisibility) {
  if(! m_pBrowserFrameGlue)
return NS_ERROR_FAILURE;

m_pBrowserFrameGlue->GetBrowserFrameVisibility(aVisibility);

return NS_OK;
}