Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

Cannot write properties to window.crypto #13393

Closed
knpwrs opened this issue Jul 8, 2015 · 2 comments
Closed

Cannot write properties to window.crypto #13393

knpwrs opened this issue Jul 8, 2015 · 2 comments
Labels

Comments

@knpwrs
Copy link

knpwrs commented Jul 8, 2015

Try doing the following in the Phantom debug console:

window.crypto.foo = 'foo';

The string 'foo' is printed out indicating the value which was written, however, window.crypto.foo is undefined if you try to access the value.

Object.isFrozen(window.crypto) returns false as it does in Chrome. Chrome, however, allows us to write properties to the window.crypto object.

The reason we need to be able to write to window.crypto is so we can polyfill window.crypto.subtle which is implemented by Chrome but not Phantom. Is there some sort of CLI flag to allow us to write to window.crypto or if not is it possible to fix this?

We are using Phantom 1.9.8.

@ghost
Copy link

ghost commented Jul 27, 2017

Seems to be fixed in 2.1.1

@stale stale bot added the stale label Dec 26, 2019
@stale
Copy link

stale bot commented Dec 29, 2019

Due to our very limited maintenance capacity, we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed (see #15395 for more details). In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution!

@stale stale bot closed this as completed Dec 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant