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

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

Issue 1175113009: Don't use FrameLoader::m_provisionalItem for history state if a cross-origin (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Give receivedMainResourceRedirect the right url Created 5 years, 6 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: Source/core/loader/DocumentLoader.cpp
diff --git a/Source/core/loader/DocumentLoader.cpp b/Source/core/loader/DocumentLoader.cpp
index ffd8047c6acfe237c8e1f7a356d1a83d458d7dda..a1092c3c308e335c9af4de4825ecba704e2aaf94 100644
--- a/Source/core/loader/DocumentLoader.cpp
+++ b/Source/core/loader/DocumentLoader.cpp
@@ -388,7 +388,7 @@ void DocumentLoader::willSendRequest(ResourceRequest& newRequest, const Resource
return;
appendRedirect(newRequest.url());
- frameLoader()->client()->dispatchDidReceiveServerRedirectForProvisionalLoad();
+ frameLoader()->receivedMainResourceRedirect(m_request.url());
if (!shouldContinueForNavigationPolicy(newRequest, CheckContentSecurityPolicy))
cancelMainResourceLoad(ResourceError::cancelledError(m_request.url()));
}
« no previous file with comments | « LayoutTests/http/tests/history/cross-origin-redirect-on-back-expected.txt ('k') | Source/core/loader/FrameLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698