From 379602699558abc754d4a80b8b2555c878c284f6 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Tue, 5 Jul 2016 14:54:18 +0900 Subject: [PATCH] Override SessionStoreInternal's method instead of proxy's one --- modules/utils.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/utils.js b/modules/utils.js index ec5f8294..af093c60 100644 --- a/modules/utils.js +++ b/modules/utils.js @@ -800,9 +800,9 @@ prefs.addPrefListener(TreeStyleTabUtils); }); } - let { SessionStore } = Cu.import('resource:///modules/sessionstore/SessionStore.jsm', {}); - SessionStore.__treestyletab__duplicateTab = SessionStore.duplicateTab; - SessionStore.duplicateTab = function(aWindow, aTab, aDelta = 0) { + let { SessionStoreInternal } = Cu.import('resource:///modules/sessionstore/SessionStore.jsm', {}); + SessionStoreInternal.__treestyletab__duplicateTab = SessionStoreInternal.duplicateTab; + SessionStoreInternal.duplicateTab = function(aWindow, aTab, aDelta = 0) { aWindow.gBrowser.treeStyleTab.onBeforeTabDuplicate(aWindow, aTab, aDelta); return this.__treestyletab__duplicateTab.call(this, aWindow, aTab, aDelta); };