From 684571ce6862a98450038faab043c160685146b2 Mon Sep 17 00:00:00 2001 From: YFdyh000 Date: Sat, 12 Sep 2015 01:10:08 +0800 Subject: [PATCH] Fix bookmarks items cannot be opened in recent Nightly, #50 * `TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them tulib.js line 105 > eval:2:5` * This seems to be due to the https://bugzilla.mozilla.org/show_bug.cgi?id=1175394 --- chrome/content/utilityOverlay.js | 2 +- install.rdf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/utilityOverlay.js b/chrome/content/utilityOverlay.js index d8b4733..d34db7d 100644 --- a/chrome/content/utilityOverlay.js +++ b/chrome/content/utilityOverlay.js @@ -131,7 +131,7 @@ //²à±ßÀ¸ÊéÇ© TU_hookCode("TU_openNodeWithEvent", /_openNodeIn\((.*)\)/, function(s, s1) s.replace(s1, (s1 = s1.split(","), s1.push("aEvent || {}"), s1.join()))); TU_hookCode("TU__openNodeIn", - ["{", "var aEvent = arguments[arguments.callee.length];"], + ["{", "var aEvent = arguments[arguments.length - 1];"], ['aWhere == "current"', '(aEvent ? !aEvent.button && !aEvent.ctrlKey && !aEvent.altKey && !aEvent.shiftKey && !aEvent.metaKey : $&)'] ); diff --git a/install.rdf b/install.rdf index b051986..3b5fb2d 100644 --- a/install.rdf +++ b/install.rdf @@ -4,7 +4,7 @@ tabutilsfixed@addon.cn 2 Tab Utilities Fixed - 1.5.2015.09.11 + 1.5.2015.09.12 YFdyh000 ithinc (Former author) Phil Tsarik