Bug 263334

Summary: Web Inspector: Worker Info not Visible In Most Timeline Profile Views like JavaScript & Events
Product: WebKit Reporter: Joseph Martinsen <josmarti>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: inspector-bugzilla-changes, josmarti, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: All   
OS: All   
Attachments:
Description Flags
Timeline recording missing worker events none

Description Joseph Martinsen 2023-10-18 13:04:22 PDT
Created attachment 468263 [details]
Timeline recording missing worker events

Worker thread info does not appear to show up in any Timeline views other than CPU usage. 


Some initial discussion in the slack WebKit#web-inspector-help and initial findings and basic repro case from Razvan Caliman
: https://webkit.slack.com/archives/CU80T42P9/p1696870632997349


Repro case: 

1. Navigate to https://mdn.github.io/dom-examples/web-workers/fibonacci-worker/ (source code: https://github.com/mdn/dom-examples/tree/3e75d616aba9c98c2b31c269e7e28089ffe43529/web-workers/fibonacci-worker)
2. Open Web Inspector>Timelines and start recording a profile.
3. Enter a number in the input field and click submit (worker thread will execute the calculation via fibonacci.js).
4. End recording

Expected:

    JavaScript & Events should show that the fibonacci function (or worker onmessage) ran.

Actual:

    JavaScript & Events only originating from the UI thread show up.

Timeline recording going through the above steps is attached. 
Safari Version 17.0 (19616.1.27.211.1)
Comment 1 Radar WebKit Bug Importer 2023-10-25 13:05:19 PDT
<rdar://problem/117491838>