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

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

Issue 2626043004: PlzNavigate: ensure POST submissions create navigation entries (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/FrameLoader.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameLoader.cpp b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
index e664eb27cae54417d51390f29bb50218095ea927..0422d51310e64ae9ae2ee1a6f2a1f0e5f0316715 100644
--- a/third_party/WebKit/Source/core/loader/FrameLoader.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameLoader.cpp
@@ -949,11 +949,11 @@ FrameLoadType FrameLoader::determineFrameLoadType(
return FrameLoadTypeReplaceCurrentItem;
if (request.resourceRequest().url() == m_documentLoader->urlForHistory()) {
+ if (request.resourceRequest().httpMethod() == HTTPNames::POST)
+ return FrameLoadTypeStandard;
if (!request.originDocument())
return FrameLoadTypeReloadMainResource;
- return request.resourceRequest().httpMethod() == HTTPNames::POST
- ? FrameLoadTypeStandard
- : FrameLoadTypeReplaceCurrentItem;
+ return FrameLoadTypeReplaceCurrentItem;
}
if (request.substituteData().failingURL() ==
« no previous file with comments | « third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698