Playwright: [BUG] Windows WebKit doesn't have WebAssembly

Created on 8 Jul 2020  Â·  3Comments  Â·  Source: microsoft/playwright

Context:

  • Playwright Version: 1.1.1
  • Operating System: Windows
  • Node version: 14.4.0
  • Browser: WebKit
  • Extra: Process running inside GitHub Actions; code running in a ServiceWorker context.

Code Snippet

(async function () {
  const response = await fetch(url)
  const bytes = await response.arrayBuffer()
  const module = await WebAssembly.compile(bytes)
  return module
})()

Describe the bug

Throws an Error with the message Can't find variable: WebAssembly. Code works on Linux WebKit and macOS WebKit – WebAssembly is found.

Most helpful comment

@myobie Yes, there's no webassembly indeed. We have a summary table on what's in there and what's not for every platform:

https://github.com/microsoft/playwright/blob/master/docs/development/webkit.md

I don't think this is something that'll change in near future. +cc @yury-s to make sure I understand it right.

All 3 comments

@myobie Yes, there's no webassembly indeed. We have a summary table on what's in there and what's not for every platform:

https://github.com/microsoft/playwright/blob/master/docs/development/webkit.md

I don't think this is something that'll change in near future. +cc @yury-s to make sure I understand it right.

WebAssembly is currently disabled in WebKit Windows port upstream. I don't think anyone is actively working on enabling it there so it will likely be missing in WebKit Windows in the near future.

Gah, I missed that feature table. Thanks for the link and info. 🙇

Was this page helpful?
0 / 5 - 0 ratings