OSDN Git Service

android-x86/packages-apps-Browser.git
14 years agoLessen the difference in appearance of title bar during load.
Leon Scroggins [Wed, 31 Mar 2010 18:50:47 +0000 (14:50 -0400)]
Lessen the difference in appearance of title bar during load.

Change to using textfield_search_empty assets, which have margin
values that better match the assets used outside of a load.  As
a result, there is no longer a need to edit the LayoutParams in
TitleBar.java.  However, do set the padding in TitleBar.java, since
it needs to be set for each of the different backgrounds used.

Fixes http://b/issue?id=2558919

Change-Id: Idf0d8bea59bcc76c32e1e03bf736a4b64bf31887

14 years agoFix for bug 2538060. Decoding and encoding an URL.
Kristian Monsen [Thu, 25 Mar 2010 18:29:21 +0000 (18:29 +0000)]
Fix for bug 2538060. Decoding and encoding an URL.

Just encoding [ and ] instead of decoding and encoding again. This is because decoding is not a reversible function so we might not always get back to
the same URL.

Tested against bug 1634719, which this was a fix for.

Change-Id: I041820c15e0a0cf2e6a20bea3801e8b5039d39d5

14 years agoRemove overscroll
Adam Powell [Mon, 29 Mar 2010 23:01:49 +0000 (16:01 -0700)]
Remove overscroll

Change-Id: I680a7d36a8f782f03abf1994023922c840bed993

14 years agoFill in the home page in the preferences when browser is launched first time.
Shimeng (Simon) Wang [Mon, 29 Mar 2010 23:13:09 +0000 (16:13 -0700)]
Fill in the home page in the preferences when browser is launched first time.

Issue:2554240
Change-Id: Ia63bf9ec7463db4548f88985925ef0759234753d

14 years agoRe-enable page cache.
Andrei Popescu [Mon, 29 Mar 2010 11:12:55 +0000 (12:12 +0100)]
Re-enable page cache.

Fix b: 2533219

Change-Id: Ida1122cd9a137a9d4caba8187bf48f9688889747

14 years agoFixes browser to store and read HTTP authentication credentials in the correct WebView.
Steve Block [Thu, 25 Mar 2010 17:24:58 +0000 (17:24 +0000)]
Fixes browser to store and read HTTP authentication credentials in the correct WebView.

Change-Id: Ib9831e7985232a5f362ef529d1aec2ee1e4fbecd

14 years agofix monkey-triggered crash
Cary Clark [Thu, 25 Mar 2010 15:17:03 +0000 (11:17 -0400)]
fix monkey-triggered crash

While we're in there, change to void since callers never
use boolean function result.

Change-Id: Ia62f9dd5bac252a17bcc5086daed1407a2dbb4ff
http://b/2544188

14 years agoUse system setting for default geolocation permissions
Bjorn Bringert [Wed, 24 Mar 2010 11:12:02 +0000 (11:12 +0000)]
Use system setting for default geolocation permissions

This reverts change I0be5dbf4d99d07ca13b07fb299155c5aa17a51bd
and adds an observer on the new default geolocation permission
secure setting.

Bug http://b/issue?id=2535598

Change-Id: I4edcbd3080b7d3af5dc6d74f26779b6d92248010

14 years agoMerge "Prevent HTTP auth dialog from shwoing during test"
Guang Zhu [Wed, 24 Mar 2010 20:48:25 +0000 (13:48 -0700)]
Merge "Prevent HTTP auth dialog from shwoing during test"

14 years agoPrevent HTTP auth dialog from shwoing during test
Guang Zhu [Wed, 24 Mar 2010 20:32:54 +0000 (13:32 -0700)]
Prevent HTTP auth dialog from shwoing during test

Change-Id: Ia10e72eec60d8c2155df95dec06334beb9feaab6

14 years agoUse AsyncTask when calling Browser.updateVisitedHistory
Leon Scroggins [Wed, 24 Mar 2010 18:45:57 +0000 (14:45 -0400)]
Use AsyncTask when calling Browser.updateVisitedHistory

Previously updateVisitedHistory itself used an AsyncTask, but
since that method could be called from a non-main thread, move
the AsyncTask to the call site.

Part of http://b/issue?id=2539948

Change-Id: I9a70130ab125490fa96964ea9637eba67732180a

