You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chrome Version 90.0.4430.93 (Official Build) (x86_64)
Steps to reproduce:
Visit webwormhole.io
Create a phrase + join
Observe an uncaught exception in the console
Attempting to join from other clients fails
Uncaught (in promise) bad code
(anonymous) @ webwormhole.js:19
(anonymous) @ webwormhole.js:18
Wormhole @ webwormhole.js:17
connect @ main.js:358
Possibly related is that the Wasm loader fails due to an invalid/incompatible CSP - Content Security Policy of your site blocks the use of 'eval' in JavaScript is reported by Chrome only when we execute the below:
async function wasmready() {
if (!hacks.nowasm) {
const go = new Go();
const wasm = await WebAssembly.instantiateStreaming( // Content-Security-Policy warning triggers here
fetch(hacks.wasmURL),
go.importObject,
);
go.run(wasm.instance);
}
}
That Chrome warning is almost certainly a red-herring. The Wasm actually runs fine despite it. It's been annoying me for almost a year! Proof for your case: the code that encodes and decodes the phrase is in Wasm. So if you got that far your browser is running Wasm fine.
Now why it failed: "bad code" error mean we couldn't decode the phrase. Possibly a typo? I know our wordlist still has a few words that sounds similar.
The fact that it is uncaught is definitely a regression though! This used to print a more helpful message.
for the record: this is an issue in the instructions in the initial prompt.
it's not clear enough that the tool picks the phrase for the user, so folks who haven't used it before often try to pick their own, e.g. #85.
saljam
changed the title
webwormhole.io - uncaught promise prevents connection from being established
web: make flow or message make it clear that the tool generates the phrase for you
May 23, 2021
Chrome Version 90.0.4430.93 (Official Build) (x86_64)
Steps to reproduce:
Possibly related is that the Wasm loader fails due to an invalid/incompatible CSP -
Content Security Policy of your site blocks the use of 'eval' in JavaScript
is reported by Chrome only when we execute the below:You need to (unfortunately...) allow
unsafe-eval
to execute Wasm per WebAssembly/content-security-policy#7The text was updated successfully, but these errors were encountered: