summaryrefslogtreecommitdiff
path: root/chromium/content/browser/devtools/devtools_instrumentation.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/devtools/devtools_instrumentation.cc')
-rw-r--r--chromium/content/browser/devtools/devtools_instrumentation.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/content/browser/devtools/devtools_instrumentation.cc b/chromium/content/browser/devtools/devtools_instrumentation.cc
index 7fce34ad104..7ccedb25d06 100644
--- a/chromium/content/browser/devtools/devtools_instrumentation.cc
+++ b/chromium/content/browser/devtools/devtools_instrumentation.cc
@@ -369,6 +369,13 @@ bool WillCreateURLLoaderFactory(
void OnNavigationRequestWillBeSent(
const NavigationRequest& navigation_request) {
+ auto* agent_host = static_cast<RenderFrameDevToolsAgentHost*>(
+ RenderFrameDevToolsAgentHost::GetFor(
+ navigation_request.frame_tree_node()));
+ if (!agent_host)
+ return;
+ agent_host->OnNavigationRequestWillBeSent(navigation_request);
+
DispatchToAgents(navigation_request.frame_tree_node(),
&protocol::NetworkHandler::NavigationRequestWillBeSent,
navigation_request);