News for hackers. Stuff that matters.
Re:WebAssembly by pjmlp on Sunday February 28, 2021 @01:07AM (#26291062)
You cannot disable wasm.
Re:WebAssembly by AgentME on Sunday February 28, 2021 @01:52AM (#26291223)
This isn't true. If you block javascript from running, then that will include blocking WebAssembly. WebAssembly is only started through javascript, and if things ever changes so that webpages can include WebAssembly directly, presumably it will also be controlled by the same browser settings that control whether javascript is executed.
Re:WebAssembly by pjmlp on Sunday February 28, 2021 @02:50AM (#26291515)
Yeah, but then you block everything and not only wasm.
Re:WebAssembly by AgentME on Monday March 01, 2021 @07:09AM (#26301971)
Why would you want to block wasm specifically? There's nothing it can do that javascript can't.
Re:WebAssembly by rasz on Sunday February 28, 2021 @04:54AM (#26292100)

    WebAssembly
    WebAssembly {compile: ƒ, validate: ƒ, instantiate: ƒ, compileStreaming: ƒ, instantiateStreaming: ƒ, …}
    delete WebAssembly
    Uncaught ReferenceError: WebAssembly is not defined
Re:WebAssembly by pjmlp on Sunday February 28, 2021 @05:19AM (#26292233)
Great, now do that in a check box like JavaScript settings on browsers, without extensions.
Re:WebAssembly by rasz on Sunday February 28, 2021 @09:51AM (#26293749)
I have this running as a uBO scriptlet injected into every website before content javascript starts to execute

    *##+js(myscript)
does various things, disables webassembly, websocket, AudioContext, serviceworkers, openDatabase and indexedDB, navigator.sendBeacon and window.opener, some fingerprinting randomization stuff, etc. I wish there was a Browser on the market actually letting you configure such things _per domain_ as Opera Presto used to, alas we are on our own now :(.