Hi all, I keep coming across this problem when writing Mochitests for 
Thunderbird. It seems to affect only Linux but I can't be sure of that.

If I open a window then click on an element that would open a pop-up (such 
a menulist), the click event happens but the pop-up doesn't open. So my 
test code waiting it to appear times out.

(Also, on my machine I frequently see a rendering glitch on the new window 
when this happens, but I'm not sure if it's related. Parts of the window 
aren't drawn properly and instead I can see other things that are already 
on my screen.)

What I think is happening is that the code that talks to the OS about the 
pop-up isn't ready so soon after the window opens. Usually I can mitigate 
it by waiting 500ms before the click, but this feels bad and it doesn't 
always work. Is there something I can listen for to be sure that everything 
is ready to handle the click?

GL

-- 
You received this message because you are subscribed to the Google Groups 
"[email protected]" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/mozilla.org/d/msgid/dev-platform/dcb74964-d584-4116-8164-e1b2b6db8eb9n%40mozilla.org.

Reply via email to