mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-07 23:43:37 +00:00
Bug 499668 - useless try/catch block in handleLinkClick(). r=gavin
This commit is contained in:
parent
3c77fb3f58
commit
7d2367ab27
@ -4954,13 +4954,7 @@ function handleLinkClick(event, href, linkNode)
|
||||
|
||||
return false;
|
||||
case 1: // if middle button clicked
|
||||
var tab;
|
||||
try {
|
||||
tab = gPrefService.getBoolPref("browser.tabs.opentabfor.middleclick")
|
||||
}
|
||||
catch(ex) {
|
||||
tab = true;
|
||||
}
|
||||
var tab = gPrefService.getBoolPref("browser.tabs.opentabfor.middleclick");
|
||||
if (tab)
|
||||
openNewTabWith(href, doc, null, event, false);
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user