Bug 1827173 Comment 2 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Just to add notes about POC: the Go code is using `http.NewRequest("GET", target, nil)` which is calls JS/DOM `fetch()` method (via Wasm imports).

The WebAssembly runtime in the Firefox does not provide any API to access the sockets or WebSockets directly. Such functionality is done via JS, which calls e.g. DOM fetch() method. The OP's POC can be reduced to use only fetch() that is called/measured from JavaScript directly, without Go and WebAssembly.
Just to add notes about POC: the Go code is using `http.NewRequest("GET", target, nil)` which calls JS/DOM `fetch()` method (via Wasm imports).

The WebAssembly runtime in the Firefox does not provide any API to access the sockets or WebSockets directly. Such functionality is done via JS, which calls e.g. DOM fetch() method. The OP's POC can be reduced to use only fetch() that is called/measured from JavaScript directly, without Go and WebAssembly.

Back to Bug 1827173 Comment 2