Skip to content

[Bug]: PPOM - Background errors: Cannot assign to read only property version of object, Failed to execute 'digest' on 'SubtleCrypto': from ppom-controller #22991

@seaona

Description

@seaona

Describe the bug

Problem: whenever I cleared the storage, switch to Sepolia and switch back to Ethereum mainnet I got the following errors:

  • Error in reading file: Failed to execute 'digest' on 'SubtleCrypto': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'. in metamask-controlller
  • `Error in writing file: Cannot assign to read only property 'version' of object '[object Object]' in metamask-controlller
  • Cannot assign to read only property version of object in develop previous to the ppom update change

The functionality seems to be preserved, and malicious warnings continue to be displayed

Expected behavior

No response

Screenshots/Recordings

digest.mp4

Steps to reproduce

  1. Open the background console and the Application tab
  2. Select mainnet
  3. Clear the site data
  4. Switch to Goerli
  5. Switch back to mainnet
  6. See background errors

Error messages or log output

No response

Version

It's present in prod 11.9.4 but may be earlier too

Build type

None

Browser

Chrome

Operating system

Linux

Hardware wallet

No response

Additional context

No response

Severity

No response

Metadata

Metadata

Assignees

Labels

Sev3-lowLow severity; minimal to no impact upon usersrelease-11.9.4Issue or pull request that will be included in release 11.9.4team-confirmationsPush issues to confirmations teamteam-confirmations-secure-ux-deprecatedDEPRECATED: please use "team-confirmations" insteadtype-bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions