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

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

Issue 2830753004: Pipe the devTools FrameId from blink into the browser for headless (Closed)
Patch Set: Add include for msvc Created 3 years, 8 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/InspectorPageAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
index 428dba6e34f0fefdac734d1683be889c1604841c..e173834fba7c51e4021fe8801e5fe37e0f26eaeb 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
@@ -39,6 +39,7 @@
#include "core/dom/Document.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
+#include "core/frame/LocalFrameClient.h"
#include "core/frame/Settings.h"
#include "core/frame/VisualViewport.h"
#include "core/html/HTMLFrameOwnerElement.h"
@@ -699,7 +700,9 @@ bool InspectorPageAgent::ScreencastEnabled() {
}
void InspectorPageAgent::FrameStartedLoading(LocalFrame* frame, FrameLoadType) {
- GetFrontend()->frameStartedLoading(FrameId(frame));
+ String frame_id = FrameId(frame);
+ GetFrontend()->frameStartedLoading(frame_id);
+ frame->Client()->SetDevToolsFrameId(frame_id);
}
void InspectorPageAgent::FrameStoppedLoading(LocalFrame* frame) {

Powered by Google App Engine
This is Rietveld 408576698