Bug 309860 - Dragging a url to the tabstrip ignores the shift key. r=mconnor.

This commit is contained in:
mozilla.mano@sent.com 2007-08-21 22:00:41 -07:00
parent 9766533191
commit a4f8d3f467

View File

@ -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.