[Webkit-unassigned] [Bug 255637] Create a sub worker in worker is not supported

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 24 01:14:19 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255637

--- Comment #3 from Jeason Xu <jeason.xu93 at gmail.com> ---
(In reply to Alexey Proskuryakov from comment #1)
> We support nested workers since bug 22723. Are you testing with an older
> Safari version?

I test this on lateset 16.4, The Worker api now is not undefined, however. The nested Worker handle can't be built successfully, seems the workes api implemention has bugs.

Here is simple demo code for nested worker:
// worker.js
function Create_Worker() {
    let data = "let data = \"setInterval(function(){console.log(\\\"hello1\\\")},10)\"\n" +
        "workerhandle = new Worker(URL.createObjectURL(new Blob([data])));\n" +
                "console.error(\" typeofworker\",typeof\ Worker)\n"+
        "setInterval(function () {\n" +
        "    console.log(\"hello\")\n" +
        "},10)"
    workerhandle = new Worker(URL.createObjectURL(new Blob([data])));
}

-- 
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/20230524/b228c35c/attachment.htm>


More information about the webkit-unassigned mailing list