[Webkit-unassigned] [Bug 266825] WebGL is available in webworker but not available in sub webworker
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 26 10:36:52 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=266825
--- Comment #4 from Tom <77875894q at gmail.com> ---
(In reply to Karl Dubost from comment #2)
> It would be great if you could provide a reduce test case.
Hi Karl
The test code could be like this, just start a new webworker with "worker.js" in a HTML page, it will output "is sub-worker support WebGL: false" on Safari 17
worker.js
const worker = new Worker("./subworker.js");
worker.addEventListener("message", (e) => {
console.log("is sub-worker support WebGL: ", e.data);
})
subworker.js
const ofs = new OffscreenCanvas(1, 1);
self.postMessage(ofs.getContext('webgl') ? true : false);
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231226/8acc1e8a/attachment.htm>
More information about the webkit-unassigned
mailing list