Check embedder_message_dispatcher_ before sending a message
HandleMessageFromDevToolsFrontend() might be called after the WebContentsDestroyed() is.
This commit is contained in:
parent
6481161ef2
commit
622544a902
1 changed files with 5 additions and 0 deletions
|
@ -617,6 +617,11 @@ void InspectableWebContentsImpl::RegisterExtensionsAPI(
|
|||
|
||||
void InspectableWebContentsImpl::HandleMessageFromDevToolsFrontend(
|
||||
const std::string& message) {
|
||||
// TODO(alexeykuzmin): Should we expect it to exist?
|
||||
if (!embedder_message_dispatcher_) {
|
||||
return;
|
||||
}
|
||||
|
||||
std::string method;
|
||||
base::ListValue empty_params;
|
||||
base::ListValue* params = &empty_params;
|
||||
|
|
Loading…
Reference in a new issue