Suppress "too much recursion" error
This commit is contained in:
parent
d594fdf36b
commit
3f59a46efe
@ -75,12 +75,14 @@ var TreeStyleTabWindowHelper = {
|
||||
Object.keys(window.__treestyletab__openLinkIn_extraParams).forEach(function(aKey) {
|
||||
aParams[aKey] = window.__treestyletab__openLinkIn_extraParams[aKey];
|
||||
});
|
||||
var result;
|
||||
try {
|
||||
return window.__treestyletab__openLinkIn.apply(this, [aUrl, aWhere, aParams].concat(aArgs));
|
||||
result = window.__treestyletab__openLinkIn.apply(this, [aUrl, aWhere, aParams].concat(aArgs));
|
||||
}
|
||||
catch(e) {
|
||||
}
|
||||
finally {
|
||||
delete window.__treestyletab__openLinkIn_extraParams;
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
window.__treestyletab__handleLinkClick = window.handleLinkClick;
|
||||
@ -89,12 +91,14 @@ var TreeStyleTabWindowHelper = {
|
||||
event : aEvent,
|
||||
linkNode : aLinkNode
|
||||
};
|
||||
var result;
|
||||
try {
|
||||
return window.__treestyletab__handleLinkClick.apply(this, [aEvent, aHref, aLinkNode].concat(aArgs));
|
||||
result = window.__treestyletab__handleLinkClick.apply(this, [aEvent, aHref, aLinkNode].concat(aArgs));
|
||||
}
|
||||
catch(e) {
|
||||
}
|
||||
finally {
|
||||
delete window.__treestyletab__openLinkIn_extraParams;
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
this.overrideExtensionsPreInit(); // windowHelperHacks.js
|
||||
|
Loading…
Reference in New Issue
Block a user