Skip RenderFrameImpl::WillSendRequest for the main request
We don't need it during CommitNavigation - we already
called WillSendRequest during BeginNavigation instead.
This is a preparation to stop (ab)using WebURLRequest when
committing a navigation - the callbacks won't be issued as well.
Bug: 855189
Change-Id: If0b792cd3e43171fe3830005af61c660b93e8c6e
Reviewed-on: https://chromium-review.googlesource.com/c/1271875
Commit-Queue: Dmitry Gozman <[email protected]>
Reviewed-by: Camille Lamy <[email protected]>
Cr-Commit-Position: refs/heads/master@{#598892}
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index ffdb963..db6a10d 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -1667,6 +1667,13 @@
int num_burst_download_requests_ = 0;
base::TimeTicks burst_download_start_time_;
+ // Set to true while we are committing a navigation and
+ // main request is being issued (the one which already got
+ // a response).
+ // TODO(dgozman): should be temporary until we stop using
+ // WebURLRequest for this.
+ bool committing_main_request_ = false;
+
// Set to true while we are replaying main resource response,
// which was captured in the browser, during navigation commit.
// TODO(dgozman): should be temporary until we stop using