On 4/15/10 12:23 PM, hap497 wrote:
Thank you for your answer. You said " It doesn't. It blocks the code that called it." I have tried captured a stack dump in debugger. The function EmbedPrompter::Create() is called from g_main_context_dispatch(). So if EmbedPrompter::Create() is blocked by the modal dialog of the JavaScript Alert, it blocks the main UI thread, right?
It blocks the bit of code that was executing on the UI thread when the alert came up.
But since the alert itself spins the main thread event loop, other events are processed on the main thread while the alert is up. When the alert goes down, control unwinds back to the code that put up the alert.
-Boris _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
