Bug 779054 - SocialAPI sidebar is added to chromehidden window on session restore. r=felipe
authorJared Wein <jwein@mozilla.com>
Wed, 03 Oct 2012 23:59:32 -0700
changeset 109324 6134705b1a11fad73266562e0bbdc3cae743fe62
parent 109323 6cb9dded5fed50f0e2856402fc42f56fb09bfe6e
child 109325 d946b507ebc2a6fb46ff4c17f8ff533b43adea92
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersfelipe
bugs779054
milestone18.0a1
Bug 779054 - SocialAPI sidebar is added to chromehidden window on session restore. r=felipe
browser/base/content/browser-social.js
--- a/browser/base/content/browser-social.js
+++ b/browser/base/content/browser-social.js
@@ -726,17 +726,17 @@ var SocialSidebar = {
     return Social.uiVisible && Social.provider.sidebarURL && !this.chromeless;
   },
 
   // Whether this is a "chromeless window" (e.g. popup window). We don't show
   // the sidebar in these windows.
   get chromeless() {
     let docElem = document.documentElement;
     return docElem.getAttribute('disablechrome') ||
-           docElem.getAttribute('chromehidden').indexOf("extrachrome") >= 0;
+           docElem.getAttribute('chromehidden').contains("toolbar");
   },
 
   // Whether the user has toggled the sidebar on (for windows where it can appear)
   get enabled() {
     return Services.prefs.getBoolPref("social.sidebar.open");
   },
 
   dispatchEvent: function(aType, aDetail) {