Browser extension not detecting offscreen canvas passed to webworker?
See original GitHub issueThe browser extension doesn’t seem to be detecting my a canvas that I have passed to a webworker
const offscreen = canvas.transferControlToOffscreen();
const worker = new Worker();
worker.postMessage(
{
type: "main/canvas-init",
payload: {
canvas: offscreen,
width: window.innerWidth,
height: window.innerHeight,
player: fetchLocalStoragePlayerData(),
}
},
[offscreen]
);
Is this supported? Should I manually use the spector.js lib instead?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Speed up Your Canvas Operations with a Web Worker
The OffscreenCanvas allows to create a canvas that can be rendered off screen. It can also be used in web workers. Avoid jank...
Read more >Offscreen-Canvas not rendering some of the time
This a known bug: https://crbug.com/1202481. The issue appears when too many OffscreenCanvases are sent to the Worker serially.
Read more >OffscreenCanvas - Web APIs | MDN
Chrome Edge
OffscreenCanvas Full support. Chrome69. Toggle history Full support. Edge79...
OffscreenCanvas() constructor Full support. Chrome69. Toggle history Full support. Edge79...
contextlost event Full support. Chrome99....
Read more >Offscreen canvas inside Web Worker
pass canvas into webworker, so we can do all rendering inside it ... Sorry, your browser does not support Offscreen rendering...',
Read more >html5.h — Emscripten 3.1.26-git (dev) documentation
Fullscreen Events for browser canvas fullscreen modes transitioning. ... This can be used to, for example, pass a pointer to a C++ class...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Feel free that would be perfect, I would say at first we would need to detect the offscreen and be able to record the calls to them by simply disabling the texture captures (who relies on canvas2D internally).
This would be a great start 😃
Not at the moment, would would like to give it a try ?