fune/browser/base/content/test/tabPrompts
Boris Zbarsky fee88c0518 Bug 1167575. Ensure that we don't exit modal state while we're still waiting on a Gecko runnable in the event-loop-spinning code in nsPrompter.js. r=dolske
If we synchronously shut down the prompt, that will exit modal state while we're
still processing our mouse or key event, which happens _before_ Gecko runnable
processing.  Exiting modal state will generally post a runnable to run timeouts,
so we can end up processing that runnable before we return from processNextEvent
and unwind to whatever code did the alert() call on the web page.  The upshot is
that the webpage will see timeouts fire before the alert() call returns.

If we exit modal state off a Gecko runnable instead, that will ensure that we
return to the nsPrompter code immediately after exiting modal state, see that
the prompt is no longer active, and return to the calling web page code _before_
processing any more runnables.
2016-09-01 21:31:22 -04:00
..
browser.ini Bug 1171746 - Ensure tab-specific panels close when you switch the tab. r=jaws 2016-08-19 07:27:00 -04:00
browser_closeTabSpecificPanels.js Bug 1298559 - Enable eslint for /browser/base/content/test/ r=mattn 2016-08-31 12:53:24 -04:00
browser_multiplePrompts.js Bug 1167575. Ensure that we don't exit modal state while we're still waiting on a Gecko runnable in the event-loop-spinning code in nsPrompter.js. r=dolske 2016-09-01 21:31:22 -04:00
browser_openPromptInBackgroundTab.js Bug 1167575. Ensure that we don't exit modal state while we're still waiting on a Gecko runnable in the event-loop-spinning code in nsPrompter.js. r=dolske 2016-09-01 21:31:22 -04:00
openPromptOffTimeout.html