I just found the workaround method:

In widget/src/gtk2/nsWindow.cpp, change the following line (line No. 2887
for 1.9.1):
   if (!gFocusWindow && containerWindow) {
to
   if (containerWindow) {

I also found another bug in 1.9.2 (
https://bugzilla.mozilla.org/show_bug.cgi?id=533245) that clicking a
focusable element in an embedded browser window can't make the element
focused. I also found the workaround (the above workaround is not needed),
please see in the bug report if you are interested.

Regards,
Xianzhu

2009/12/7 Xianzhu Wang <[email protected]>

> Hi,
>
> We encountered a bug of gtkmozembed that it can't correctly transfer
> focus between two embedded browsers in one window. We submitted the
> bug report (https://bugzilla.mozilla.org/show_bug.cgi?id=490447) half
> a year ago, but we still haven't the solution. I have tried to
> discover the cause, but the focus logic is too complex to me.
>
> Has anyone encountered the same issue, and knows the work-around?
>
> Thanks,
> Xianzhu
>
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to