Commit 4c1c5d88 authored by arthursonzogni's avatar arthursonzogni Committed by Commit Bot

Add temporary instrumentation into NavigationRequest::BeginNavigation().

This checks AT RUNTIME that no NavigationURLLoader is associated with
the NavigationRequest when BeginNavigation is called.

In particular, the path RestartNavigationAsCrossDocument looks
suspicious to me.

This is temporary, it will be removed when the bug will be closed.

Bug: 936962
Change-Id: I9acb1bc3b22de2aa4a9f7465ae82d9d28134e51c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1528234
Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
Reviewed-by: default avatarNasko Oskov <nasko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#641685}
parent 93b26269
......@@ -644,6 +644,17 @@ NavigationRequest::~NavigationRequest() {
void NavigationRequest::BeginNavigation() {
DCHECK(!loader_);
// TODO(https://crbug.com/936962): Remove this when the bug is fixed.
if (loader_) {
FrameMsg_Navigate_Type::Value navigation_type =
common_params_.navigation_type;
base::debug::Alias(&navigation_type);
NavigationState state = state_;
base::debug::Alias(&state);
DEBUG_ALIAS_FOR_GURL(url, common_params_.url);
base::debug::DumpWithoutCrashing();
loader_.reset();
}
DCHECK(state_ == NOT_STARTED || state_ == WAITING_FOR_RENDERER_RESPONSE);
TRACE_EVENT_ASYNC_STEP_INTO0("navigation", "NavigationRequest", this,
"BeginNavigation");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment