From e28b25e04ce44fb328d699ea3b53d7b08f4e4713 Mon Sep 17 00:00:00 2001 From: groovecoder Date: Thu, 22 Jun 2017 15:44:55 -0500 Subject: [PATCH] fix #626: cast message userContextId to string --- webextension/background.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/webextension/background.js b/webextension/background.js index 754fd7c..9ac0f85 100644 --- a/webextension/background.js +++ b/webextension/background.js @@ -197,6 +197,12 @@ const assignManager = { async _setOrRemoveAssignment(tabId, pageUrl, userContextId, remove) { let actionName; + + // https://github.com/mozilla/testpilot-containers/issues/626 + // Context menu has stored context IDs as strings, so we need to coerce + // the value to a string for accurate checking + userContextId = String(userContextId); + if (!remove) { await this.storageArea.set(pageUrl, { userContextId,