summaryrefslogtreecommitdiffstats
path: root/core/java/android/net/http
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-10-05 12:45:37 +0100
committerSteve Block <steveblock@google.com>2011-10-05 13:16:17 +0100
commitfa03f9a3460a695337231df3195271060a1b4a06 (patch)
treedacf945108e70190cdf0027b57544869184dcf76 /core/java/android/net/http
parentea54b17038a6631f9e911a084c6138a57647915c (diff)
downloadframeworks_base-fa03f9a3460a695337231df3195271060a1b4a06.zip
frameworks_base-fa03f9a3460a695337231df3195271060a1b4a06.tar.gz
frameworks_base-fa03f9a3460a695337231df3195271060a1b4a06.tar.bz2
Fix BrowserFrame to construct SslError using the full URL, rather than the host
https://android-git.corp.google.com/g/#/c/133348 changed BrowserFrame to construct the SslError using only the host. This was done so that we match on just the host component of the URL when re-using previous decisions in case of an SSL error. It also means that the browser displays only the host when it shows the SSL error dialog. This change fixes BrowserFrame to pass the full URL to SslError. We modify SslCertLookupTable to keep the existing behaviour regarding matching on only the host component. There's no need to change Browser to continue displaying only the host as I think this change was an unintentional side-effect. Also remove dead code-path in BrowserFrame.reportSslCertError(). This method is used only with the Chromium HTTP stack. This code was added in https://android-git.corp.google.com/g/#/c/121023. No functional change. Bug: 5410252 Change-Id: Ief2dbf4558095fb6fa7ab0caac7d37fa4f640b66
Diffstat (limited to 'core/java/android/net/http')
-rw-r--r--core/java/android/net/http/SslError.java4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/java/android/net/http/SslError.java b/core/java/android/net/http/SslError.java
index 68a1dc3..5998f5f 100644
--- a/core/java/android/net/http/SslError.java
+++ b/core/java/android/net/http/SslError.java
@@ -163,10 +163,6 @@ public class SslError {
* Gets the URL associated with this object.
* @return The URL, non-null.
*/
- // TODO: When the WebView constructs an instance of this object, we
- // actually provide only the hostname, not the full URL. We should consider
- // deprecating this method, adding a new getHost() method and updating the
- // constructor arguments. See http://b/5410252.
public String getUrl() {
return mUrl;
}