Bug 1024253 fix chat tests on ubuntu, r=markh
authorShane Caraveo <scaraveo@mozilla.com>
Fri, 08 May 2015 08:07:43 -0700
changeset 274503 ff1acf6219d7a0e561b774447a4116b89419016f
parent 274502 55dd223e022ea3901fc605de7c905eae8cd04e3f
child 274504 455e500b9b17a342e99dc8c0d818309c430549bd
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmarkh
bugs1024253
milestone40.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 1024253 fix chat tests on ubuntu, r=markh
browser/base/content/test/social/head.js
--- a/browser/base/content/test/social/head.js
+++ b/browser/base/content/test/social/head.js
@@ -599,17 +599,19 @@ function resizeAndCheckWidths(first, sec
     m.observe(third, {attributes: true });
     // and just in case we are already at the right size, explicitly call the
     // observer.
     collapsedObserver(undefined, m);
   }, count);
 }
 
 function getChatBar() {
-  return document.getElementById("pinnedchats");
+  let cb = document.getElementById("pinnedchats");
+  cb.hidden = false;
+  return cb;
 }
 
 function getPopupWidth() {
   let chatbar = getChatBar();
   let popup = chatbar.menupopup;
   ok(!popup.parentNode.collapsed, "asking for popup width when it is visible");
   let cs = document.defaultView.getComputedStyle(popup.parentNode);
   let margins = parseInt(cs.marginLeft) + parseInt(cs.marginRight);