I wrote plugin for FireFox which offer method for choosing file. This method calls Win API function GetOpenFileName
. When dialog "Open File" is shown and I do not switch to other window then all works ok. If I clicks browser window then all is blocked and after some time I see message that plugin has crashed. This problem is only in FireFox and is absent in Chrome and Safari. I think it is connected with fact that GetOpenFileName
has own message loop.
Is there simple way to correct this behaviour?
e.g. function SHBrowseForFolder
works fine in FireFox.
In FireFox sources I see class MessageLoop
and methods SetNestableTasksAllowed()
which probably can solve this problem (at least this conclusion can be done from explanation in header). But in xulrunner-sdk-13.0.1 there is no header with class MessageLoop
although there is xul.lib with function GetIOMessageLoop
. Probably it is possible to take headers from FireFox sources but I think it will not be easy to use them in my project in VS 2010