[tor-browser#43258] Fixed LifeCycle error on update.

This commit is contained in:
hackademix 2024-10-30 09:58:10 +01:00
parent bdc3787d9d
commit f9698a748f
No known key found for this signature in database
GPG Key ID: 231A83AFDA9C2434
1 changed files with 2 additions and 1 deletions

View File

@ -112,6 +112,7 @@ var LifeCycle = (() => {
})); }));
try { try {
const data = toBase64(new Uint8Array(cypherText));
// random attribute name for DOM storage // random attribute name for DOM storage
const attr = await sha256(data.concat(uuid())); const attr = await sha256(data.concat(uuid()));
@ -133,7 +134,7 @@ var LifeCycle = (() => {
try { try {
stored = await Messages.send("store", { stored = await Messages.send("store", {
url, url,
data: toBase64(new Uint8Array(cypherText)), data,
attr, attr,
}, },
{tabId, frameId: 0} {tabId, frameId: 0}