14 years agoMark these token strings as untranslatable.
Eric Fischer [Tue, 23 Mar 2010 22:32:40 +0000 (15:32 -0700)]
Mark these token strings as untranslatable.

Change-Id: I7ec6ca85a12cb705bc7c934509f1da547d6c4ed1

14 years agoAdd the on-demand setting for plugins.
Patrick Scott [Mon, 22 Mar 2010 14:19:32 +0000 (10:19 -0400)]
Add the on-demand setting for plugins.

Requires a change to webkit and the framework.

Bug: 2411524
Change-Id: I874e4e2139eedf4bc9332947fe6513b027e660d9

14 years agoUse a Thread instead of an AsyncTask for removing Gears. This is because
Andrei Popescu [Tue, 23 Mar 2010 15:04:36 +0000 (15:04 +0000)]
Use a Thread instead of an AsyncTask for removing Gears. This is because
the database upgrade method can be invoked on any thread (e.g. a Binder
thread, when QSB makes an IPC call to the Browser content provider).

Fix b: 2529299

14 years agoMerge "updates and improvements on PopularUrlsTest"
Guang Zhu [Mon, 22 Mar 2010 17:47:49 +0000 (10:47 -0700)]
Merge "updates and improvements on PopularUrlsTest"

14 years agoupdates and improvements on PopularUrlsTest
Guang Zhu [Mon, 22 Mar 2010 17:11:24 +0000 (10:11 -0700)]
updates and improvements on PopularUrlsTest

* changed time recording unit from ns to ms
* implemented a timeout mechanism for page loading
* fixed a bug where url list will iterate forever
* minor changes in logging

Change-Id: I5f9812d2573d6942ddf404cf3fbb1782f328c73d

14 years agoreject unhandled key events if browser is paused
Cary Clark [Mon, 22 Mar 2010 15:45:23 +0000 (11:45 -0400)]
reject unhandled key events if browser is paused

http://b/2532511

Change-Id: Idd08b90d3a5dec61c9328eecda834f2fcc7d16f5

14 years agoMerge "Show stop button in a pressed state when pressed."
Leon Scroggins [Mon, 22 Mar 2010 14:59:54 +0000 (07:59 -0700)]
Merge "Show stop button in a pressed state when pressed."

14 years agoShow stop button in a pressed state when pressed.
Leon Scroggins [Mon, 22 Mar 2010 14:54:04 +0000 (10:54 -0400)]
Show stop button in a pressed state when pressed.

Fix for http://b/issue?id=2533372

Change-Id: I9a614a95f5537d17c9cb89e96afe6c21fc56d59a

14 years agoMake selection color fill underneath the scroll bar for downloads.
Leon Scroggins III [Mon, 22 Mar 2010 14:17:58 +0000 (10:17 -0400)]
Make selection color fill underneath the scroll bar for downloads.

Fix for http://b/issue?id=2532825

Change-Id: Ida953c8c3db4e0391a72d07906db0c8bd91171b6

14 years agoDiasble page cache on high-end devices while b: 2525377 is not fixed.
Andrei Popescu [Fri, 19 Mar 2010 20:44:21 +0000 (20:44 +0000)]
Diasble page cache on high-end devices while b: 2525377 is not fixed.

14 years agoEnable +/- zoom control for the sub-window.
Grace Kloba [Sat, 20 Mar 2010 01:40:09 +0000 (18:40 -0700)]
Enable +/- zoom control for the sub-window.
This should also enable the pinch zoom

Fix http://b/issue?id=2530401

14 years agoSet sub window to scrollbars_outside_overlay to
Grace Kloba [Sat, 20 Mar 2010 00:44:21 +0000 (17:44 -0700)]
Set sub window to scrollbars_outside_overlay to
match the style we use for the main window.

Fix http://b/issue?id=2531179

14 years agoMatch the new webview overscroll background api
Grace Kloba [Fri, 19 Mar 2010 22:22:54 +0000 (15:22 -0700)]
Match the new webview overscroll background api

14 years agoAllow Browser bookmarks from AnyCut; don't NPE without Extras.
Brad Fitzpatrick [Fri, 19 Mar 2010 20:35:21 +0000 (13:35 -0700)]
Allow Browser bookmarks from AnyCut; don't NPE without Extras.

Change-Id: I884936ceaeabf76cc8aaf7f1dbfeecd82b5c2fd0

14 years agoUpdate the browser title bar background asset
Grace Kloba [Fri, 19 Mar 2010 04:44:14 +0000 (21:44 -0700)]
Update the browser title bar background asset

Remove the shadow in the faked title bar.

Fix http://b/issue?id=2521294

14 years agoClean the obsolete string for retrieving login credentials.
Shimeng (Simon) Wang [Thu, 18 Mar 2010 22:58:27 +0000 (15:58 -0700)]
Clean the obsolete string for retrieving login credentials.

Change-Id: Iddf86aaee279e2749ad7933fc6ea32f827559727

14 years agoClose the SearchDialog when a new Intent opens the browser.
Leon Scroggins [Thu, 18 Mar 2010 19:06:15 +0000 (15:06 -0400)]
Close the SearchDialog when a new Intent opens the browser.

Fix for http://b/issue?id=2522723

Change-Id: Idf5d878d45b40be93a222385111a87ec32aa2f1b

14 years agoShow a toast when a download starts.
Leon Scroggins [Thu, 18 Mar 2010 18:44:44 +0000 (14:44 -0400)]
Show a toast when a download starts.

Fix for http://b/issue?id=2524416

Change-Id: I0f6502a8e6a6041da144d94e2a0e7abdcfca687e

14 years agoMerge "Import revised translations"
Eric Fischer [Thu, 18 Mar 2010 17:52:00 +0000 (10:52 -0700)]
Merge "Import revised translations"

14 years agoFix build: add missing import.
Brett Chabot [Thu, 18 Mar 2010 16:15:19 +0000 (09:15 -0700)]
Fix build: add missing import.

Change-Id: I7f26dda7036136724eaa45b0c1d6b9ecbe07b614

14 years agoMerge "Do not call invalidate() in draw(). This improved Browser loading performance...
Grace Kloba [Thu, 18 Mar 2010 15:42:40 +0000 (08:42 -0700)]
Merge "Do not call invalidate() in draw(). This improved  Browser loading performance by 10%. Loading nytimes.com on Sholes with plugin dropped from 30s to 26s."

14 years agoMake sure the icon database is created in the UI thread.
Patrick Scott [Thu, 18 Mar 2010 14:51:39 +0000 (10:51 -0400)]
Make sure the icon database is created in the UI thread.

The monkey can launch the activity before the icon database has been created. If
getInstance() is called in a different thread, a looper will not exist.

I thought about forcing WebIconDatabase to use the main looper but that would
limit the use of WebIconDatabase to the main thread.

Bug: 2524758
Change-Id: Iebc1bb6021b084e643e9b180602f999b0ee30a5d

14 years agoDo not call invalidate() in draw(). This improved
Grace Kloba [Thu, 18 Mar 2010 04:11:15 +0000 (21:11 -0700)]
Do not call invalidate() in draw(). This improved
Browser loading performance by 10%. Loading nytimes.com
on Sholes with plugin dropped from 30s to 26s.

As FakedTitleBar is shown while a page is loading,
there is no need to update the WebView TitleBar's
progress which is always behind.This improved Browser
loading performance by another 10%. Loading nytimes.com
on Sholes with plugin dropped from 26s to 23s.

Fix http://b/issue?id=2520517

14 years agoImport revised translations
Kenny Root [Thu, 18 Mar 2010 05:06:09 +0000 (22:06 -0700)]
Import revised translations

Change-Id: I1bafa14f897492f3a481997fd83a77e375d04d84

14 years agoUse the passed in url as the WebView's url may not be up-to-date.
Patrick Scott [Wed, 17 Mar 2010 20:06:30 +0000 (16:06 -0400)]
Use the passed in url as the WebView's url may not be up-to-date.

Bug: 2502742
Change-Id: I8d8a0218e65610fb7006bdbef54b4459728f6390

14 years agoDelete the file even if the ContentResolver does not see it.
Leon Scroggins [Wed, 17 Mar 2010 13:07:05 +0000 (09:07 -0400)]
Delete the file even if the ContentResolver does not see it.

Fix for http://b/issue?id=2519840

Change-Id: Ib4cd844bb94138777fabe0a95b3306995e0bde96

14 years agoDo not destroy the backforward list when doing another voice search.
Leon Scroggins [Mon, 15 Mar 2010 22:19:14 +0000 (18:19 -0400)]
Do not destroy the backforward list when doing another voice search.

Fix for http://b/issue?id=2516327

Change-Id: I0daf8ba6e24be6682d849107914877fb0c31ec4f

14 years agoRemove the logic of setting dasher account's home page.
Shimeng (Simon) Wang [Tue, 16 Mar 2010 20:23:39 +0000 (13:23 -0700)]
Remove the logic of setting dasher account's home page.

Bug:2300219
Change-Id: Ibe790a7aaa812b5262c53f542539deead628dc77

14 years agoMerge "Fix for the 'Unable to add window' crash."
Nicolas Catania [Tue, 16 Mar 2010 21:36:51 +0000 (14:36 -0700)]
Merge "Fix for the 'Unable to add window' crash."

14 years agoFix for the 'Unable to add window' crash.
Nicolas Catania [Mon, 15 Mar 2010 16:00:14 +0000 (09:00 -0700)]
Fix for the 'Unable to add window' crash.

BrowserBookmarksPage:
Added a new onDestroy method to clean up the pending messages in
the handler.

Fixed a bunch of eol whitespaces (use ignore eol ws in gerrit to
make it easy on your eyes)

Bug:2090959
Change-Id: I6c17ea9345878c4c7a93259e0b3e6d92dcc317de

14 years agoUse a margin to make the title bar stay the same size while loading.
Leon Scroggins [Tue, 16 Mar 2010 00:37:16 +0000 (20:37 -0400)]
Use a margin to make the title bar stay the same size while loading.

Allows title_bar to use wrap_content, and therefore be able to show
multiple lines of text in voice search mode.

Fixes http://b/issue?id=2510376

Change-Id: If196f63577b6606be0129ee224842dc858f5931a

14 years agoAllow going back to a voice search to work when choosing from n-best.
Leon Scroggins [Mon, 15 Mar 2010 20:56:57 +0000 (16:56 -0400)]
Allow going back to a voice search to work when choosing from n-best.

Store a copy of the Intent rather than the Intent itself.  This way,
when choosing from the n-best, the number will not be appended to
the original Intent, so pressing back works properly.

Change-Id: Id6a0232339f34e5f91928e2bc1502f8f2fc33228

14 years agoForce a load when getting a new intent from voice search.
Leon Scroggins [Mon, 15 Mar 2010 17:10:45 +0000 (13:10 -0400)]
Force a load when getting a new intent from voice search.

When reusing an app tab, we generally do not reload in the case
where the URL matches the old URL.  However, in the case of a
voice search, both URLs are "", because the information is held
in UrlData.mVoiceIntent.  If that field is not null, load the
Tab, which will load the new voice search.

Change-Id: I0ba60b1e482cf1fd1b95e4dab969527f18096cc1

14 years agoClose Cursors when finished with them.
Leon Scroggins [Fri, 12 Mar 2010 23:09:39 +0000 (18:09 -0500)]
Close Cursors when finished with them.

Change-Id: Idf284f59b05b3f5b3565f7374899927a70f3ca07

14 years agoWriting page + time in one go so that the file always stays in an easily parsable...
John Spong [Thu, 11 Mar 2010 19:38:04 +0000 (11:38 -0800)]
Writing page + time in one go so that the file always stays in an easily parsable format.

Change-Id: Ia7f5f216d21925aebf5c807ee95036ebf6f6fa35

14 years agoUse AsyncTask to edit history in the background.
Leon Scroggins [Thu, 11 Mar 2010 14:33:11 +0000 (09:33 -0500)]
Use AsyncTask to edit history in the background.

Part of http://b/issue?id=2485421

Change-Id: I19db62679bd0e8df63294b2ad126c7b5c3ff9f52

14 years agoRequest icons in the background.
Patrick Scott [Tue, 9 Mar 2010 21:02:08 +0000 (16:02 -0500)]
Request icons in the background.

BrowserBookmarksAdapter does not need to request bookmark icons as most of the
bookmarks have up-to-date icons. We still need to request all icons on start up
because a new icon may be loaded as a result of clicking a history items.

Move the icon request to a background thread to not block the ui thread on large
db lookups.

Remove MostVisitedActivity as it is no longer used.

Bug: 2496872
Change-Id: I378dce8fdb7e825da96594cd31b720ea24758af1

14 years agoReset the boolean variables when first initialzied and when reset happens.
Shimeng (Simon) Wang [Thu, 11 Mar 2010 00:44:31 +0000 (16:44 -0800)]
Reset the boolean variables when first initialzied and when reset happens.

This is to fix the case when some variables such as landscapeOnly will not
correctly be reset when resetDefaultPreferences happens.

Change-Id: I6389e8fbbb1e7cabb4d7358085c9b5816ca7fe41

14 years agoAvoid potential NPE if storage manager is not properly initialized.
Shimeng (Simon) Wang [Tue, 9 Mar 2010 22:30:07 +0000 (14:30 -0800)]
Avoid potential NPE if storage manager is not properly initialized.

Bug: 2498939
Change-Id: I92a14fdcb949d748bebec0a357d8baad37aeb46e

14 years agoUse a special flag to tell SearchDialog to show the microphone.
Leon Scroggins [Tue, 9 Mar 2010 22:26:56 +0000 (17:26 -0500)]
Use a special flag to tell SearchDialog to show the microphone.

Fix for http://b/issue?id=2501400

Requires a change to frameworks/base

Change-Id: I002a7b8320d3927b2e93b7fbbd43537208fb7756

14 years agoWhen reverting the voice title bar, display the url.
Leon Scroggins [Wed, 10 Mar 2010 17:13:14 +0000 (12:13 -0500)]
When reverting the voice title bar, display the url.

Fix for http://b/issue?id=2503151

Change-Id: I8beda0135631d18cc65f5a59dde46142d0c18b08

14 years agoUse the new system overscroll background api.
Grace Kloba [Tue, 9 Mar 2010 18:50:37 +0000 (10:50 -0800)]
Use the new system overscroll background api.

14 years agoMerge "Allow going back to voice search from not-first results."
Leon Scroggins [Tue, 9 Mar 2010 14:05:28 +0000 (06:05 -0800)]
Merge "Allow going back to voice search from not-first results."

14 years agoAllow going back to voice search from not-first results.
Leon Scroggins [Tue, 9 Mar 2010 00:53:03 +0000 (19:53 -0500)]
Allow going back to voice search from not-first results.

When going to a result besides the first one, remember the original
Intent which opened voice search mode, and add the number of the
selected result.  Now going back to voice search works even if the
user selected a not-first result and then followed a link.

Change-Id: I9db335ec43c442c01f1355e2259d250a65b3aa20

14 years agoAdd an empty CleanSpec.mk
Jean-Baptiste Queru [Tue, 9 Mar 2010 02:04:56 +0000 (18:04 -0800)]
Add an empty CleanSpec.mk

Change-Id: I6a30929515db7b4daef6903b18ee4eb774c841db

14 years agoPass attached HTTP headers to WebView from voice search.
Leon Scroggins [Mon, 8 Mar 2010 23:20:35 +0000 (18:20 -0500)]
Pass attached HTTP headers to WebView from voice search.

Fix for http://b/issue?id=2496144

Change-Id: I245e7e47a31158a9082a33c1ebcfb7dcf924ee08

14 years agoMerge "Check for null filename before creating a new file."
Leon Scroggins [Mon, 8 Mar 2010 21:32:25 +0000 (13:32 -0800)]
Merge "Check for null filename before creating a new file."

14 years agoCheck for null filename before creating a new file.
Leon Scroggins [Mon, 8 Mar 2010 19:34:14 +0000 (14:34 -0500)]
Check for null filename before creating a new file.

Fix for http://b/issue?id=2496729

Change-Id: I2250e42621df787e2c73da6343436d669177d255

14 years agoMerge "Adding ability to resume test after crash."
John Spong [Mon, 8 Mar 2010 19:00:55 +0000 (11:00 -0800)]
Merge "Adding ability to resume test after crash."

14 years agoRefactor android.backup -> android.app.backup
Christopher Tate [Fri, 5 Mar 2010 23:47:48 +0000 (15:47 -0800)]
Refactor android.backup -> android.app.backup

Change-Id: Ifc005e14e8b7ac921ffa1a56a46c5c4083b4ea2d

14 years agoEnsure the fake title bar shows during loading.
Leon Scroggins [Fri, 5 Mar 2010 16:51:20 +0000 (11:51 -0500)]
Ensure the fake title bar shows during loading.

Previously, if the BrowserActivity was paused when the page starts
to load (as when loading from bookmarks or the search bar), showing
the fake title bar would fail.  Now do the check as the page continues
to load to guarantee that it shows.

Fix for http://b/issue?id=2487417

14 years agoMerge "if savePicture failes, delete the file (which is now unreliable, and possibly...
Mike Reed [Fri, 5 Mar 2010 15:30:25 +0000 (07:30 -0800)]
Merge "if savePicture failes, delete the file (which is now unreliable, and possibly large)"

14 years agoif savePicture failes, delete the file (which is now unreliable, and possibly large)
Mike Reed [Fri, 5 Mar 2010 15:13:34 +0000 (10:13 -0500)]
if savePicture failes, delete the file (which is now unreliable, and possibly large)

14 years agoCheck the network state in onCreate.
Patrick Scott [Fri, 5 Mar 2010 13:24:51 +0000 (08:24 -0500)]
Check the network state in onCreate.

This ensures that we set mIsNetworkUp before trying to load a page.

14 years agoClean up help text for "Reset to defaults"
Bart Sears [Fri, 5 Mar 2010 01:34:29 +0000 (17:34 -0800)]
Clean up help text for "Reset to defaults"

http://b/issue?id=2177671

14 years agoAdding ability to resume test after crash.
John Spong [Thu, 4 Mar 2010 22:34:27 +0000 (14:34 -0800)]
Adding ability to resume test after crash.

- Refactoring test method to allow for optional looping and cache cleaning
- Adding test status output to resume + notify after a crash

14 years agoMerge "Import new translations"
Eric Fischer [Thu, 4 Mar 2010 22:17:56 +0000 (14:17 -0800)]
Merge "Import new translations"

14 years agoImport new translations
Eric Fischer [Thu, 4 Mar 2010 22:03:59 +0000 (14:03 -0800)]
Import new translations

14 years agoMerge "Close the bookmarks cursor."
Patrick Scott [Thu, 4 Mar 2010 19:35:46 +0000 (11:35 -0800)]
Merge "Close the bookmarks cursor."

14 years agoClose the bookmarks cursor.
Patrick Scott [Thu, 4 Mar 2010 19:29:31 +0000 (14:29 -0500)]
Close the bookmarks cursor.

If no touch icon loader is created, close the cursor immediately. Close the
cursor in doInBackground to ensure that the cursor is closed even in error.

Bug: 2483029

14 years agoAttach the stop button to the textbox in the title bar.
Leon Scroggins [Wed, 3 Mar 2010 22:17:18 +0000 (17:17 -0500)]
Attach the stop button to the textbox in the title bar.

This also required using different assets for the title bar background.

Fix for http://b/issue?id=2485473

14 years agoGoing back to a voice search will reenter voice search mode.
Leon Scroggins [Wed, 3 Mar 2010 21:40:58 +0000 (16:40 -0500)]
Going back to a voice search will reenter voice search mode.

Store the Intent that initiated voice search mode in the history
item, so that when going back to that page, we can reinvoke voice
search with all of the intended extras.

Fix for http://b/issue?id=2425052

14 years agoMerge "Do not allow our resend/dontresend messages to be sent twice."
Leon Scroggins [Wed, 3 Mar 2010 17:03:01 +0000 (09:03 -0800)]
Merge "Do not allow our resend/dontresend messages to be sent twice."

14 years agorefactor find state and scrolling
Cary Clark [Wed, 3 Mar 2010 15:11:44 +0000 (10:11 -0500)]
refactor find state and scrolling

Explicitly call webkit to note when find dialog is visible,
to dismiss the find dialog and clear to matches.

Companion fix in frameworks/base and external/webkit

http://b/2370069

14 years agoUse SUGGEST_COLUMN_TEXT_2_URL in browser suggestions
Bjorn Bringert [Tue, 2 Mar 2010 11:20:29 +0000 (11:20 +0000)]
Use SUGGEST_COLUMN_TEXT_2_URL in browser suggestions

