Index: src/inspector/v8-debugger-agent-impl.cc |
diff --git a/src/inspector/v8-debugger-agent-impl.cc b/src/inspector/v8-debugger-agent-impl.cc |
index 2d78ce6ae036bc3a8f6b4d45cad6f3756405a7b1..455a0d6643d5f6f97096d2bbbd0728d0de2488c7 100644 |
--- a/src/inspector/v8-debugger-agent-impl.cc |
+++ b/src/inspector/v8-debugger-agent-impl.cc |
@@ -152,6 +152,7 @@ void V8DebuggerAgentImpl::enableImpl() { |
m_debugger->getCompiledScripts(m_session->contextGroupId(), compiledScripts); |
for (size_t i = 0; i < compiledScripts.size(); i++) |
didParseSource(std::move(compiledScripts[i]), true); |
+ m_debugger->reportRequestedModules(); |
// FIXME(WK44513): breakpoints activated flag should be synchronized between |
// all front-ends |
@@ -1059,6 +1060,14 @@ void V8DebuggerAgentImpl::didParseSource( |
} |
} |
+void V8DebuggerAgentImpl::moduleRequested(const String16& refererId, |
+ const String16& requestedId, |
+ const String16& specifier) { |
+ if (m_scripts.find(refererId) == m_scripts.end()) return; |
+ if (m_scripts.find(requestedId) == m_scripts.end()) return; |
+ m_frontend.moduleRequested(refererId, requestedId, specifier); |
+} |
+ |
bool V8DebuggerAgentImpl::didPause(v8::Local<v8::Context> context, |
v8::Local<v8::Value> exception, |
const std::vector<String16>& hitBreakpoints, |