Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,9 @@ bool V8Inspector::canExecuteScripts()
return true;
}

void V8Inspector::notifyContextDestroyed()
{
m_debugger->contextDestroyed(m_context);
}

} // namespace blink
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class V8Inspector : public V8DebuggerClient, V8InspectorSessionClient {
void connectFrontend(protocol::FrontendChannel*);
void disconnectFrontend();
void dispatchMessageFromFrontend(const String16& message);
void notifyContextDestroyed();

private:
bool callingContextCanAccessContext(v8::Local<v8::Context> calling, v8::Local<v8::Context> target) override;
Expand Down
1 change: 1 addition & 0 deletions src/inspector_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ bool AgentImpl::IsStarted() {
void AgentImpl::WaitForDisconnect() {
shutting_down_ = true;
fprintf(stderr, "Waiting for the debugger to disconnect...\n");
inspector_->notifyContextDestroyed();
inspector_->runMessageLoopOnPause(0);
}

Expand Down