Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #7742: src: --inspect notify contextDestroyed #7756

Closed
wants to merge 1 commit into from
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