Consider the fact that XSS is some other part of the application that the reviewed crypto plugin JS is part of has an XSS in it.
Yes, but just because it can be mitigated doesn't mean that it is mitigated.
Yes, but just because it can be mitigated doesn't mean that it is mitigated.
Sure, but I just want to point to the fact that this is a solvable problem. A lot of people talk as if it is some sort of insurmountable obstacle, whereas I think responsible programmers can solve it and move on.
A defence is always only as strong as the weakest link, and an attacker usually has all the time in the world to find and exploit it.
Optimism has no place here.