Before, the Browser used an HTML <font> tag to style
URLs in history / bookmark suggestions. The color used
was a hidden framework resource, it assumed that
the caller knew to interpret HTML mark-up, and it only
worked on a light colored background.

Now a separate column is used for displayed URLs, letting
the caller decide how to style URLs.

Part of the fix for http://b/issue?id=2380681

Change-Id: I1c3981de22bccf9cba2f2b903225ef1b50226758

14 years agoDo not allow our resend/dontresend messages to be sent twice.
Leon Scroggins [Tue, 2 Mar 2010 22:57:40 +0000 (17:57 -0500)]
Do not allow our resend/dontresend messages to be sent twice.

Fix for http://b/issue?id=2340086

14 years agoDo not insert duplicate urls into the browser database.
Leon Scroggins [Tue, 2 Mar 2010 21:01:49 +0000 (16:01 -0500)]
Do not insert duplicate urls into the browser database.

Move the logic for finding similar URLs to frameworks/base,
and use it in addBookmark.  In BrowserActivity, call smartUrlFilter
before calling updateVisitedHistory, so the '/' will be appended
before adding to the database.

Part of fix for http://b/issue?id=2442391

Depends on a change to frameworks/base

14 years agoMerge "SslCertificate should provide Date interface"
Brian Carlstrom [Tue, 2 Mar 2010 19:09:03 +0000 (11:09 -0800)]
Merge "SslCertificate should provide Date interface"

14 years agoSslCertificate should provide Date interface
Brian Carlstrom [Tue, 2 Mar 2010 18:02:34 +0000 (10:02 -0800)]
SslCertificate should provide Date interface

While working on out openssl code, I found a Y2k bug that the dates
from invalidate certificates could be shown as 1909 instead of 2009.
The reason was because SslCertificate/BrowserActivity passed the
values around as Strings even though the started as Dates (from
X509Certificate) and were converted backed to Dates before
presentation by BrowserActivity's reformatCertificateDate.

SslCertificate now maintains date fields internally as Date objects
without converting them to Strings. The constructor and String
accessors, which are now @deprecated, now specify the format as an ISO
8601 date string which uses 4 digit years.

BrowserActivity now reformatCertificateDate is now simply
formatCertificateDate and no longer has to convert from String to Date
and back to String to get proper Locale formatting.

CTS SslCertificateTest also updated.

14 years agoChange where "Search for web"'s position.
Grace Kloba [Tue, 2 Mar 2010 03:51:49 +0000 (19:51 -0800)]
Change where "Search for web"'s position.

If there is a matching history/bookmark, it will be
in the second place. Otherwise it will be in the first
place.

Fix http://b/issue?id=2314166

14 years agoMerge "Remove deleted files from the list of browser downloads."
Leon Scroggins [Mon, 1 Mar 2010 16:49:30 +0000 (08:49 -0800)]
Merge "Remove deleted files from the list of browser downloads."

14 years agoRemove deleted files from the list of browser downloads.
Leon Scroggins [Fri, 26 Feb 2010 22:58:31 +0000 (17:58 -0500)]
Remove deleted files from the list of browser downloads.

Fix for http://b/issue?id=2469085

14 years agoImport new translations.
Eric Fischer [Sat, 27 Feb 2010 01:27:31 +0000 (17:27 -0800)]
Import new translations.

14 years agoMerge "Remove unused resources."
Shimeng (Simon) Wang [Fri, 26 Feb 2010 21:00:09 +0000 (13:00 -0800)]
Merge "Remove unused resources."

14 years agoMerge "If a download finishes while the contextmenu is open, update it."
Leon Scroggins [Fri, 26 Feb 2010 20:14:57 +0000 (12:14 -0800)]
Merge "If a download finishes while the contextmenu is open, update it."

14 years agoIf a download finishes while the contextmenu is open, update it.
Leon Scroggins [Fri, 26 Feb 2010 19:16:41 +0000 (14:16 -0500)]
If a download finishes while the contextmenu is open, update it.

The contextmenu for a successful download should be different from
the one for a download in progress.  When the download completes,
remove the open contextmenu and open a new one, with the appropriate
options.

Fixes http://b/issue?id=2387032

