summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelim Gurun <sgurun@android.com>2013-06-25 18:13:54 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-06-25 18:13:55 +0000
commit956986dbdf3b1743aa23250cd55e95b3ca7bb9b7 (patch)
tree3b2d484a639dc45974b70f683ee60cf52663946a
parent11d7657ebc4dfb1462db8cdc8b48ffa25478e442 (diff)
parentaac3ea764cda8a0b37bd3349510e9001f81e2b65 (diff)
downloadwebkit-956986dbdf3b1743aa23250cd55e95b3ca7bb9b7.tar.gz
Merge "Fix the problem that m_url is not renewed in WebRequest::OnReceivedRedirect()."jb-mr1.1-dev-plus-aosp
-rw-r--r--Source/WebKit/android/WebCoreSupport/WebRequest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/WebKit/android/WebCoreSupport/WebRequest.cpp b/Source/WebKit/android/WebCoreSupport/WebRequest.cpp
index dda0ee191..144a5ee3c 100644
--- a/Source/WebKit/android/WebCoreSupport/WebRequest.cpp
+++ b/Source/WebKit/android/WebCoreSupport/WebRequest.cpp
@@ -391,6 +391,7 @@ void WebRequest::OnReceivedRedirect(net::URLRequest* newRequest, const GURL& new
ASSERT(m_loadState < Response, "Redirect after receiving response");
ASSERT(newRequest && newRequest->status().is_success(), "Invalid redirect");
+ m_url = newUrl.spec();
OwnPtr<WebResponse> webResponse(new WebResponse(newRequest));
webResponse->setUrl(newUrl.spec());
m_urlLoader->maybeCallOnMainThread(NewRunnableMethod(