Failure to load/"Unable to restore session" error on Safari 15 #27445
Labels
A-Element-R
Issues affecting the port of Element's crypto layer to Rust
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Critical
Prevents work, causes data loss and/or has no workaround
S-Minor
Impairs non-critical functionality or suitable workarounds exist
T-Defect
Not being an Apple user myself, I can't reproduce this, but we have had some reports from users on Safari 15 of "Unable to restore session" errors.
Safari 15 is not one of our supported browsers but we should fail more gracefully.
It appears that, before Element R, you would get an application which mostly worked, but still didn't support encryption (rageshakes showed:
Failed to load Olm
). This is now worse, because failure to instantiate the crypto stack means that the application doesn't load at all (see also #27424).[Context: the cause of the failure is our use of a
script-src: "wasm-unsafe-eval"
content security policy, which is unsupported on Safari 15 This is is required for any WASM to be loaded (see MDN. In theory you can also usescript-src: "unsafe-eval"
, but this is dangerous).]The text was updated successfully, but these errors were encountered: