| Index: third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
|
| diff --git a/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp b/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
|
| index 81651ef13218c9dfa1cac56af959c3712d35f3eb..720e72ea588bd24554335b6e39ae113b750382c5 100644
|
| --- a/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
|
| +++ b/third_party/WebKit/Source/core/inspector/WorkerInspectorController.cpp
|
| @@ -32,9 +32,11 @@
|
|
|
| #include "core/CoreProbeSink.h"
|
| #include "core/inspector/InspectorLogAgent.h"
|
| +#include "core/inspector/InspectorNetworkAgent.h"
|
| #include "core/inspector/InspectorTraceEvents.h"
|
| #include "core/inspector/WorkerThreadDebugger.h"
|
| #include "core/inspector/protocol/Protocol.h"
|
| +#include "core/loader/WorkerFetchContext.h"
|
| #include "core/probe/CoreProbes.h"
|
| #include "core/workers/WorkerBackingThread.h"
|
| #include "core/workers/WorkerReportingProxy.h"
|
| @@ -74,6 +76,11 @@ void WorkerInspectorController::connectFrontend() {
|
| m_debugger->contextGroupId(m_thread), nullptr);
|
| m_session->append(
|
| new InspectorLogAgent(m_thread->consoleMessageStorage(), nullptr));
|
| + WorkerFetchContext* workerFetchContrext =
|
| + WorkerFetchContext::from(*m_thread->globalScope());
|
| + if (workerFetchContrext) {
|
| + m_session->append(InspectorNetworkAgent::create(nullptr));
|
| + }
|
| m_thread->workerBackingThread().backingThread().addTaskObserver(this);
|
| }
|
|
|
|
|