| Index: content/browser/devtools/render_frame_devtools_agent_host.cc
|
| diff --git a/content/browser/devtools/render_frame_devtools_agent_host.cc b/content/browser/devtools/render_frame_devtools_agent_host.cc
|
| index a3985bf3c3ada34e6e74eb24c7d4701cfd82c00b..f6c53011b8cb51f2b54b1e36c01029f7a033e3b6 100644
|
| --- a/content/browser/devtools/render_frame_devtools_agent_host.cc
|
| +++ b/content/browser/devtools/render_frame_devtools_agent_host.cc
|
| @@ -569,8 +569,11 @@ RenderFrameDevToolsAgentHost::~RenderFrameDevToolsAgentHost() {
|
|
|
| void RenderFrameDevToolsAgentHost::ReadyToCommitNavigation(
|
| NavigationHandle* navigation_handle) {
|
| - // ReadyToCommitNavigation should only be called in PlzNavigate.
|
| - DCHECK(IsBrowserSideNavigationEnabled());
|
| + // TODO(clamy): Switch RenderFrameDevToolsAgentHost to always buffer messages
|
| + // until ReadyToCommitNavigation is called, now that it is also called in
|
| + // non-PlzNavigate mode.
|
| + if (!IsBrowserSideNavigationEnabled())
|
| + return;
|
|
|
| // If the navigation is not tracked, return;
|
| if (navigating_handles_.count(navigation_handle) == 0)
|
|
|