52e41583f58132ae109c632b51f8419c4c2225d6 |
|
22-Apr-2010 |
Grace Kloba <klobag@google.com> |
Added the subset of partial content support so that we can continue the interrupted request to support streaming the content even with a brief disconnection. Note: we don't update the headers for partial content as the headers we care should not be updated. See a list in chromium/net/http/http_response_headers.cc. We currently also don't support cache for partial content. Fix http://b/issue?id=2616477
/frameworks/base/core/java/android/webkit/LoadListener.java
|
ab355380f0919d44ea0a04915a7dce9a7fab137d |
|
12-Apr-2010 |
Kristian Monsen <kristianm@google.com> |
Fix (again) for bug 2558156, update cache encoding correctly My fault, the last fix did not fix the issue completly. Now setting the listener so the cache item can be found when the encoding is to be set by the background worker. Change-Id: Iea514ada9b4f52760033daee66aa29cdceda1c9e
/frameworks/base/core/java/android/webkit/LoadListener.java
|
e9a2fe013d9d3bb04ccbe665c54337bfa1880012 |
|
09-Apr-2010 |
Kristian Monsen <kristianm@google.com> |
Do not create intents for application/xhtml+xml Fix for b 2584681, webview opens contents in browser. Change-Id: I314e808a65f3c2043bd7bc7fcd44ac071f136bdc
/frameworks/base/core/java/android/webkit/LoadListener.java
|
d08127fff184bdf465d36cb7f6c906a4a96669de |
|
01-Apr-2010 |
Kristian Monsen <kristianm@google.com> |
Fix for bug 2558156: Encodig is null This does not actually pass the test since the test has wrong expectations, but it is at least doing the right thing. Change-Id: I7da29a3f101647bb628805514cf2bdef24864e50
/frameworks/base/core/java/android/webkit/LoadListener.java
|
c6a90a59b342114d760d899e09d8def672b49ca8 |
|
25-Mar-2010 |
Steve Block <steveblock@google.com> |
Provides ability to store HTTP authentication credentials supplied to an XHR from JavaScript This change forwards to the WebViewClient HTTP authentication credentials that are supplied to an XHR from JavaScript. This allows the client to store these credentials for use with later requests. Currently, the browser only stores credentials that have been entered manually by the user through the authentication dialog. Bug: 2544330 Change-Id: I913e35d80b7ad41ff75586092408b86ea9f543d8
/frameworks/base/core/java/android/webkit/LoadListener.java
|
ea08c513549c1ddd9ba32337cb30973d7b61ca32 |
|
24-Mar-2010 |
Steve Block <steveblock@google.com> |
Fixes XHR requests to use the username and password supplied from JavaScript Currently, the browser does not use the credentials supplied from JavaScript. If a request returns a 401 Unauthorized, the browser always prompts the user. This violates http://www.w3.org/TR/XMLHttpRequest/#the-send-method Bug: 2533522 Change-Id: I8e72c1a0be187d193c4ad6b2ca8a624c7ae06fa1
/frameworks/base/core/java/android/webkit/LoadListener.java
|
c76bfa5bb5e6e9afdae571e4b98d7f3dcc9a1669 |
|
24-Mar-2010 |
Steve Block <steveblock@google.com> |
Fixes synchronous XHR requests which require authentication to complete synchronously Bug: 2540515 Change-Id: I58eebdf2db9388f66c75d86dc26b8055f513b038
/frameworks/base/core/java/android/webkit/LoadListener.java
|
5b494c1ca4c3cf0e0992c59fe34ae66c81e6dcce |
|
12-Mar-2010 |
Ben Murdoch <benm@google.com> |
Add an API on the Java side to allow WebKit to pause the current load. This is used when the plugin is streaming data but it's buffer is full. In that case, WebCore instructs the laoder to pause loading to give the plugin a chance to clear it's buffer and continue. Requires an external/webkit change. Change-Id: Iec96a6325d92e979cbdc53289c2a20cad940ded2
/frameworks/base/core/java/android/webkit/LoadListener.java
|
dba8cb76371960457e91b31fa396478f809a5a34 |
|
19-Mar-2010 |
Brian Carlstrom <bdc@google.com> |
b/2511635 Browser displays incorrect SSL cert information Two more cases of "View certificate" problems like b/2511635 One problem is that if there are multiple resources downloaded for a page. In that case the mCertificate shown ends up being from the last loaded resource instead of the main resource of the page. The solution is to only set the certificate if the LoadListener is the mIsMainResourceLoader as well as the mIsMainPageLoader. A larger problem was the fact that the EventHandler.certificate interface method (in this case the LoadListener.certificate implementation) once per https connection instead of once per request as was documented. That meant if an https connection was reused (which happens frequently on login pages such as https://www.google.com/accounts which use the POST -> redirect -> GET idiom to avoid POST data page refresh warnings) then later pages never were associated with an SslCertificate. The solution was to change EventHandler.certificate to be called once per request, specifcally before the request. This means we no longer call the certificate method in the handleSslErrorRequest case, which is okay because it includes the SslCertificate within the SslError and that is what the BrowserActivity expects. Change-Id: Icbd9bd98c89db82762d1d06de85e1cde2470300d
/frameworks/base/core/java/android/webkit/LoadListener.java
|
0b43747206014244c9318868ed199b648918d816 |
|
15-Mar-2010 |
Steve Block <steveblock@google.com> |
Fix loading from the cache for synchronous requests This fixes crashes in several XHR layout tests. Bug: 2218794 Change-Id: Iebe3a2d19f1fa43b8d9c9d7763e818f7195b8ceb
/frameworks/base/core/java/android/webkit/LoadListener.java
|
5ac85ccabbaa02623152f140b9233c6cefcf3b77 |
|
11-Mar-2010 |
Patrick Scott <phanna@android.com> |
Do not send the not-modified response when validating the cache. Bug: 2450517 Change-Id: Ibdff4c4b573bb63ac5de94ec7277241bb0242203
/frameworks/base/core/java/android/webkit/LoadListener.java
|
a401d559ecfb1c84f4016b5cc6b711581989dc3a |
|
08-Mar-2010 |
Kristian Monsen <kristianm@google.com> |
Don't cut the url on a redirect This is a fix for issue 2485033. It is not a final fix, but just starting with this so it can be discussed on code review. The line in question was added to fix issue 1690652. Updated fix. Stores the url before it is cut during a redirect. Forwards this to the reponse instead of the cut url. Update 2: Using the old originalUrl Change-Id: I286084451aa45e51d5d07811f9d119cf83849592
/frameworks/base/core/java/android/webkit/LoadListener.java
|
43242d02e931c116d7f334cda2b0d677bedfdd97 |
|
02-Mar-2010 |
Leon Clarke <leonclarke@google.com> |
am ba74d7cc: am e861b8f9: Merge " Fix issue with authentication with flash" into eclair-mr2 Merge commit 'ba74d7ccadc34d09d57886120e9d412d9edbc4d7' * commit 'ba74d7ccadc34d09d57886120e9d412d9edbc4d7': Fix issue with authentication with flash
|
cb01dba34842151d0bb056b01affdc1e9bf50193 |
|
23-Feb-2010 |
Leon Clarke <leonclarke@google.com> |
Fix issue with authentication with flash
/frameworks/base/core/java/android/webkit/LoadListener.java
|
2036dbab1726c34953360a7a56d6b9ef1f2aa7dd |
|
15-Feb-2010 |
Grace Kloba <klobag@google.com> |
Add a new WebCoreWorker thread to handle the tasks which should not block either UI or WebKit. It handles local file access, cache access and trim cache. Move createCache, saveCache and most of getCache out of WebCore thread so that slow IO and database will not affect loading performance. getCache can be still called from WebCore thread in the uncommon cases like redirect and POST validation. Move cache ticker from WebCore thread to WebViewWorkerThread. Move setCookie from WebCore thread to WebViewWorkerThread. Remove the unreferenced files in the cache directory while trim cache. Confirmed with our SQL expert, Vasu, there is no need to wrap clearCache with end/startTransaction any more. http://b/issue?id=2414792 http://b/issue?id=2475242
/frameworks/base/core/java/android/webkit/LoadListener.java
|
998c05b3b5db124a31da1ac38af0e97bca114122 |
|
28-Dec-2009 |
Grace Kloba <klobag@google.com> |
Cleanup the cache file when we decide not saving it. This logic was lost when we switched back using FLASH instead of RAM for the cache. Add back the CACHE_MAX_SIZE to limit the maximum cacheable file. Fix http://b/issue?id=2346132
/frameworks/base/core/java/android/webkit/LoadListener.java
|
75481cb860519b9f839262c05679f436cfc71f37 |
|
09-Dec-2009 |
Patrick Scott <phanna@android.com> |
Check that the resolved activity is not in our package. Ideally, I would like to allow Activities in the same package to intercept mime types but there is no way to get the current Activity information from a generic Context object. For now, skip resolved Activities that are in the same package. Bug: 2314904
/frameworks/base/core/java/android/webkit/LoadListener.java
|
7c24ed6904707ea7179cb81382b7ca8d8ce85b7f |
|
30-Nov-2009 |
Patrick Scott <phanna@android.com> |
Check if another Activity wants to intercept an xml mime type. WebCore treats */*+xml as content that it can render. This prevents Activities from intercepting those mime types. Check the same regular expression as DOMImplementation and then use the PackageManager to look for a matching Activity. Requires a change to webcore. Bug: 2256744
/frameworks/base/core/java/android/webkit/LoadListener.java
|
8c92c39b858ae73a1b08ed698887efa98ced987c |
|
09-Nov-2009 |
Grace Kloba <klobag@google.com> |
Add postdata identifier so that if we cache the post result, we will use (url+postIdentifier) as the key for the CacheResult. Fix http://b/issue?id=1980031
/frameworks/base/core/java/android/webkit/LoadListener.java
|
e1f43dadb9a1f0744f7e24373ca796c7a8ca2b12 |
|
15-Oct-2009 |
Patrick Scott <phanna@android.com> |
Share chunks between all ByteArrayBuilders. If a single ByteArrayBuilder accumulates many chunks, it is possible that many of those chunks will not be reused and will just take up memory in the pool. If the pool is shared across all instances, fewer chunks need to be allocated. This allows a site like http://www.606studios.com/bendisboard/showthread.php?t=170286 to load without crashing due to OOM. The shared pool contains SoftReferences to each chunk. If the vm feels memory pressure, it is allowed to mark these references for collection. Before accessing the pool of chunks, I remove any queued references from the pool. Cleanup ByteArrayBuilder a little by removing unused methods and fields. Document some synchronization spots in LoadListener and add a lock when downloading a certificate. Bug: 1637965
/frameworks/base/core/java/android/webkit/LoadListener.java
|
d5ad08bd4230c2f5d58969c624c39a3f5a2019d1 |
|
13-Oct-2009 |
Grace Kloba <klobag@google.com> |
am 2e778c17: Merge change I124356f6 into eclair Merge commit '2e778c176d17c295f475141bddda9dca5cd65fce' into eclair-mr2 * commit '2e778c176d17c295f475141bddda9dca5cd65fce': Continue caching "POST" result so that we won't get
|
124356f6308c41ec2d8eebb367cf3cc4c4d4ca3a |
|
13-Oct-2009 |
Grace Kloba <klobag@google.com> |
Continue caching "POST" result so that we won't get the resubmission warning when back to Google search result. Fix http://b/issue?id=1490379 Break/reopen http://b/issue?id=1980031
/frameworks/base/core/java/android/webkit/LoadListener.java
|
499a95418220f4723349c57e5a6a5a1916de7562 |
|
02-Oct-2009 |
Grace Kloba <klobag@google.com> |
setupRedirect() can throw. Catch it and signal the error. Fix http://b/issue?id=2163139
/frameworks/base/core/java/android/webkit/LoadListener.java
|
41d8565e816a29192d966f271c06bee91272087c |
|
17-Sep-2009 |
Chia-chi Yeh <chiachi@android.com> |
WebKit: switch to java-based CertTool. Change-Id: Ica6d491ede2bf2a311cacb7a7d64a249191fbecf
/frameworks/base/core/java/android/webkit/LoadListener.java
|
273fecc22a6315915452574cac116ae1f60a90ea |
|
09-Sep-2009 |
Grace Kloba <klobag@google.com> |
Do not cache POST response as Cache is indexed with url. mRequestHandle is only set from Network. So we can skip checking whether url is Network url if mRequestHandle is not null. Fix http://b/issue?id=1980031
/frameworks/base/core/java/android/webkit/LoadListener.java
|
ef32ee3db8c1c48894ce62cd8e151d7fa8501c86 |
|
01-Sep-2009 |
Grace Kloba <klobag@google.com> |
When we get 304 and switch to cacheLoader, need to set mFromCache to be true. So that the cache loading will not create a new mCacheResult which overwrites the old cache data.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
4e9718d6ae3433a3f78fddf158a15701101ba781 |
|
24-Aug-2009 |
Patrick Scott <phanna@android.com> |
Fix synchronous xml requests with ssl errors. Use the in-memory ssl preference table before posting a message to the WebCore thread. Since the WebCore thread is blocked waiting for the ssl resource, we cannot query the user for their preference. If the table does not contain the user's decision, bail on the request to avoid a deadlock. Also mark a few of the ssl handler's method's as synchronized. This was reported by findbugs.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
c3fa098ff60c13ec9d9f61317e766c8f4529ecd3 |
|
22-Aug-2009 |
Grace Kloba <klobag@google.com> |
The new webkit won't keep RAM cache if http header has "no-store". So remove it from StreamLoader. And fix the code where we only want to cache network result.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
f6d1a5528ee626487c78f17501d61e61bbe26b10 |
|
03-Aug-2009 |
Grace Kloba <klobag@google.com> |
resolved conflicts for merge of b8802b21 to master
|
4c8db8a4feb2afbd9d5f94ff09c7167ca34076c4 |
|
31-Jul-2009 |
Grace Kloba <klobag@google.com> |
Fix #2025900. If a https request is canceled while openConnection is called and a ssl error happened, the http thread can be blocked for up to 10 min. Added code to detect this case and unlock the thread.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
ce4105002310a22e104d29d56913cbca9cd485be |
|
30-Jul-2009 |
Android Git Automerger <android-git-automerger@android.com> |
resolved conflicts for merge of 4d4229e4 to master
|
fd3db87e28e5b9ed186a15944234f6ff520773c6 |
|
28-Jul-2009 |
Chung-yih Wang <cywang@google.com> |
Support x509-user-cert mime type in browser. + Fix the public key matching and intent parameter mismatch.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
2470a7b4a82f9d1afc3c6b278aa313334f6412ab |
|
25-Jul-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
am 3b99e64e: Merge change 8475 into donut Merge commit '3b99e64e5899030b5d6f8201cb56cd149c80b24d' * commit '3b99e64e5899030b5d6f8201cb56cd149c80b24d': Per conversation, remove the toast while saving the Certificates to CertTools.
|
c9d4c8790a6472743c7fa22e2abc72ac9994fe18 |
|
24-Jul-2009 |
Grace Kloba <klobag@google.com> |
Per conversation, remove the toast while saving the Certificates to CertTools. Remove the unused strings.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
c319c69b1228f5eee2f9d71a71ad021f3d8ba82b |
|
20-Jul-2009 |
Patrick Scott <phanna@android.com> |
Allow 205 and 305 to have content. 205 is interpreted by Safari to be like 200 and show the given content. Change canHaveResponseBody to allow 205 to have a body. 305 is a very rare server response indicating to the client to use the given Location header as a proxy and reissue the original request. Curl doesn't do anything with this header and neither does internal networking code. For now, we will just allow the response body to propagate to webcore.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
d7f2036aaa9f934893703d4314d355aef3ffadcb |
|
15-Jul-2009 |
Grace Kloba <klobag@google.com> |
resolved conflicts for merge of 21d769da to master
|
fe4fec7c66b0d956f008ead0fd899b588cfacb5d |
|
14-Jul-2009 |
Patrick Scott <phanna@android.com> |
Remove all our old high priority knowledge since WebCore will manage it. Also removed an unused variable in RequestQueue.java.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
f8ddc988dc2d9be2f75e0b0d9aa234dad7c8258d |
|
15-Jul-2009 |
Grace Kloba <klobag@google.com> |
Fix #1976384. Add p12 to the MimeTypeMap. When downloading p12 in the WebView, send it to the certTool.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
f6a6cff234e164874233de3618ab98b4fb00efb7 |
|
06-Jul-2009 |
Android (Google) Code Review <android-gerrit@google.com> |
am 4492bcb8: Merge change 6081 into donut Merge commit '4492bcb851f4ee862a446664eb9045045ebb7b5e' * commit '4492bcb851f4ee862a446664eb9045045ebb7b5e': Migrate to the CertTool library.
|
bf20b9963add781a35de658f3228760015a163c9 |
|
02-Jul-2009 |
Chung-yih Wang <cywang@google.com> |
Migrate to the CertTool library. Keystore is reimplemented and it is mainly for storing (key, value) pair generically. The certificate related APIs are moved to the class CertTool instead. Updates: Provide the getInstance() which gives the singleton. Fix the missing construction of the BIO in cert.c.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
0b956e1353a691674cb22c899c5a444b92532b60 |
|
29-Jun-2009 |
Grace Kloba <klobag@google.com> |
Add content-disposition into the cache header as it is needed by Flash. As WebKit is using string version of "expires", pass it with the rest of the headers.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
e64c5567de20d06ac7ed1f5a01f018991cd40a52 |
|
20-Jun-2009 |
Grace Kloba <klobag@google.com> |
Fix for the new webkit. Now "expires" takes the string instead of int. We have to upadte our cache database. Good thing is Gears can avoid the expensive date conversion.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
b0774438ea90ce379ac3f20895f95302248a3844 |
|
20-Jun-2009 |
Grace Kloba <klobag@google.com> |
am 3af8e938: Change addCertificate to take byte[] instead of String as we don\'t know the encoding. Merge commit '3af8e9389e008c0076b86cc6b3c6f005e7473d10' * commit '3af8e9389e008c0076b86cc6b3c6f005e7473d10': Change addCertificate to take byte[] instead of String as we don't know the encoding.
|
3af8e9389e008c0076b86cc6b3c6f005e7473d10 |
|
20-Jun-2009 |
Grace Kloba <klobag@google.com> |
Change addCertificate to take byte[] instead of String as we don't know the encoding. In WebView, if we run into the certificate, we will save it to the Keystore instead of sending it to the WebKit.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
2e5c150e746647a1ce5c10e1708debbf06c45ea7 |
|
03-Jun-2009 |
Derek Sollenberger <djsollen@google.com> |
Centralized debug flags and enabled more granular control of debug settings.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
e82dc4205285a40d6c2227e362c30ce24c96a552 |
|
29-Apr-2009 |
Patrick Scott <phanna@android.com> |
Parse the base64 data before creating the data stream. This will ensure that we do not parse the data in chunks when passing it to the LoadListener. Decoding in chunks can lead to incomplete sequences which will lead to a failed decode. Check for a cancelled LoadListener in StreamLoader and stop the load. This is just a shortcut for downloaded or failed resources. Cleanup some of the LoadListener code around resetting a few member variables. Reset them in the status callback since that indicates a new response from the server (or StreamLoader).
/frameworks/base/core/java/android/webkit/LoadListener.java
|
f0c70a83562a27c424554f609eb1d4cdebf06df4 |
|
28-Apr-2009 |
Patrick Scott <phanna@android.com> |
Treat application/xhtml+xml as xhtml+xml instead of text/html. Previously we had converted application/xhtml+xml to text/html because of bad server data. Now we need to treat xhtml as xhtml to get svg to be interpreted correctly.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
74008f608af0c567456d37e63d48643689388c74 |
|
23-Apr-2009 |
Jean-Baptiste Queru <jbq@google.com> |
Merge donut into master
|
2563ed8f70c45d78f9d64cfec2c7d35026176a7f |
|
14-Apr-2009 |
Patrick Scott <phanna@android.com> |
Use lower case mime type, encoding, and transfer encoding.
/frameworks/base/core/java/android/webkit/LoadListener.java
|
42bc2ff5d2e3a10ab6c1fb1e716a124f2b446dbc |
|
14-Apr-2009 |
Dave Bort <dbort@android.com> |
Remove references to android.util.Config The semantics of Config.DEBUG will be changing soon, and all other Config.* fields will become deprecated/hidden. BUG=1780938
/frameworks/base/core/java/android/webkit/LoadListener.java
|
105925376f8d0f6b318c9938c7b83ef7fef094da |
|
19-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake_rel/...@140373
/frameworks/base/core/java/android/webkit/LoadListener.java
|
c39a6e0c51e182338deb8b63d07933b585134929 |
|
11-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@137873
/frameworks/base/core/java/android/webkit/LoadListener.java
|
4df2423a947bcd3f024cc3d3a1a315a8dc428598 |
|
05-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@136594
/frameworks/base/core/java/android/webkit/LoadListener.java
|
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/webkit/LoadListener.java
|
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 |
|
04-Mar-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/webkit/LoadListener.java
|
3001a035439d8134a7d70d796376d1dfbff3cdcd |
|
19-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@132276
/frameworks/base/core/java/android/webkit/LoadListener.java
|
d24b8183b93e781080b2c16c487e60d51c12da31 |
|
11-Feb-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/webkit/LoadListener.java
|
f1e484acb594a726fb57ad0ae4cfe902c7f35858 |
|
22-Jan-2009 |
The Android Open Source Project <initial-contribution@android.com> |
auto import from //branches/cupcake/...@127436
/frameworks/base/core/java/android/webkit/LoadListener.java
|
f013e1afd1e68af5e3b868c26a653bbfb39538f8 |
|
18-Dec-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/webkit/LoadListener.java
|
54b6cfa9a9e5b861a9930af873580d6dc20f773c |
|
21-Oct-2008 |
The Android Open Source Project <initial-contribution@android.com> |
Initial Contribution
/frameworks/base/core/java/android/webkit/LoadListener.java
|