diff options
author | Steve Block <steveblock@google.com> | 2011-07-05 07:43:56 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-07-05 07:43:56 -0700 |
commit | 324a1f6a125637269d3955e5a0935d3eb873b015 (patch) | |
tree | d874427b9a34731438df6520bfb6567f6da8f2a7 /core/java/android/webkit | |
parent | b4db3964f133629f9f396cfa4c1e0c7bc09106dc (diff) | |
parent | e482d89b82feb8abc1af594c38e674c48984f0ac (diff) | |
download | frameworks_base-324a1f6a125637269d3955e5a0935d3eb873b015.zip frameworks_base-324a1f6a125637269d3955e5a0935d3eb873b015.tar.gz frameworks_base-324a1f6a125637269d3955e5a0935d3eb873b015.tar.bz2 |
Merge "Clarify the documentation for WebView.loadDataWithBaseURL() when the base URL uses the 'data' scheme"
Diffstat (limited to 'core/java/android/webkit')
-rw-r--r-- | core/java/android/webkit/WebView.java | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 2fda7de..7ba86a5 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -2013,13 +2013,18 @@ public class WebView extends AbsoluteLayout * Note that content specified in this way can access local device files * (via 'file' scheme URLs) only if baseUrl specifies a scheme other than * 'http', 'https', 'ftp', 'ftps', 'about' or 'javascript'. + * <p> + * If the base URL uses the data scheme, this method is equivalent to + * calling {@link #loadData(String,String,String) loadData()} and the + * historyUrl is ignored. * @param baseUrl URL to use as the page's base URL. If null defaults to - * "about:blank" + * 'about:blank' * @param data A String of data in the given encoding. - * @param mimeType The MIMEType of the data. i.e. text/html. If null, - * defaults to "text/html" - * @param encoding The encoding of the data. i.e. utf-8, us-ascii - * @param historyUrl URL to use as the history entry. Can be null. + * @param mimeType The MIMEType of the data, e.g. 'text/html'. If null, + * defaults to 'text/html'. + * @param encoding The encoding of the data. + * @param historyUrl URL to use as the history entry, if null defaults to + * 'about:blank'. */ public void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) { |