Made some further tests and yes it was the gtk processing in our  
functions that was causing the problems.

2 functions that displayed some graphical button widgets where calling

  while (gtk_events_pending()) {
    gtk_main_iteration();
  }

This was obviously draining the event queue and causing problems for  
the javascript in GMail from working properly. I'm still none the  
wiser as to what problem exactly draining the event queue is  
triggering in the Javascript/gecko application, but I've at least  
isolated down to something we where needlessly doing.

Thanks for all the feedback on this, much appreciated.
--
Glen Gray
[EMAIL PROTECTED]




On 9 May 2008, at 19:51, Christopher Blizzard wrote:

> Glen Gray wrote:
>> hey guys
>> I've isolated the code that was causing me those Gmail problems.  
>> it  was unnecessarily being called in the load completed callback  
>> code, so  I just removed it. But I'm still a little confused as to  
>> why it was  causing problems
>> The code in question that was being triggered handles our GTK+   
>> controls on screen, so if the current uri matches one from a  
>> whitelist  for fullscreen pages, then we hide our browser tool and  
>> status bars.  Some pages can be configured to display just the  
>> status bar or just  the toolbar or have the onscreen keyboard popup  
>> automatically etc.
>> It's pretty simply code and really just calls gtk show/hide on  
>> various  controls, however, it was also doing a flush of any  
>> pending GTK+  events I'm wondering if that was what was triggering  
>> the problems with  gmail ? I'll do some further tests on this  
>> tomorrow.
>> --
>> Glen Gray
>> [EMAIL PROTECTED]
>
> Could be all kinds of things - focus change events, resize events,  
> anything really.  Let us know if you track anything down.
>
> --Chris

_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to