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); |
} |
} |