Bug 876614 - Queue up the incomming message if we're currently dispatching a message to avoid nested event loop (e.g. via alert()). r=jlebar a=leo+