summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/UrlHandler.java
Commit message (Collapse)AuthorAgeFilesLines
* am f1077df4: am 5baac25e: Merge "Log an error when no activity is found to ↵Ben Murdoch2014-12-111-8/+13
|\ | | | | | | | | | | | | handle a URL." * commit 'f1077df463b0792dc9285286071b64f64ddbb623': Log an error when no activity is found to handle a URL.
| * Log an error when no activity is found to handle a URL.Ben Murdoch2014-12-111-8/+13
| | | | | | | | | | | | | | Rather than crashing due to ActivityNotFoundException. Bug: 13930087 Change-Id: Id3af8301bb87298b885a24f70bf184abe4fc2a11
* | Added a check for an exceptionSelim Gurun2014-10-281-1/+7
|/ | | | | | Bug:18074899 Change-Id: I6f602f37a622f5a86f3e9a33021c018a3aa93cb6
* Sanitize selector Intent when handling intent: scheme.Marcin Kosiba2014-05-071-0/+5
| | | | | | | | | Android Intents have a selector field which, if present, are used to search for the Activity to invoke. These must also be sanitized before handing off to the OS. BUG:14562482 Change-Id: I21752bc7841cf452ed42547acb6816f044130901
* Disable URL overriding on redirectsJohn Reck2012-06-141-0/+1
| | | | | | | | Bug: 5334118 When sending an intent for a URL with specialized handlers, tag it with an extra that will surpress subsequent redirections Change-Id: I997aa79192baea86c58958ab213200d57ec4c4f9
* Re-use tab for an intent created by browserMichael Kolb2012-04-171-1/+1
| | | | | | Bug: 6332680 Change-Id: If9c754e2320e8f112a816c54138918fbaf360597
* Fix generic filter checkJohn Reck2011-12-151-1/+1
| | | | | | Bug: 5768794 Change-Id: I72d98d1750232bfdedc88b2cbf3ff76c088e89d2
* Fix blank page activity selection bugJohn Reck2011-08-291-6/+14
| | | | | | | | | | Bug: 5191031 Sets an app id on the tab so that if the intent comes back to us, it is opened in the current tab. Close empty tabs correctly if the intent goes elsewhere Fix Tab.syncCurrentState to deal with WebView.getUrl() == null correctly Change-Id: I31e1e1f6688fb5c5c31ba07dde4e6b3bad34fb13
* ignore rlz task if browser is pausedMichael Kolb2011-07-191-0/+2
| | | | | | | | Bug: 4575720 When the RLZ task wants to load the url, make sure browser is still running, otherwise ignore the task Change-Id: I74f491177e61435ea6a427e9b5a0d85d3854f27f
* Prevent webview reuseJohn Reck2011-06-211-1/+1
| | | | | | | | | | | Bug: 4742007 Bug: 4770356 Also pipe all loadUrl's through Tab so that it can immediately update its internal state. This is necessary as javascript: uris do not cause onPageStarted/finished callbacks to happen, thus the url and title of the Tab do not update. Change-Id: I6d17e8627db505eaa9158339fdfc7afd2c6672a2
* introduce tab IDsMichael Kolb2011-05-121-1/+1
| | | | | | | 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-1/+3
| | | | Change-Id: Ibcffa5a55b2b7dcf56174f9dd916a565b31506e9
* Browser settings refactorJohn Reck2011-04-261-3/+5
| | | | Change-Id: I6fc1b21f7ea692fbe37a17bf900e9b7408a9c077
* Handle unsupported schema case betterJohn Reck2011-02-111-2/+6
| | | | | | | | | Bug: 3442811 3443962 Fix it so that the check for specialized handlers takes into account whether or not webkit can even handle the schema. If it can't handle the schema, we always want to call startActivity Change-Id: Ib7667f9fe6c3ea0602ccc1fdfce09b5920757a63
* Prevent activity selection dialog spamJohn Reck2011-02-091-1/+34
| | | | | | | | | Only show the activity selection dialog if there is a non-browser intent handler for the intent. For example, if you click on a google maps link, we want to show the dialog so the user can jump to the native app Change-Id: I0671e9782c34a32623087861b0cc313c0c5405c8
* Fix 3373012, null pointer in WebView.loadUrlRussell Brenner2011-01-211-8/+11
| | | | | | | | UrlHandler can spawn a background RLZTask which will, upon completion, load the url. This change checks with the controller to see that the tab is still open before loading the url. Change-Id: If756c1bc1f79b54878c7d03b5bc5f86b8ab07245
* Different approach to auto signin.Patrick Scott2011-01-131-181/+0
| | | | | | | | | | | | | On startup, attempt to log the user into google sites. Show a progress dialog that the user can cancel if login takes too long. Add a new preference for toggling auto signin. This preference shows the current account and allows the user to choose the account to use. If there are no accounts, the option is disabled. The saved account is validated each time it is accessed in case the account was removed. Bug: 3278072 Change-Id: I10ce1dc57a683b2820b17ef6955577037c82f332
* Fix 3337625 to follow link to Google ImagesRussell Brenner2011-01-131-6/+24
| | | | | | | | Prior fix for 3296929 caused Images link to stop working. When the Activity Manager is not needed, the RLZ background task must load the URL itself. Change-Id: I10416c97b09fb560dad0cd9bb24673d24a22e0b8
* Fix 3296929 to show available actionsRussell Brenner2011-01-071-46/+56
| | | | | | | | RLZ handling was causing links for google properties to bypass the Activity Manager. Refactored the relevant code as startActivityForUrl() so that it could be used for both RLZ and non-RLZ links. Change-Id: Icdacdaafe92671767397fe8cba3503636072eabf
* First draft of autologin.Patrick Scott2010-12-161-2/+183
| | | | | | | | Does not work for hosted accounts and is kind of hacky for most properties. Requires a change to webkit to get redirects sent to the app. Bug: 3278072 Change-Id: I2e7b716413ac61f84fb9b3d66d6da0615ada0b84
* Propagate incognito mode to child tabMichael Kolb2010-12-101-2/+2
| | | | | | | | | Bug: http://b/issue?id=3234294 add parent tab parameter to open tab method inherit parent's private browsing status remove one unnecessary openTab signature Change-Id: I4edf002798d8bbdf4cafa58e5b5b442e74d5cb28
* Fix StrictMode violation in shouldOverrideUrlLoadingBen Murdoch2010-12-081-16/+39
| | | | | | | Move the RLZ string database lookup into a background thread to clear up a fairly regular Strict Mode violation. Change-Id: I2a7bcc6649b6e3ae433226d838673ea8aef02db7
* Controller RefactorMichael Kolb2010-11-171-0/+238
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