Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(557)

Unified Diff: third_party/WebKit/Source/core/workers/WorkerThread.cpp

Issue 2620463002: Show service worker navigation preload requests in DevTools Network tab (Closed)
Patch Set: fix crash Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/workers/WorkerThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
index 3e45f35569cccf309122f9797701c4d84974d887..2ba48389950245b3303ef50ef2f0c6933056bc1c 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
@@ -450,6 +450,7 @@ void WorkerThread::initializeOnWorkerThread(
bool heapLimitIncreasedForDebugging =
startupData->m_workerV8Settings.m_heapLimitMode ==
WorkerV8Settings::HeapLimitMode::IncreasedForDebugging;
+ bool inspectorNetworkCapability = startupData->m_inspectorNetworkCapability;
{
MutexLocker lock(m_threadStateMutex);
@@ -468,7 +469,8 @@ void WorkerThread::initializeOnWorkerThread(
m_consoleMessageStorage = new ConsoleMessageStorage();
m_globalScope = createWorkerGlobalScope(std::move(startupData));
m_workerReportingProxy.didCreateWorkerGlobalScope(globalScope());
- m_workerInspectorController = WorkerInspectorController::create(this);
+ m_workerInspectorController =
+ WorkerInspectorController::create(this, inspectorNetworkCapability);
// TODO(nhiroki): Handle a case where the script controller fails to
// initialize the context.

Powered by Google App Engine
This is Rietveld 408576698