14 years agoRemove unused resources.
Shimeng (Simon) Wang [Fri, 26 Feb 2010 19:40:27 +0000 (11:40 -0800)]
Remove unused resources.

This is generated by removeunusedresources tool.
Compiled and tested on passion/opal.  Compiled for voles.

Bug: 2456707

14 years agoRevert "Remove unused strings."
Shimeng (Simon) Wang [Fri, 26 Feb 2010 04:42:13 +0000 (20:42 -0800)]
Revert "Remove unused strings."

This reverts commit b0318df3b3f13fc61b97c1309e7426b9a586e603.

modified:   res/values-cs/strings.xml
modified:   res/values-da/strings.xml
modified:   res/values-de/strings.xml
modified:   res/values-el/strings.xml
modified:   res/values-es-rUS/strings.xml
modified:   res/values-es/strings.xml
modified:   res/values-fr/strings.xml
modified:   res/values-it/strings.xml
modified:   res/values-ja/strings.xml
modified:   res/values-ko/strings.xml
modified:   res/values-nb/strings.xml
modified:   res/values-nl/strings.xml
modified:   res/values-pl/strings.xml
modified:   res/values-pt-rPT/strings.xml
modified:   res/values-pt/strings.xml
modified:   res/values-ru/strings.xml
modified:   res/values-sv/strings.xml
modified:   res/values-tr/strings.xml
modified:   res/values-zh-rCN/strings.xml
modified:   res/values-zh-rTW/strings.xml
modified:   res/values/strings.xml

14 years agoMerge "Remove unused strings."
Shimeng (Simon) Wang [Fri, 26 Feb 2010 01:56:44 +0000 (17:56 -0800)]
Merge "Remove unused strings."

14 years agoMerge "Update the shortcut icons with new assets."
Patrick Scott [Thu, 25 Feb 2010 19:44:40 +0000 (11:44 -0800)]
Merge "Update the shortcut icons with new assets."

14 years agoUpdate the shortcut icons with new assets.
Patrick Scott [Thu, 25 Feb 2010 19:40:11 +0000 (14:40 -0500)]
Update the shortcut icons with new assets.

Position the favicon in the (almost) center of the asset.

Bug: 2168561

14 years agoUpdate to reflect android-common no longer in framework.
Dianne Hackborn [Thu, 25 Feb 2010 04:03:04 +0000 (20:03 -0800)]
Update to reflect android-common no longer in framework.

14 years agoRemove our dependency on gsf.
Patrick Scott [Fri, 19 Feb 2010 15:10:10 +0000 (10:10 -0500)]
Remove our dependency on gsf.

Hardcode the account values when looking up the hosted domain. We also hardcode
the settings uri for looking up the client id. This is the better solution for
now because the client id is written only once. If the partner setup were to
write the value to the BrowserProvider, it would get erased if the user decided
to reset the Browser.

14 years agoIf a tab was opened solely to download a file, close the tab.
Leon Scroggins [Tue, 23 Feb 2010 22:26:37 +0000 (17:26 -0500)]
If a tab was opened solely to download a file, close the tab.

Fix for http://b/issue?id=2217707

14 years agoMerge "Update the margin for the right icon."
Leon Scroggins [Wed, 24 Feb 2010 18:43:11 +0000 (10:43 -0800)]
Merge "Update the margin for the right icon."

14 years agoRemove unused strings.
Shimeng (Simon) Wang [Wed, 24 Feb 2010 18:26:26 +0000 (10:26 -0800)]
Remove unused strings.

This is generated by the remove_usused_strings script.

Bug: 2456707

14 years agoUpdate the margin for the right icon.
Leon Scroggins [Wed, 24 Feb 2010 17:19:15 +0000 (12:19 -0500)]
Update the margin for the right icon.

The drawables for the right icon have changed, so update the margin,
using the new margins in search_bar.xml as a guide.

Fixes http://b/issue?id=2463552

14 years agodisable mr-stretch (at least for now)
Mike Reed [Wed, 24 Feb 2010 16:12:54 +0000 (11:12 -0500)]
disable mr-stretch (at least for now)

14 years agoMerge "Implement test to iterate over list of URLs and store load times."
John Spong [Wed, 24 Feb 2010 01:15:08 +0000 (17:15 -0800)]
Merge "Implement test to iterate over list of URLs and store load times."