How does one disable webassembly in Microsoft Edge

0x0-dot-co-dot-za 1 Reputation point
2020-12-07T20:22:43.403+00:00

I've come across this guide as to how to disable webassembly on browsers.
https://github.com/stevespringett/disable-webassembly

I've tried to disable it by going to "edge://flags" and settings all flags that contains the word WebAssembly to disabled (e.g . "Experimental WebAssembly", "WebAssembly baseline compiler" etc )

However when I browse to Calculator (an example of c# winforms in the browser) , I still see wasm files and dll's being downloaded and the wasm calculator app still works in the browser.

45787-disablewasm.png
Does anyone perhaps know how one disables the WebAssembly feature/module in Microsoft Edge

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,127 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yu Zhou-MSFT 12,056 Reputation points Microsoft Vendor
    2020-12-08T06:44:07.757+00:00

    Hi @0x0-dot-co-dot-za

    I notice that you're using Edge Chromium so you can disable WebAssembly in Edge just like the Chrome/Chromium way in the link you provide:

    Launch Edge with the following command-line argument: --js-flags=--noexpose_wasm.

    You can add the argument after the Edge target in the shortcut properties, then click Apply and OK to save the change:

    46133-image.png

    After the change, when you run Edge again, WebAssembly is disabled:

    46017-image.png


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Regards,
    Yu Zhou

    0 comments No comments