From d228f092ad5e0df1b5094d85a1ca6cb9a471a230 Mon Sep 17 00:00:00 2001 From: Martin Dybdal Date: Sat, 3 Dec 2011 13:02:38 +0100 Subject: [PATCH] buffer: make sure first buffer in window is type="content-primary" This reverts a change made in b432b8233d98df6aafb2382070cef2f63c239910, which reintroduced a bug which was corrected in 6231db01a3a144e29405da3850c3b15c551c9fc7 See the commit log for the latter for further explanation. --- modules/buffer.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/buffer.js b/modules/buffer.js index 0d47794..1998900 100644 --- a/modules/buffer.js +++ b/modules/buffer.js @@ -68,7 +68,10 @@ function buffer (window) { var element = create_XUL(window, "vbox"); element.setAttribute("flex", "1"); var browser = create_XUL(window, "browser"); - browser.setAttribute("type", "content"); + if (window.buffers.count == 0) + browser.setAttribute("type", "content-primary"); + else + browser.setAttribute("type", "content"); browser.setAttribute("flex", "1"); browser.setAttribute("autocompletepopup", "popup_autocomplete"); element.appendChild(browser); -- 2.11.4.GIT