зеркало из https://github.com/mozilla/gecko-dev.git
Bug 603229 - Can't init on DOMContentLoaded when opening an image [r=mfinkle]
--HG-- extra : rebase_source : e3dd1da645d695aa862b2d8870eb677c9b9da731
This commit is contained in:
Родитель
4ca865ae6a
Коммит
286fb97dab
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче