summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/TabControl.java
Commit message (Collapse)AuthorAgeFilesLines
* Stop loading subview in stopAllLoadingMattias Nilsson2012-07-271-1/+1
| | | | | | | The main webview is stopped twice instead of stopping the subview loading. Correcting this cut and paste error. Change-Id: Ic12c7219d222d42f59e27f1cda0cd65a003b41ca
* fix back key on tabs behaviorMichael Kolb2012-01-171-1/+1
| | | | | | | | Bug: 5851422 5841282 don't restore back/forward list when re-creating a webview Change-Id: I4648ced38aafedb8e129f599f0ea28f7520da9b8
* Make sure preloaded tabs have unique IDs.Mathew Inwood2011-09-021-0/+6
| | | | | Bug: 5251821 Change-Id: I6dd7561a2461805912268a5faf967199cf39fd8c
* Fix issues with state save/restoreJohn Reck2011-08-291-11/+13
| | | | | | | | | | | | | Bug: 5144214 Tracked down the issue with messed up state to a bug where tab ids were not unique, and would actually get messed up in restore. Switched it to the tab's responsibility to assign an id to itself in the ctor to make sure all possible paths where a tab is created are fixed as well as the tab being the best informed about whether or not it has an ID to restore from. Added some checks to watch for a similar problem in the future as well. Change-Id: Icd8333232a0baca7a3639323538886ea595de05a
* Faster all the things!John Reck2011-08-171-8/+0
| | | | | | | | | | Bug: 5177959 Improve browser startup. Elinate IO access on UI thread during startup by removing the super legacy ClearThumbnails task. Also rework how the hardware acceleration debug setting works to remove the requirement for initialized BrowserSettings in onCreate Change-Id: I4c1014d380827af4833586e6a3ae842fd59aa48b
* Reduce capture frequencyJohn Reck2011-08-091-0/+19
| | | | | | | | | Bug: 5142655 Only capture while the navscreen is visible Fix Tab.capture to never capture the title bar Fix navscreen not responding to updated thumbnails Change-Id: Id48ad32bb131c398c7d1ce4243e92f04cd421ade
* Restore overhaulJohn Reck2011-07-271-29/+14
| | | | | | | | Bug: 5069192 Store thumbnails in a database restored async for each tab Fix restoring a tab not restoring its current state Change-Id: I2c14e352638aac0ef766fb3bf4036ff220c53ecd
* handle preload tab when max count is reachedMichael Kolb2011-07-271-0/+19
| | | | | | | | | | Bug: 5066968 when opening the pre-load tab, check against max count if max count is already reached, replace the least used tab with the pre-loaded tab; it's back/forward history will be lost Change-Id: I091b6b066a3e990f330be458d4aff72f62c8de38
* Fix TabControl#canCreateTab.Narayan Kamath2011-07-261-4/+3
| | | | | | | | | | | | Preloaded tabs don't obey the tab limit (yet) so if a single preloaded tab pushes the tab count up to mMaxTabs + 1, canCreateTab will always return true from that point on. This is just a partial fix, because Preloaded tabs still don't obey this limit. bug:5066968 Change-Id: I6bd574485a6e0f94324c9f6d0cb7624b8951e576
* Fixes an NPE observed during state restoration.Narayan Kamath2011-07-201-4/+10
| | | | Change-Id: Ie91076a46b33d4524341886f61e6c89d6ed3bfd7
* fix restore bugMichael Kolb2011-07-131-4/+19
| | | | | | | | | Bug: 5023284 only save tab id's if the tab state can be saved this prevents trying to restore tabs that didn't get saved Change-Id: I9ca8a3f71c4cb9029718492fbd5447e782524869
* Saved Pages tabJohn Reck2011-07-011-20/+0
| | | | | | | | | | Bug: 4982126 Add saved pages tab Remove "save page" menu option Add "save for offline reading" menu option Smooth animation to combo view Change-Id: Ia67552a6f6a5474a6dfcff6790a341d4d36d5a77
* Preloading support in browserMichael Kolb2011-06-301-0/+8
| | | | | | | | | | | | | | | | | Apps like the QSB can request the browser to preload a web page. - preloaded pages are not added to the browser history if they'r not seen by the user - when a request is received, a new tab is created for the preloaded page, but not added to the tab list - upon receiving the view intent for the preloaded page the tab is added to the tab list, and shown - if several pages are preloaded consecutively in the same tab, the back stack is cleared before it is displayed - preloaded pages use the main browser cookie jar, so pages that have never been viewed by the user can drop cookies Change-Id: I9ed21f2c9560fda0ed042b460b73bb33988a2e8a
* Fix IntentHandler behaviorJohn Reck2011-06-291-20/+8
| | | | | | | Bug: 4473779 Plus, TESTS! Huzzah! Change-Id: I043e100d99d4653b7fb7885217d7fb305930a137
* Clarify restore dialog, prevent spamJohn Reck2011-06-171-6/+11
| | | | | | | | | | Bug: 4599646 State that it is the browser's windows/tabs to be restored and show the browser's app icon in the dialog. Also cut down on the frequency this prompt will appear by ignoring tabs that haven't loaded anything except the home page. Change-Id: I2c2cc03aa92da3199c47b455256145d392548930
* Persistent frozen tabsJohn Reck2011-06-141-4/+44
| | | | | | | | On Tablet WebViews for frozen tabs are created on demand On Phone WebViews for frozen tabs are tied to the lifecycle of the SnapshotTab for nav screen reasons (for now) Change-Id: I80cb48e748c4dd4b8564426d5e05b92f3eea7a36
* fix various NPEsMichael Kolb2011-06-101-1/+5
| | | | | | | | | | | | | Bugs: 4597115 4580514 4580511 4560889 4545346 Monkey proofing nav screen; disabled pause/resume during scroll Change-Id: I4e24b91fc0b6c008cb4e2df113316c0063f0c915
* Prevent crashing in CrashRecoveryHandlerJohn Reck2011-05-271-2/+4
| | | | | | | Catch Throwable instead of Exception Don't save screenshots for crash recovery Change-Id: I22c36dc644ae597c609880d2ced79436918d83a6
* introduce tab IDsMichael Kolb2011-05-121-100/+94
| | | | | | | Tabs are identified by IDs now, instead of their position Refactored the save/restore code Change-Id: I7133d55831201d097dc19ec938a85e7085f36749
* refactor open tab codeMichael Kolb2011-05-091-5/+4
| | | | Change-Id: Ibcffa5a55b2b7dcf56174f9dd916a565b31506e9
* Browser settings refactorJohn Reck2011-04-261-3/+0
| | | | Change-Id: I6fc1b21f7ea692fbe37a17bf900e9b7408a9c077
* Clear session cookies before attempting pre-login.Patrick Scott2011-02-041-75/+90
| | | | | | | | | | | | | If ClientLogin issues session cookies, we do not want to clear them immediately after getting them from login. If we are not going to restore tabs, go ahead and clear the cookies before attempting pre-login. Keep track of the tab to restore so that we don't need to figure it out again. Requires a change in frameworks/base that exposes the CookieManager api. If we receive a 403 from IssueTokenAuth, inval the auth tokens and try again. Bug: 3421214 Change-Id: I5dd4cc0eba365a20a731ac43dd2571ef6274eaa9
* Overhaul handling tab data updatesJohn Reck2010-12-171-25/+2
| | | | | | | | | | Bug: 2127502, 3191165 Pushed some state tracking to the tab for URL, title, favicon, and lock status. This allowed me to remove many duplicate methods of updating that data, preventing the UI from getting out of sync with the web view. Change-Id: I995caa98068ad03ca37710207b5ab57bb9d801ab
* Fix NPE in pauseWebViewTimersMichael Kolb2010-11-301-14/+0
| | | | | | | | | | | | | Bug: http://b/issue?id=3225410 added Tab parameter to pauseWebViewTimers removed unnecessary activityPaused parameter ensure tab is not null when called removed pauseCurrentTab method in TabControl changed resumeWebViewTimers to be consistent removed resumeCurrentTab from TabControl Change-Id: I1cdf6042aa4df4c832d91c5a19d7235d6dce2b5d
* restore all tabs on demandMichael Kolb2010-11-191-5/+19
| | | | | | | | Bug: 3214151 introduced new flag to determine if all tabs should be restored controlled by the Ui implementation Change-Id: I3e296f87a93fae54693bca186bb06ecd6db11d02
* Controller RefactorMichael Kolb2010-11-171-91/+15
| | | | | | | | | | Bug: 3170671 First step towards a model/view/control design in Browser introduced Controller object started separating UI code represent state of the app in one place only Change-Id: Ica387d6bde2dcf1a4993c3db0cce498cf34ff60f
* Fixes tab title not updating correctlyJohn Reck2010-10-291-1/+1
| | | | | | | | | | Bug: 3130982 Fixes the bug where the tab title would stay the same until a new title was received. Now the title changes to "Loading..." until a new title is received, or changes to the URL if the page finishes or is canceled without receiving a title. Change-Id: I667acbaeea5383b6a434c20337d404f49b947b0d
* Fixed favicon bugJohn Reck2010-10-261-1/+1
| | | | | | | | | Bug: 2955542 Fixed a bug where navigating from a site with a favicon to a site without a favicon displayed the old site's favicon instead of a generic icon. Change-Id: I830706166283d2ae425f4a9680cdbb4ef31b1de9
* Remove unused drag tracking codeBjorn Bringert2010-10-141-15/+0
| | | | Change-Id: I1284704472178b0de6634e911fc88d37855b519d
* Remove some unnecessary use of hidden APIsBjorn Bringert2010-10-121-1/+1
| | | | Change-Id: Ie72947017550d759994e34d7db8087d1f9e6d63a
* increase max number of tabsMichael Kolb2010-09-271-5/+8
| | | | Change-Id: I45cd23442fc0d4d3d117f9eca6051b79169d9c0d
* disable zoom buttonsMichael Kolb2010-09-031-0/+12
| | | | Change-Id: I6b99b74bb1930c6a66903bd4894f51f3aaf33e89
* Browser incognito mode session expiration.Elliott Slaughter2010-09-011-7/+37
| | | | Change-Id: I3736ce91bd5ecbcead7a80228680c9fcbf7c374b
* Cleanup temporary incognito mode files after last tab closes.Elliott Slaughter2010-09-011-0/+13
| | | | Change-Id: Ia685fb162d7449d2cd850e87607eff39cc8893a5
* UI revision for tabbed browsingMichael Kolb2010-08-061-4/+2
| | | | | | | | | | bug # http://b/issue?id=2712871 separated tab bar from url bar subclassed webview for scroll listener added search button support Change-Id: Ib9bd0c7e815e2ef08cdd20334daf61263cd52938
* Initial work on browser incognito mode history feature.Elliott Slaughter2010-08-051-5/+16
| | | | Change-Id: I5d1575a9b74704abc313b322ae08ca7caaccdc69
* tabbed title bar workMichael Kolb2010-07-271-1/+48
| | | | | | | | | | | | | bug # http://b/issue?id=2712871 added tab bar added tab status callbacks to Tab and TabControl added compact progress/stop/refresh button added UrlInputView for auto-complete suggestions modified BrowserProvider for url input suggestions modified BrowserActivity to use TitleBarXLarge Change-Id: I62db2be5b89f4c4f27c09dbc6fee7b3b0d5e91b5
* remove save/restore picture from browser appCary Clark2010-07-271-9/+0
| | | | | | | | | | These pictures may be arbitrarily large, and with the newer caching mechanism, are rarely used. Also, remove any old pictures when the Browser starts. Change-Id: I08e1720a198b159733fda819304dc6af6811390a http://b/2650945
* More aggressively free up the background tabs whenGrace Kloba2010-04-121-29/+36
| | | | | | | memory is low. Instead of free one tab per onLowMemory, free half of opened tabs as onLowMemory is not called as often as before. Fix http://b/issue?id=2583335
* Treat voice searches from within the browser differentlyLeon Scroggins2010-04-081-6/+4
| | | | | | | | | | | | | | | | | from those initiated from outside the browser. Fix for http://b/issue?id=2546173 For a voice search initiated from outside the browser, an appId will be attached. In that case, try to reuse the application tab. In TabControl.recreateWebView, treat this as if the url does not match the old url, so a new WebView will be created with a fresh history list, and the back key will exit the browser. However, if no appId is provided, simply reuse the current tab. In this case, the history list will be preserved, and pressing the back key will return to earlier voice searches. Change-Id: I9ec1efd56454ba94eb2bc348c4476fb6bd025dad
* Do not destroy the backforward list when doing another voice search.Leon Scroggins2010-03-171-2/+9
| | | | | | Fix for http://b/issue?id=2516327 Change-Id: I0daf8ba6e24be6682d849107914877fb0c31ec4f
* If a tab was opened solely to download a file, close the tab.Leon Scroggins2010-02-241-5/+0
| | | | Fix for http://b/issue?id=2217707
* disable mr-stretch (at least for now)Mike Reed2010-02-241-1/+1
|
* roll MR3 stretchy changes into masterMike Reed2010-01-291-1/+15
|
* Fix a legit crash that the monkey found.Patrick Scott2010-01-281-4/+12
| | | | | | | | | If the device is running low on memory, the Browser may free background tabs. removeTab could potentially remove a tab that has a lower index than the current tab. That would cause mCurrentTab to point to the incorrect tab. Update mCurrentTab if that is the case so it is pointing to the correct index. Bug: 2371002
* enable stretch[1] by defaultMike Reed2010-01-141-2/+2
|
* Clear parent/child tab relationships when clearing history.Leon Scroggins2010-01-111-0/+9
| | | | Fixes http://b/issue?id=2330279
* add initial dragtrackersMike Reed2009-12-171-0/+3
| | | | deleted: src/com/android/browser/TestTracker.java
* Move Tab out of TabControl to its own class. So thatGrace Kloba2009-10-091-828/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | each tab has its own WebViewClient, WebChromeClient, ErrorConsoleView, lock icon type and inLoad (matching mPageStarted) state. Clean up BrowserActivity, TabControl, create a new Tab class. Fix stopAllLoading() to stop all main window and sub window loading. Remove mScale/mScrollX/Y from PickerData as it is not used any more. Remove doFlick/SensorManager as it is not used any more. Remove whiteList as it is not used any more. Remove MASF proxy service as it is not used any more. With this change, we will take the snapshot even when it is in the background. we will update the touchicon url even when it is in the background. we will update the bookmark/history even when it is in the background. we will update database quota and max appCache size even when it is in the background. we will show the error dialog of the background tab when it is brought to the foreground. (New behavior) we will update the lock icon correctly when switching tabs. we will proceed the http auth request for the background tab if we already have username and password. Fix http://b/issue?id=2158621
* Stop the loading after WAKELOCK_TIMEOUT (5min) whenGrace Kloba2009-10-061-0/+10
| | | | | | | | the Browser is in the background. So we won't continue to burn the battery if there is some mis-behaved JavaScript running. Fix http://b/issue?id=2147840