Permalink
Browse files

Fix the problem that m_url is not renewed in WebRequest::OnReceivedRe…

…direct().

[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.
  • Loading branch information...
1 parent e69d53f commit ee7f0870146eeaf8e83328d1aef782c2d92689f7 @m-miyahara m-miyahara committed with MarcLandis Jun 19, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 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(

0 comments on commit ee7f087

Please sign in to comment.