Bug 622422 - Allow initial pageshow event to complete before firing UIReadyDelayed event [r=mbrubeck]

This commit is contained in:
Mark Finkle 2011-01-02 11:56:56 -05:00
parent 8fbb97711c
commit 3b0afa9537

View File

@ -476,9 +476,11 @@ var BrowserUI = {
messageManager.removeMessageListener("pageshow", arguments.callee, true);
let event = document.createEvent("Events");
event.initEvent("UIReadyDelayed", true, false);
window.dispatchEvent(event);
setTimeout(function() {
let event = document.createEvent("Events");
event.initEvent("UIReadyDelayed", true, false);
window.dispatchEvent(event);
}, 0);
});
// Delay the panel UI and Sync initialization.