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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.cpp

Issue 2878933003: Makes WorkerInspectorProxy work with ExecutionContext instead of Document (Closed)
Patch Set: . Created 3 years, 7 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/inspector/InspectorWorkerAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.cpp
index 0df47f1a12afa56d20da94672f37380d8ae22497..09e3e3f10a93cb210628df8af2471b42d3936196 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorWorkerAgent.cpp
@@ -30,7 +30,7 @@
#include "core/inspector/InspectorWorkerAgent.h"
-#include "core/dom/Document.h"
+#include "core/dom/ExecutionContext.h"
#include "core/inspector/InspectedFrames.h"
#include "platform/weborigin/KURL.h"
#include "platform/wtf/RefPtr.h"
@@ -138,8 +138,7 @@ void InspectorWorkerAgent::WorkerTerminated(WorkerInspectorProxy* proxy) {
void InspectorWorkerAgent::ConnectToAllProxies() {
for (WorkerInspectorProxy* proxy : WorkerInspectorProxy::AllProxies()) {
- if (proxy->GetDocument()->GetFrame() &&
- inspected_frames_->Contains(proxy->GetDocument()->GetFrame()))
+ if (inspected_frames_->Contains(proxy->GetExecutionContext()))
ConnectToProxy(proxy, false);
}
}

Powered by Google App Engine
This is Rietveld 408576698