summaryrefslogtreecommitdiffstats
path: root/core/java/android/webkit/BrowserFrame.java
Commit message (Collapse)AuthorAgeFilesLines
* Early DNS ImplementationDinesh K Garg2010-08-141-0/+5
| | | | Change-Id: Ibd4d79015110f4a682b7e27b7adde896bd174ff4
* Adaptive request reorderingJan Erik Hanssen2010-08-051-1/+5
| | | | | | | | | Reorders the network requests so that the resources that will appear in the visible area of the web page are requested before the ones that are not. This is to ensure that the visible part of the web page gets rendered as fast as possible Change-Id: I5f5ae930d767d3c21f33df1db9c034098f9eb17c
* Dns prefetch implementation on FroyoDinesh K Garg2010-08-031-0/+19
| | | | Change-Id: Ic0223dc2f4ce1443402a69dbb5bd864e92d142b9
* Instead of holding an ApplicationContext, JWebCoreJavaBridgeGrace Kloba2010-04-011-1/+1
| | | | | | | | | | | will have a reference of the current window's main WebView. It is only non-null if the WebView's window has the focus. Extract setActive() from onWindowFocusChanged() so that onAttachedToWindow() can call it directly. The old way has a mis-matching call to onWindowFocusChanged. Fix http://b/issue?id=2559152
* Use ViewRoot.addConfigCallback instead of a BroadcastReceiver.Patrick Scott2010-03-251-43/+78
| | | | | | | | Store a list of Handlers in a global ComponentCallbacks instance. Use WeakReference to avoid leaking BrowserFrame objects. Bug: 2542935 Change-Id: I67b102288f47f9fa6e855ba6558f2b1d611e8427
* Use the Display orientation rather than the accelerometer.Patrick Scott2010-03-241-7/+21
| | | | | | | | Register to receive configuration changes and query the Display rotation as that will reflect both device orientation and an open keyboard. Bug: 2219138 Change-Id: Ibd6119ae0c7d473e1a9ede3af24bb4b584c9db71
* Fixes XHR requests to use the username and password supplied from JavaScriptSteve Block2010-03-241-2/+4
| | | | | | | | | 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
* If failUrl(now historyUrl) is null, use "about:blank" instead of "".Leon Scroggins2010-03-241-9/+7
| | | | | | | | | | This prevents a crash that is caused by calling WebView.loadDataWithBaseUrl with a null failUrl (which I have renamed to historyUrl). Also update the docs to be more accurate. Fixes the general case of bug 2522457 Change-Id: I832351ce1e0016b00e924a2f9b0097ae15fba34a
* use the stream instead of the cursor data to return its sizeCary Clark2010-03-221-14/+6
| | | | | | | | | | | Most content providers set up the data size in the cursor that provides the file name, but sound recorder does not. Use the stream size instead, which will work with all sources and probably is no slower. fixes http://b/2529352 http://b/2524574 Change-Id: I32d101d07ca1d0fa2ff17c3c68393356902096d3
* b/2511635 Browser displays incorrect SSL cert informationBrian Carlstrom2010-03-191-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* http://b/issue?id=2501101Leon Clarke2010-03-161-0/+8
| | | | | | | | | Create a concept of blocking messages on destruction similar to that in WebViewCore.java. This is to prevent what I think is a race condition caused by an orientation event occuring just before the frame is destroyed, resulting in the orientation listener being called back just before it is disabled, but posting its message after the messages have been removed. This results in the orientation event being delivered to a NULL native frame.
* Add a new WebCoreWorker thread to handle the tasksGrace Kloba2010-03-011-1/+2
| | | | | | | | | | | | | | | | | | | | | | | 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
* Add request header support for the Browser/WebView.Grace Kloba2010-01-271-5/+8
| | | | | | | | | | | | | | QSB can use this instead of POST to send the location data. After QSB makes the switch, we should also remove the POST_DATA intent which is hidden. Add loadUrl(String url, HashMap extraHeaders) to WebView so that the caller can send the extra http headers. Remove "inline:" as no one is using it and it is a hidden feature. Part 1 of 3-project checkin.
* Address the multiple resizing during initializingGrace Kloba2009-12-201-0/+1
| | | | | | | problem adobe run into. When a child view is created, we first hide it if the webview is not ready to draw yet. This will avoid the multiple resizing notification.
* Provide localized strings for <input> labels.Leon Scroggins2009-12-151-1/+16
| | | | | | | | | Fix for http://b/issue?id=2178786 Provide strings for input types file, submit, and reset, and allow them to be passed down to native. Requires a change in external/webkit.
* Listen for window orientation events.Patrick Scott2009-12-091-0/+40
| | | | These will be sent to webcore as orientation events.
* Check if another Activity wants to intercept an xml mime type.Patrick Scott2009-12-041-2/+5
| | | | | | | | | | | 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
* Fix a leak in WebView.Romain Guy2009-12-011-6/+9
| | | | | | | | Fixes #2296601. WebView and its related APIs are keeping static objects that hold references to Context instance. This could cause applications to leak their first Activity and all the associated resources.
* Add postdata identifier so that if we cache the postGrace Kloba2009-11-081-2/+4
| | | | | | | result, we will use (url+postIdentifier) as the key for the CacheResult. Fix http://b/issue?id=1980031
* Prevent getFile from copying when the file is too large.Leon Scroggins2009-10-131-2/+5
| | | | | | | Since the caller expects the data to fit within a certain amount of space, do not copy into the buffer if the data exceeds that space. Requires a change to external/webkit
* File upload.Leon Scroggins2009-10-091-0/+58
| | | | | | | | Implement java side of file upload. Requires changes to external/ webkit to not break; requires changes to packages/apps/Browser before it actually is used. Fix http://b/issue?id=675743
* Setting WebCore cache limit depending on the memory class.Grace Kloba2009-10-081-1/+8
| | | Fix http://b/issue?id=2176656
* Add a boolean indicating if the apple-touch-icon is precomposed.Patrick Scott2009-09-221-2/+2
|
* Support the new dpi change in the WebView.Grace Kloba2009-09-221-0/+4
| | | | Fix http://b/issue?id=2071943
* WebKit: switch to java-based CertTool.Chia-chi Yeh2009-09-181-1/+1
| | | | Change-Id: Ica6d491ede2bf2a311cacb7a7d64a249191fbecf
* WebView zoom clean upGrace Kloba2009-09-151-2/+0
|
* Remove the call to nativeAddJavascriptInterface() from ↵Andrei Popescu2009-09-091-2/+0
| | | | BrowserFrame::addJavascriptInterface() as it causes an intermitent crash.
* Fix appcache layout test that was timing out due to race condition in ↵Andrei Popescu2009-09-031-2/+6
| | | | WebView::addJavascriptInterface.
* Get drawable directory for the platform buttons.Grace Kloba2009-09-021-2/+18
| | | | Fix http://b/issue?id=2086818
* Check for a null history item to avoid crashing.Patrick Scott2009-08-241-11/+10
| | | | | | | The history item may be null if this page is loaded through loadDataWithBaseURL so we cannot count on the item being non-null. Bug: 2073490
* replace 'new String()' with ""Cary Clark2009-08-111-1/+1
| | | | | bug reported by findbugs http://b/issue?id=1856909
* As createCacheFile is called from WebCore instead of http thread now, removeGrace Kloba2009-08-061-11/+0
| | | | the endCacheTransaction/startTransaction pairs.
* Add a callback for the url of an apple-touch-icon.Patrick Scott2009-08-051-0/+5
| | | | | | Hide the apis until this is a well-tested feature. The url is reported rather than the actual icon since it may never be used. The apple-touch-icon is meant for shortcuts on the home screen.
* Fix 1986313. WebKit assumes things happened in a certain order. In this ↵Grace Kloba2009-07-171-3/+5
| | | | case, we can't call LoadListener's nativeError until BrowserFrame's startLoadingResource returns. Otherwise, the failed request will not be removed from the DocLoader's request list. So the page will never finish loading.
* Remove all our old high priority knowledge since WebCore will manage it.Patrick Scott2009-07-151-7/+3
| | | | Also removed an unused variable in RequestQueue.java.
* Centralized debug flags and enabled more granular control of debug settings.Derek Sollenberger2009-06-031-4/+4
|
* Added postUrl() to WebView so that we can pass lat/lon for the search.Grace Kloba2009-05-261-0/+13
|
* Added PluginManager to handle getting all the plugin directories from ↵Grace Kloba2009-05-141-0/+2
| | | | | | PackageManager. Deprecated the old api to set a single plugin path.
* Remove references to android.util.ConfigDave Bort2009-04-131-5/+4
| | | | | | | The semantics of Config.DEBUG will be changing soon, and all other Config.* fields will become deprecated/hidden. BUG=1780938
* auto import from //depot/cupcake/@136594The Android Open Source Project2009-03-051-4/+19
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+786
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-786/+0
|
* auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-191-1/+1
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-89/+94
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+781