diff --git a/brightray/browser/inspectable_web_contents_impl.cc b/brightray/browser/inspectable_web_contents_impl.cc index e383bc545c0c..c30c6f1becbd 100644 --- a/brightray/browser/inspectable_web_contents_impl.cc +++ b/brightray/browser/inspectable_web_contents_impl.cc @@ -248,7 +248,8 @@ void InspectableWebContentsImpl::AttachTo(const scoped_refptrDetachClient(); + if (agent_host_.get()) + agent_host_->DetachClient(); agent_host_ = nullptr; }