The Edge browser creation uses Display.readAndDispath() to process the
OS events for browser instantiation. When there are other asynchronous
executions scheduled while the browser is being initialized, they may be
processed in between the processing of browser-instantiating OS events
if too much time elapses between them. In case such an asynchronous
execution changes a state that makes the browser instantiation fail,
such as disposing the composite parent of the browser, an exception
occurs.
In order to avoid the processing of asynchronous executions during
browser instantiation, the change ensures that readAndDisplay() is only
called when an OS event is present to be processed.