> This line ... > window.open(display); > ... starts to open the Frame, but it will fire the windowOpened event > before the Frame has been fully set up.
More specifically, it occurs before the window has been laid out by the display (i.e. given a size). Queueing the callback ensures that the frame will have a non-zero size by the time the callback is invoked.
