Bug 101955: Middle-click -> Open in new tab/window fails for Mail/News URLs, r=sdagley, sr=hewitt

This commit is contained in:
jaggernaut%netscape.com 2006-07-29 05:39:57 +00:00
Родитель b3ed775d6a
Коммит 0358146c80
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -184,8 +184,8 @@
switch (event.button) {
case 0: // if left button clicked
if (event.metaKey || event.ctrlKey) { // and meta or ctrl are down
if (pref && pref.getBoolPref("browser.tabs.opentabfor.middleclick") && getBrowser &&
getBrowser() && getBrowser().localName == "tabbrowser") {
if (pref && pref.getBoolPref("browser.tabs.opentabfor.middleclick") &&
("getBrowser" in window) && getBrowser().localName == "tabbrowser") {
theTab = getBrowser().addTab(href, getReferrer(document)); // open link in new tab
loadInBackground = pref.getBoolPref("browser.tabs.loadInBackground");