Bug 897160 - Set a minimum width for the Firefox window. r=mconley
authorJared Wein <jwein@mozilla.com>
Fri, 16 Aug 2013 14:03:43 -0400
changeset 143021 c0471a86a81a064dac63d3dd2910b7b28b1fd716
parent 143020 38dbe545e3d7c8095236281f047dd4f3bb27289f
child 143022 3fcd3420e28d1281c4cce52d21d07963a804b64e
push id32605
push userphilringnalda@gmail.com
push dateMon, 19 Aug 2013 00:51:46 +0000
treeherdermozilla-inbound@7f882e063eaf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmconley
bugs897160
milestone26.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 897160 - Set a minimum width for the Firefox window. r=mconley
browser/base/content/browser.css
browser/components/tabview/test/browser_tabview_bug625269.js
--- a/browser/base/content/browser.css
+++ b/browser/base/content/browser.css
@@ -1,15 +1,23 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
 @namespace html url("http://www.w3.org/1999/xhtml");
 
+#main-window:not([chromehidden~="toolbar"]) {
+%ifdef XP_MACOSX
+  min-width: 425px;
+%else
+  min-width: 390px;
+%endif
+}
+
 searchbar {
   -moz-binding: url("chrome://browser/content/search/search.xml#searchbar");
 }
 
 .browserStack > browser[remote="true"] {
   -moz-binding: url("chrome://global/content/bindings/remote-browser.xml#remote-browser");
 }
 
--- a/browser/components/tabview/test/browser_tabview_bug625269.js
+++ b/browser/components/tabview/test/browser_tabview_bug625269.js
@@ -1,14 +1,14 @@
 /* Any copyright is dedicated to the Public Domain.
    http://creativecommons.org/publicdomain/zero/1.0/ */
 
 function test() {
   waitForExplicitFinish();
-  newWindowWithTabView(onTabViewShown);
+  newWindowWithTabView(onTabViewShown, null, 850);
 }
 
 function onTabViewShown(win) {
   registerCleanupFunction(function () win.close());
 
   let contentWindow = win.TabView.getContentWindow();
   let currentGroup = contentWindow.GroupItems.getActiveGroupItem();