From f9698a748f93b221b5ddb28bf589a6a2d70fac68 Mon Sep 17 00:00:00 2001 From: hackademix Date: Wed, 30 Oct 2024 09:58:10 +0100 Subject: [PATCH] [tor-browser#43258] Fixed LifeCycle error on update. --- src/bg/LifeCycle.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bg/LifeCycle.js b/src/bg/LifeCycle.js index c0972d9..9e78ec2 100644 --- a/src/bg/LifeCycle.js +++ b/src/bg/LifeCycle.js @@ -112,6 +112,7 @@ var LifeCycle = (() => { })); try { + const data = toBase64(new Uint8Array(cypherText)); // random attribute name for DOM storage const attr = await sha256(data.concat(uuid())); @@ -133,7 +134,7 @@ var LifeCycle = (() => { try { stored = await Messages.send("store", { url, - data: toBase64(new Uint8Array(cypherText)), + data, attr, }, {tabId, frameId: 0}