From a4f8d3f467c0dfafe6e4b6fd8eb93518adc2ccfc Mon Sep 17 00:00:00 2001 From: "mozilla.mano@sent.com" Date: Tue, 21 Aug 2007 22:00:41 -0700 Subject: [PATCH] Bug 309860 - Dragging a url to the tabstrip ignores the shift key. r=mconnor. --- browser/base/content/tabbrowser.xml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml index 2d5fefcf89c..a1ee75c634b 100644 --- a/browser/base/content/tabbrowser.xml +++ b/browser/base/content/tabbrowser.xml @@ -1524,7 +1524,16 @@ if (aEvent.originalTarget.localName != "tab") { // We're adding a new tab. - this.loadOneTab(getShortcutOrURI(url)); + var bgLoad = true; + try { + bgLoad = this.mPrefs.getBoolPref("browser.tabs.loadInBackground"); + } + catch (e) { } + + if (aEvent.shiftKey) + bgLoad = !bgLoad; + + this.loadOneTab(getShortcutOrURI(url), null, null, null, bgLoad); } else { // Load in an existing tab.