metamask-extension icon indicating copy to clipboard operation
metamask-extension copied to clipboard

[DRAFT] poc of integrating snow into metamask

Open weizman opened this issue 3 years ago • 0 comments

This is a working PoC of snow integration.

it installs Snow dependency, loads it as vetted shim within every relevant html file of the extension (popup, home, background, notification) and then uses it to log new windows intercepted by it:

Screen Shot 2022-07-22 at 14 53 58

the only adjustment that was needed in order for Snow to work smoothly with MM was changing a specific behaviour of LM which tries to delete all own properties of primordials in the webpage (for a reason i don't understand yet), a behaviour that collides with the properties Securely (a Snow dep) writes to these primordials and expects them to stay there.

the adjustment was to simply prevent LM from deleting properties that are of undefined value (Securely's properties are undefined until Securely is turned on)

weizman avatar Jul 22 '22 11:07 weizman