From d824402f3d7cf3aebf9d520603468450b881b35f Mon Sep 17 00:00:00 2001 From: Piro / YUKI Hiroshi Date: Wed, 24 Aug 2016 02:12:58 +0900 Subject: [PATCH] Store only hashed version for selection text --- content/treestyletab/content-utils.js | 2 +- modules/window.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/content-utils.js b/content/treestyletab/content-utils.js index 9eb88a4d..1efa6d3c 100644 --- a/content/treestyletab/content-utils.js +++ b/content/treestyletab/content-utils.js @@ -56,7 +56,7 @@ return; global.sendAsyncMessage(TreeStyleTabConstants.MESSAGE_TYPE, { command : TreeStyleTabConstants.COMMAND_REPORT_SELECTION_CHANGE, - text : aEvent.target.getSelection().toString() + text : getHashString(aEvent.target.getSelection().toString().trim()) }); return; diff --git a/modules/window.js b/modules/window.js index 46c773a8..8f6b92c4 100644 --- a/modules/window.js +++ b/modules/window.js @@ -295,7 +295,7 @@ TreeStyleTabWindow.prototype = inherit(TreeStyleTabBase, { shouldOpenSearchResultAsChild : function TSTWindow_shouldOpenSearchResultAsChild(aTerm) { - aTerm = aTerm.trim(); + aTerm = getHashString(aTerm.trim()); var mode = utils.getTreePref('autoAttach.searchResult'); if (mode == this.kSEARCH_RESULT_ATTACH_ALWAYS) {