Browser: Fix Progress bar when quick Controls Enabled

The quick controls progress bar was broken by my browser autohide patch.
This patch fixes it to properly show again.

Change-Id: I1062c4eac26bbc87ca6ec9de775e0b1b58d0542b
Browser: PT-BR translations

Change-Id: I0e076eb1fefad1c3fa0dc8db7c2950a858c2d801
Merge "Browser: Fix Progress bar when quick Controls Enabled" into cm-11.0
browser: allow to load browser internal assets

The new webview classes avoid to load urls from local file schemes. Just replace the load of internal browser assets (most_visited) from loadUrl to loadData.

Change-Id: Iee633a1a3599a7e752e15452fa04e15baac2e256
JIRA: CYAN-3564
Issue: https://jira.cyanogenmod.org/browse/CYAN-3564
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
Automatic translation import

Change-Id: I6cdd4972225c235e8290f5d94b9db171e35f6de7
Browser: fix crash updating recycled favicon

Occurs on the (slow) galaxysmtd.

java.lang.RuntimeException: An error occured while executing doInBackground()
	at android.os.AsyncTask$3.done(AsyncTask.java:300)
	at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:355)
	at java.util.concurrent.FutureTask.setException(FutureTask.java:222)
	at java.util.concurrent.FutureTask.run(FutureTask.java:242)
	at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
	at java.lang.Thread.run(Thread.java:841)
Caused by: java.lang.IllegalStateException: Can't compress a recycled bitmap
	at android.graphics.Bitmap.checkRecycled(Bitmap.java:345)
	at android.graphics.Bitmap.compress(Bitmap.java:985)
	at com.android.browser.Bookmarks$1.doInBackground(Bookmarks.java:206)
	at com.android.browser.Bookmarks$1.doInBackground(Bookmarks.java:202)
	at android.os.AsyncTask$2.call(AsyncTask.java:288)
	at java.util.concurrent.FutureTask.run(FutureTask.java:237)
	... 4 more

Change-Id: I867696996c786024aabb869583583198ac3bc13a
Automatic translation import

Change-Id: I32627e2f30bde68dcb99c4aebe8e1fa6bbc17b67
Automatic translation import

Change-Id: I046abfaa946d1193c256f9cf87e63df60e601f61
Revert "Automatic translation import"

This reverts commit c4ef906c285b034415e5d4d162f569986538157b.

Change-Id: Ife13fc6ae97995633f62047be57d6288524fcfa7
Fix Memory leaks on Browser application

Working on Issue 31125 (http://code.google.com/p/android/issues
/detail?id=31125):
* Enhance mTabViews management on NavScreen class (add remove()
function when necessary).

Change-Id: I89662880107ae88ead40d5246286d4ab65ed9e75
Signed-off-by: Sebastien MICHEL <sebastien.michel@intel.com>
Handle DownloadManager expceptions

Handles illegal state exceptions thrown by DownloadManager
on two ocassions:
* the directory sdcard/Downloads is an ordinary file
* could not create dirctory sdcard/Downloads

Change will log an error, additionally toast with information
will pop up.

Change-Id: If853d3218a188bc77c187362a70697126b90989d
Automatic translation import

Change-Id: I74ceb10f94c6c0e18104a687779954198a214ac7
Automatic translation import

Change-Id: I726f872619e6640e50abb564209118ec251fe4bb
Automatic translation import

Change-Id: Ic41386cb51043077ce2bbeb64993d5cd84de0c46
Automatic translation import

Change-Id: Ia573f2be5e873d9a6b93023f8fbee192e7dc7bda
Merge tag 'android-4.4.3_r1' into HEAD

Android 4.4.3 release 1

Change-Id: I352be84504d16fdb37e0b41771a4b1f2f35117eb
BrowserSettings: update desktop UA string to match Chrome 33

This matches the corresponding update to Chromium 33 for Android WebView.

Change-Id: Id2a8a832c2a637f7c5284d5006b6f3475bfba560
reduce cookie tracking (4/4): onResume deletion of cookies

Optionally delete unwanted cookies (and localstorage) at every Browser
resume. The default for this feature is off - ie. maintain the current
Browser "keep every cookie" behaviour.

Optionally localstorage files (site databases) are also removed whenever
cookies have been deleted. This helps to reduce evercookie/supercookie
persistence.

A whitelist of sites that are permitted to keep cookies is stored in the
standard Browser shared_prefs. The site's cookie preference is set via a
menu checkbox when viewing the page. This allows opt-in whitelisting
behaviour on a per-site basis, suitable for saving eg. login cookies.

The cookie deletion itself is done by using existing API's to delete all
cookies and then selectively restore just those from the whitelisted sites.
Cookie counting is the only new API needed by this patch, and is used to
eliminate unnecessary cookie and localstorage deletes.

Although simplistic, onResume cookie filtering seems to work well and in
testing hasn't broken any web browsing. The underlying CookieMonster
functions operate on cached copies in ram and are asynchronous to disk so
there should be little or no measurable performance impact on browsing from
cookies. localstorage deletion is not cached by any layer so, if enabled,
might have some minor performance impact.

Change-Id: I55c69292a5ddc460e0e50b340dc4330c28becc5e
Automatic translation import

Change-Id: I298fcbbbe0898025cf737bca4ce16ea5276f4ddd
Automatic translation import

Change-Id: I1d6a363140deba430a2c9babb31504ac6ef7cd57