Bug 154213

Summary: Web Inspector: Improve support for console logging within workers
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web InspectorAssignee: Joseph Pecoraro <joepeck>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bburg, graouts, joepeck, mattbaker, nvasilyev, timothy, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 127634    

Description Joseph Pecoraro 2016-02-13 01:14:14 PST
* SUMMARY
Improve support for console logging within workers

* STEPS TO REPRODUCE
1. Start a worker
2. Log objects from within the worker
  => expect to interact with the objects via Inspector's console

* NOTES
- Worker's ScriptExecutionContext needs to be made visible to the Page's Inspector
- Previously Worker console messages had a flow like this
  -> console.log
    -> WorkerGlobalObject (worker thread)
      -> InspectorInstrumentation::addConsoleMessage
        -> WorkerConsoleAgent/WorkerInspectorController
          -> WorkerFrontendChannel send workerId + JSON message to Page
            -> Page executes task (main thread)
              -> Worker.dispatchMessageFromWorker (json message)
                -> frontend re-dispatches message within dispatch message

The rest can work with ConsoleAgent/RuntimeAgent for the Worker.
Comment 1 Radar WebKit Bug Importer 2016-02-13 01:14:26 PST
<rdar://problem/24643249>
Comment 2 Joseph Pecoraro 2016-10-22 03:40:52 PDT
This will be addressed by bug 163844.

*** This bug has been marked as a duplicate of bug 163844 ***
Comment 3 Joseph Pecoraro 2016-10-22 03:41:00 PDT
This will be addressed by bug 163844.