Bug 779054 - SocialAPI sidebar is added to chromehidden window on session restore. r=felipe, a=gavin
authorJared Wein <jwein@mozilla.com>
Wed, 03 Oct 2012 23:59:32 -0700
changeset 107061 dcda58d59a8d26d6b9585e5c8f3bbb9930469e70
parent 107060 c3e72dd3d163982baf3f5c75466bfc351acd1f50
child 107062 7dd136adc519c91490002b0ae6c6a075d7a8ca5b
push id2206
push usergsharp@mozilla.com
push dateFri, 05 Oct 2012 14:35:53 +0000
treeherdermozilla-aurora@52b3f1c7ca9a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfelipe, gavin
bugs779054
milestone17.0a2
Bug 779054 - SocialAPI sidebar is added to chromehidden window on session restore. r=felipe, a=gavin
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) {