| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: Ibd4d79015110f4a682b7e27b7adde896bd174ff4
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Ic0223dc2f4ce1443402a69dbb5bd864e92d142b9
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
Store a list of Handlers in a global ComponentCallbacks instance. Use
WeakReference to avoid leaking BrowserFrame objects.
Bug: 2542935
Change-Id: I67b102288f47f9fa6e855ba6558f2b1d611e8427
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
These will be sent to webcore as orientation events.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
result, we will use (url+postIdentifier) as the key
for the CacheResult.
Fix http://b/issue?id=1980031
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
| |
Fix http://b/issue?id=2176656
|
| |
|
|
|
|
| |
Fix http://b/issue?id=2071943
|
|
|
|
| |
Change-Id: Ica6d491ede2bf2a311cacb7a7d64a249191fbecf
|
| |
|
|
|
|
| |
BrowserFrame::addJavascriptInterface() as it causes an intermitent crash.
|
|
|
|
| |
WebView::addJavascriptInterface.
|
|
|
|
| |
Fix http://b/issue?id=2086818
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
bug reported by findbugs
http://b/issue?id=1856909
|
|
|
|
| |
the endCacheTransaction/startTransaction pairs.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
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.
|
|
|
|
| |
Also removed an unused variable in RequestQueue.java.
|
| |
|
| |
|
|
|
|
|
|
| |
PackageManager.
Deprecated the old api to set a single plugin path.
|
|
|
|
|
|
|
| |
The semantics of Config.DEBUG will be changing soon, and all other
Config.* fields will become deprecated/hidden.
BUG=1780938
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|