Bug 1002843 - Wait until important parts have been initialized before restoring tabs into windows r=smacleod