Bug 814404 - Hide useless menu item in non-browser windows on Mac. r=gavin

--HG--
extra : rebase_source : 4aebcaa31a6cf45fa1949eba731ad5c4d2e05188
This commit is contained in:
Jared Wein 2012-12-11 15:41:42 -08:00
parent 7eab3ec7a5
commit 0834b2d12a
2 changed files with 7 additions and 0 deletions

View File

@ -137,6 +137,11 @@ let SocialUI = {
}
},
nonBrowserWindowInit: function SocialUI_nonBrowserInit() {
// Disable the social menu item in non-browser windows
document.getElementById("menu_socialAmbientMenu").hidden = true;
},
// Miscellaneous helpers
showProfile: function SocialUI_showProfile() {
if (Social.haveLoggedInUser())

View File

@ -1645,6 +1645,8 @@ var gBrowserInit = {
}
}
SocialUI.nonBrowserWindowInit();
this._delayedStartupTimeoutId = setTimeout(this.nonBrowserWindowDelayedStartup.bind(this), 0);
},