Bug 641894 - Set up site menu before showing it. [r=mfinkle]

This commit is contained in:
Wes Johnston 2011-03-18 11:48:59 -07:00
Родитель 4e089512d8
Коммит c337993cd4
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -1980,15 +1980,15 @@ IdentityHandler.prototype = {
while (BrowserUI.activeDialog)
BrowserUI.activeDialog.close();
// Update the popup strings
this.setPopupMessages(this._identityBox.getAttribute("mode") || this.IDENTITY_MODE_UNKNOWN);
this._identityPopup.hidden = false;
this._identityPopup.top = BrowserUI.toolbarH - this._identityPopup.offset;
this._identityPopup.anchorTo(this._identityBox);
this._identityBox.setAttribute("open", "true");
// Update the popup strings
this.setPopupMessages(this._identityBox.getAttribute("mode") || this.IDENTITY_MODE_UNKNOWN);
BrowserUI.pushPopup(this, [this._identityPopup, this._identityBox, Elements.toolbarContainer]);
BrowserUI.lockToolbar();
},