Index: third_party/WebKit/Source/core/inspector/InspectedFrames.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/InspectedFrames.cpp b/third_party/WebKit/Source/core/inspector/InspectedFrames.cpp |
index 3ce17b1b6c66ac013b9018fd918bbd3c953ebbdd..c86ece0f2cf2110ecbdc286579b0d62dc810b858 100644 |
--- a/third_party/WebKit/Source/core/inspector/InspectedFrames.cpp |
+++ b/third_party/WebKit/Source/core/inspector/InspectedFrames.cpp |
@@ -23,6 +23,10 @@ bool InspectedFrames::Contains(LocalFrame* frame) const { |
return frame->InstrumentingAgents() == root_->InstrumentingAgents(); |
} |
+bool InspectedFrames::Contains(ExecutionContext* context) const { |
+ return context->GetProbeSink() == root_->InstrumentingAgents(); |
+} |
+ |
LocalFrame* InspectedFrames::FrameWithSecurityOrigin( |
const String& origin_raw_string) { |
for (LocalFrame* frame : *this) { |