Bug 603229 - Can't init on DOMContentLoaded when opening an image [r=mfinkle]

--HG--
extra : rebase_source : e3dd1da645d695aa862b2d8870eb677c9b9da731
This commit is contained in:
Matt Brubeck 2010-10-11 08:13:33 -07:00
Родитель 4ca865ae6a
Коммит 286fb97dab
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -447,9 +447,12 @@ var BrowserUI = {
// Push the panel initialization out of the startup path
// (Using a message because we have no good way to delay-init [Bug 535366])
messageManager.addMessageListener("DOMContentLoaded", function() {
messageManager.addMessageListener("pageshow", function() {
if (getBrowser().currentURI.spec == "about:blank")
return;
// We only want to delay one time
messageManager.removeMessageListener("DOMContentLoaded", arguments.callee, true);
messageManager.removeMessageListener("pageshow", arguments.callee, true);
// We unhide the panelUI so the XBL and settings can initialize
Elements.panelUI.hidden = false;