mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 08:35:26 +00:00
100706. Tabbrowser stuff. r=jag, sr=blake
This commit is contained in:
parent
db0dbf1625
commit
19a0b4fae1
@ -160,7 +160,14 @@
|
||||
return true; // do nothing
|
||||
return false;
|
||||
case 1: // if middle button clicked
|
||||
if (pref && pref.GetBoolPref("middlemouse.openNewWindow")) { // and the pref is on
|
||||
if (pref && pref.GetBoolPref("browser.tabs.opentabfor.middleclick") && getBrowser &&
|
||||
getBrowser() && getBrowser().localName == "tabbrowser") {
|
||||
var t = getBrowser().addTab(href); // open link in new tab
|
||||
getBrowser().selectedTab = t;
|
||||
event.preventBubble();
|
||||
return true;
|
||||
}
|
||||
else if (pref && pref.GetBoolPref("middlemouse.openNewWindow")) {
|
||||
openNewWindowWith(href); // open link in new window
|
||||
event.preventBubble();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user