LavaMoat / LavaDome

Secure DOM trees isolation and encapsulation leveraging ShadowDOM
https://lavamoat.github.io/LavaDome/packages/core/demo/
MIT License
16 stars 3 forks source link

Downgrade to unsafe random generation under testing envs #30

Closed weizman closed 4 months ago

weizman commented 4 months ago

Following #29 where we introduced usage of crypto.randomUUID, we now have to make sure we downgrade to more native APIs when it isn't found - this seems to happen under non-browser testing infras such as nodejs emulators. We want to allow those to still test with LavaDome, but to throw at production.