On Apr 13, 10:56 am, Benjamin Smedberg <[email protected]> wrote: > On 4/13/10 1:44 PM, hap497 wrote: > > > Is main thread same as 'UI' thread? > > Yes. > > > For example, if I click a button to submit a form. These will happen: > > 1. build a query string > > 2. send the HTTP Post/Get > > This step may occur on multiple threads. Our network engine internally uses > threading so that the main thread is never blocked on network activity. But > that threading is entirely internal to necko and isn't visible to the client > code (the DOM). > > > 3. get the html data back. > > 4. relayout the page. > > > Are all these running in the Main Thread? > > Yes. > > --BDS
Thank you Benjamin. But how that works with Multiple Window case with popup dialog? 1. I have 2 Windows in Firefox, there should be 1 Main/UI Thread, right? 2. In 1 window, I load a page which has a JavaScript confirm dialog, this should block the Main/UI Thread. My question is why I can still interact the FF in the 2nd window (e.g. click a link)? If the Main/UI thread is blocked by moral dialog in #2? _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
