Hi,

maybe the xpcom group could help...

I'm trying to make a kind of "remote control" of the firefox browser (the linux version). Therfore I'm using a command-line component which calls a SocketListener so I could send commands using telnet. To prevent the immediate closing of the browser (because of preventdefault=true) I'm calling the eventLoop of the current thread.

Now the problem...

One of the remote commands opens some dialogs (alert, open directory dialog). Everything works despite the fact that the last dialog is somehow "frozen". The program flow continues but I can't get rid of the last dialog. Because the dialog is closed for the browser there are no more mouse events and also the repaint doesn't work anymore, but the window is present for the gtk window-manager.

I have tried:
- processPendingEvents with the eventqueue which does the eventLoop
- interrupting the thread and call eventLoop again
- calling some methods from hiddenDOMWindow (like stop and so on...)
- using a timeout via "nsITimer" (because there is no setTimeOut in hiddenDOMWindow)
- using the prompt service instead of the "normal" alert

but nothing works...


It seems that a following dialog does something which forces the previous dialog to fully remove the window - but what? Something in the eventhandling? Any ideas?
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom

Reply via email to