Bug 1094248 - Process remaining Promise microtasks before blocking inside a nested event loop in the main thread. r=bz