From aac3ea764cda8a0b37bd3349510e9001f81e2b65 Mon Sep 17 00:00:00 2001 From: Masaki Miyahara Date: Wed, 19 Jun 2013 17:01:42 +0900 Subject: Fix the problem that m_url is not renewed in WebRequest::OnReceivedRedirect(). [Phenomenon] "Security warning" dialog is not displayed at SSL site using self-signed certification. [Cause] Although ssl authentication error in redirection destination url, m_url(managed in Webkit) is still redirection origin url. --- Source/WebKit/android/WebCoreSupport/WebRequest.cpp | 1 + 1 file changed, 1 insertion(+) 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(new WebResponse(newRequest)); webResponse->setUrl(newUrl.spec()); m_urlLoader->maybeCallOnMainThread(NewRunnableMethod( -- cgit v1.2.3