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 109200 6134705b1a11fad73266562e0bbdc3cae743fe62
parent 109199 6cb9dded5fed50f0e2856402fc42f56fb09bfe6e
child 109201 d946b507ebc2a6fb46ff4c17f8ff533b43adea92
push id15901
push userjwein@mozilla.com
push dateThu, 04 Oct 2012 07:00:25 +0000
treeherdermozilla-inbound@d946b507ebc2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfelipe
bugs779054
milestone18.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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) {