The application execution context is distinct from the document execution context. The application execution context processes the Windows message loop.