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