[Webkit-unassigned] [Bug 255402] Web Inspector doesn't show nested workers

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 14 04:52:04 PDT 2023


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

--- Comment #12 from Thomas Steiner <tomac at google.com> ---
I have added a bunch of postMessage() calls to the demo at https://safari-subworker.glitch.me/, so we can see communication happening in all directions. I can indeed confirm that the worker.js postMessage() call arrives in subworker.js, since its response is logged in worker.js.

## Here're the logs from Chrome:

Hello from main thread
worker.js:1 Hello from worker.js
worker.js:4 Message received in worker.js: From main thread to worker.js
script.js:6 Message received in main thread: From worker.js to main thread after message from main thread
subworker.js:1 Hello from subworker.js
subworker.js:4 Message received in subworker.js: From worker.js to subworker.js
worker.js:11 Message received in worker.js: From subworker to worker.js
script.js:6 Message received in main thread: From worker.js to main thread after message from subworker.js


## Here're the logs from Firefox:

Hello from main thread script.js:1:9
Hello from worker.js worker.js:1:9
Message received in worker.js: From main thread to worker.js worker.js:4:11
Message received in main thread: From worker.js to main thread after message from main thread script.js:6:11
Hello from subworker.js subworker.js:1:9
Message received in subworker.js: From worker.js to subworker.js subworker.js:4:11
Message received in worker.js: From subworker to worker.js worker.js:11:11
Message received in main thread: From worker.js to main thread after message from subworker.js script.js:6:11

​
## Here're the logs from Safari (Safari Tech Preview and Stable agree): 

[Log] Hello from main thread (script.js, line 1)
[Log] Hello from worker.js (worker.js, line 1)
[Log] Message received in worker.js: – "From main thread to worker.js" (worker.js, line 4)
[Log] Message received in main thread: – "From worker.js to main thread after message from main thread" (script.js, line 6)
[Log] Message received in worker.js: – "From subworker to worker.js" (worker.js, line 11)
[Log] Message received in main thread: – "From worker.js to main thread after message from subworker.js" (script.js, line 6)


This means it's indeed a complete Web Inspector blindness to anything happening in subworker.js. 

Also, it doesn't yet explain why SQLite Wasm backed by the OPFS (https://sqlite-wasm-opfs.glitch.me/) isn't working on Safari yet, but that's a different story then (maybe). I'll keep investigating. The subworkers theory was a good lead, though…

-- 
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/20230414/e2f62f80/attachment-0001.htm>


More information about the webkit-unassigned mailing list