Bug 982396 - Initialize PlacesToolbarHelper _shouldWrap before using it. r=mak
authorChris Peterson <cpeterson@mozilla.com>
Tue, 29 Apr 2014 21:09:36 -0700
changeset 202379 8e6d6acb1efef804a3a281db2f7c9274ed8bf7a5
parent 202378 bce07a6dc1774e976b145b43e62e617195cc1f31
child 202380 74112a6891303ac0ff9d2ed2ef235e84bc188edd
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmak
bugs982396
milestone32.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 982396 - Initialize PlacesToolbarHelper _shouldWrap before using it. r=mak
browser/base/content/browser-places.js
--- a/browser/base/content/browser-places.js
+++ b/browser/base/content/browser-places.js
@@ -917,16 +917,17 @@ let PlacesToolbarHelper = {
     if (!toolbar || toolbar.collapsed || this._isCustomizing ||
         getComputedStyle(toolbar, "").display == "none")
       return;
 
     new PlacesToolbar(this._place);
     if (forceToolbarOverflowCheck) {
       viewElt._placesView.updateOverflowStatus();
     }
+    this._shouldWrap = false;
     this._setupPlaceholder();
   },
 
   uninit: function PTH_uninit() {
     CustomizableUI.removeListener(this);
   },
 
   customizeStart: function PTH_customizeStart() {