Bug 1027232 - Wait for the homescreen to be ready

Can `!window` be `false` in this context?