fix #626: cast message userContextId to string

This commit is contained in:
groovecoder 2017-06-22 15:44:55 -05:00 committed by Jonathan Kingston
parent 1cc3ab83b9
commit e28b25e04c

View file

@ -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,