Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: third_party/WebKit/Source/core/loader/DocumentLoader.cpp

Issue 2653673006: Move loadType() to DocumentLoader (Closed)
Patch Set: Move loadType() to DocumentLoader Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/DocumentLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
index 245fd64476298d162e8e77e6bb0d599e2fcaa92f..91eeb8efcb2c6744cc728635bec06949de32e172 100644
--- a/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/DocumentLoader.cpp
@@ -105,6 +105,7 @@ DocumentLoader::DocumentLoader(LocalFrame* frame,
m_originalRequest(req),
m_substituteData(substituteData),
m_request(req),
+ m_loadType(FrameLoadTypeStandard),
m_isClientRedirect(clientRedirectPolicy ==
ClientRedirectPolicy::ClientRedirect),
m_replacesCurrentHistoryItem(false),
@@ -375,8 +376,8 @@ bool DocumentLoader::redirectReceived(
}
if (!frameLoader().shouldContinueForNavigationPolicy(
m_request, SubstituteData(), this, CheckContentSecurityPolicy,
- m_navigationType, NavigationPolicyCurrentTab,
- replacesCurrentHistoryItem(), isClientRedirect(), nullptr)) {
+ m_navigationType, NavigationPolicyCurrentTab, m_loadType,
+ isClientRedirect(), nullptr)) {
m_fetcher->stopFetching();
return false;
}

Powered by Google App Engine
This is Rietveld 408576698