Bug 154213 - Web Inspector: Improve support for console logging within workers
Summary: Web Inspector: Improve support for console logging within workers
Status: RESOLVED DUPLICATE of bug 163844
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Joseph Pecoraro
URL:
Keywords: InRadar
Depends on:
Blocks: 127634
  Show dependency treegraph
 
Reported: 2016-02-13 01:14 PST by Joseph Pecoraro
Modified: 2016-10-22 03:41 PDT (History)
7 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.