summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* MDM Incognito Mode RestrictionDave Tharp2015-05-213-1/+204
| | | | | | | | | | | | | Implements handling of MDM enforced restriction preventing the user from opening an incognito tab. When enforced by MDM, the Incognito button on the tabs screen is greyed out, and if tapped, presents a toast message informing the user that the setting is managed by the administrator. This commit includes basic unit tests. Change-Id: I26fcf10cc954f63c8e4489dbac9ff148e90b0c94
* Revamped EngineInitializerKulanthaivel Palanichamy2015-05-214-467/+261
| | | | | | | Also contains gyp changes to add a instrumentation test target for Browser Change-Id: I2ea26a4a57d9101c54f80f148c9333088016e141
* Remove hardcoded strings for homescreen dialog.Axesh R. Ajmera2015-05-191-4/+7
| | | | Change-Id: I580aa0301a1df55e7dbf84d9fd52a4ade57df49c
* Restore Snapshot Tab featureAxesh R. Ajmera2015-05-192-2/+18
| | | | | | | | When tabs were getting killed the state of the Snapshot Tab was not getting saved or restored. Change-Id: I7bddb045b15a7c23fd210158389cf779c633fba6
* MDM Do-Not-Track RestrictionDave Tharp2015-05-155-1/+390
| | | | | | | | | | | | | | | | | | | Implements handling of MDM enforced restriction preventing the user from updating the 'Do Not Track' checkbox in the Privacy & Security menu. When enforced by MDM, the 'Do Not Track' menu entry is greyed out, and if tapped, presents a toast message informing the user that the setting is managed by the administrator. The checkbox reflects the value set by MDM. Included in this commit is the basic unit tests and a new 'MdmCheckBoxPreference' class that manages the display of the toast message and makes it possible to update the state of the entry immediately (instead of having to restart the menu to have a new MDM setting take effect. Change-Id: I931d80ccf80474120dba2d768a7a257e337bece2
* Fixes UI hang issue in browserVivek Sekhar2015-05-141-3/+5
| | | | | | - Tab's capture API was not calling OnThumbnailUpdatedListener on certain conditions. Modified the code to call OnThumbnailUpdatedListener with empty bitmap to fix the UI hang issue.
* Fix for touch event on old viewAxesh R. Ajmera2015-05-141-1/+10
| | | | | | | | | | This change removes the old view before reattaching the new view to the fmraelayout It helps in propogating events such as touch event to the correct webview. Change-Id: I19b3d2bc0a869f7dc2bbc353f50d9bf9f9740976
* Added notification when the viewport needs to be shrunkVivek Sekhar2015-05-112-2/+12
| | | | | | | Topcontrol controls the viewport size.Browser now notifies the engine when the viewport needs to be shrunk. Change-Id: I996eb4e9561ffad605d2769d787c79e8b4e0e347
* Remove page error dialogsAxesh R. Ajmera2015-05-081-86/+1
| | | | | | | | Since interstitial error pages are already shown, this eliminates the need for popup dialog to be displayed in conjunction with it. Change-Id: I1221bb1d2d3fe5837d2e85747ec1befa4ba4babe
* Implement ComboView for Bookmarks, History and SavedPagesTarun Nainani2015-05-0414-469/+417
| | | | | | | | - Replaces ComboViewActivity for PhoneUi. - Lives as part of the BrowserActivity's ViewTree. - Avoids construction of ComboViewActivity everytime the bookmarks screen is opened. Change-Id: Ic7042de731a4cc2107a297c9f7d4356bc2c30f2e
* Remove unused permissions READ_PROFILE and READ_CONTACTSTarun Nainani2015-05-041-6/+0
| | | | | | | Initially those permission were added as part of AutofillHandler and code using those permissions is already removed. Change-Id: I85e5ddce48f95c398959a2e64141c87e4c83e111
* Copy commit for bookmarksTarun Nainani2015-05-042-0/+494
| | | | | | | | | Copy ComboViewActivity.java to ComboTabsAdapter.java and ComboView.java commit 3255876883b08a1704198254b493acd15b89d494 Change-Id: I85e5ddce48f95c398959a2e64141c87e4c83e033
* MDM URL Restriction unit test stability fixDave Tharp2015-04-301-2/+1
| | | | | | Java side. Reduced thread sleep time. Change-Id: I293ed842d85e3835c1e8aeea6b496d25c092800f
* MDM URL Filter Restrictions - Java sideDave Tharp2015-04-303-1/+603
| | | | | | | | | This commit implements the MDM restriction code for URL blacklist/whitelist. Also included is a fairly extensive unit test. Change-Id: Icf78e1eb828e282acd9a32b5c3b47a12d5b72142
* Fix for activity lifecycle in exit dialog.Axesh R. Ajmera2015-04-272-10/+7
| | | | | | The activity lifecycle was impacted because of the way, process was getting killed in Exit dialog This change fixes it.
* Unable to click history url whose length is greater than 2048Tarun Nainani2015-04-241-1/+0
| | | | | | | | | | | | This is regression caused by previous patch where we tried to make TextView to be multi line and scrollable. Fixed issue by removing 'setMovementMethod' call on TextView which was consuming onTouch event and due to which 'BrowserHistoryPage.onChildClick' method was never getting called. CR-Fixed: 804112 Change-Id: I085bf1d44b2f9e84adefb8180933a96c1d376310
* Add resource to control minimum number of active tabsTarun Nainani2015-04-241-10/+2
| | | | | | | | | | 'feature_min_active_tabs'- min number of active tabs. By default we keep number of active tabs as two for all devices including low tier. CR-Fixed: 804114 Change-Id: I085bf1d44b2f9e84adefb8180933a96c1d376323
* Autoupdate download file nameAxesh R. Ajmera2015-04-231-1/+25
| | | | | | | | | | In case of downloading same file multiple the download handler auto adds suffix to the filename Additional fix for mimetype Change-Id: Ic441cc4796eba0119e44a8f0a7b33b6b43ec2c44
* Cleanup tab crash view from browserVivek Sekhar2015-04-215-83/+9
| | | | Change-Id: Ic382071ef6cfdac1a45e187d331493fe15b0f1b3
* Fix popup crashTarun Nainani2015-04-211-30/+4
| | | | | | | | | Allow new window till allowed max active tabs. Remove confirmation dialog to display to the user when pop-up setting is blocked from the settings menu as now we are using chromium infobar for the same purpose. Change-Id: I5233efafe5395d87094355bf7ff9d7490352c1ee
* Add a power saving mode settingSite Mao2015-04-205-0/+132
| | | | | | | | | | Create a setting that tunes performance optimizations and improves the power usage. Automatically tune mode with the Power-saving mode of Android Lollipop+. Also, when the phone drops below threshold for low battery, prompt user to turn browser's power save mode on. Change-Id: I64089a371de562f9a18c297eb09555733f020515
* Added test for Proxy Restriction sequencing issueDave Tharp2015-04-201-0/+56
| | | | | | | We now test to ensure setting modes without first clearing behaves as you would expect. Change-Id: If3c54e1203ee5072dbabbbbaa0d33be7798810ca
* Use isSavable API for offline readingAxesh R. Ajmera2015-04-151-2/+3
| | | | | This helps in saving pages for offline reading only for valid mimetypes.
* Restore homepage dialog state on screen rotation.Tarun Nainani2015-04-141-2/+12
| | | | | | | | | | | Homepage dialog activity was not saving search url text while doing screen rotation. Fixed issue via saving url text inside bundle when 'onSavedInstance' is called and restoring url from bundle when onCreateDialog is called. CR-Fixed: 724867 Change-Id: I85e5ddce48f95c398959a2e64141c87e4c83e022
* Remove onDownloadStart of WebViewClientAxesh R. Ajmera2015-04-141-18/+0
| | | | | | | | The download listener already implements on the onDownloadStart, thus eliminating the need for WebViewClient to reimplement the same API Change-Id: I0873e9cf79f732461421ef44afa272fb351a27e7
* MDM Proxy Restriction Unit Test RefactorDave Tharp2015-04-131-23/+40
| | | | | | | Refactored to include comparisons aganist proxy values registered in native code. Change-Id: I512ae01c25ea341d9fd77e568f5bc97c5f797fda
* MDM Proxy Mode Restriction TriggeringDave Tharp2015-04-102-30/+43
| | | | | | | | | | Implemented triggering mechanism to transport MDM proxy settings to native code. Also modified unit tests to set mode to NULL instead of MODE_NONE. There's a subtle difference. Change-Id: I89f3873eb0398b4a4ac65553ed3c0ecf1b343399
* Adding unit tests for MDM Proxy RestrictionDave Tharp2015-04-082-6/+292
| | | | | | | | | | | | | | Unit tests to test various proxy modes' interaction with ProxyChangeListener. Also including fixes to bugs revealed by unit testing. These tests use the Bundle communications mechanism defined by MDM, but do not actually send data through the RestrictionsManager. This is enough for unit testing since involving the RestrictionsManager would be more of an integration/systems test. Change-Id: Ia5e12ccb1997594673d954dfbe878c0f4846b14a
* Fix default encodingTarun Nainani2015-04-081-5/+1
| | | | Change-Id: I4f270a54519d38db1c0a487b429094e635f0db00
* Search Engine Restrictions Unit Test RefactorDave Tharp2015-04-072-45/+77
| | | | | | | - Broke tests up into more logical sub-tests - Moved search restrictions test to 'tests' subdirectory and renamed to SearchRestrictionsTest.java Change-Id: I514189661b545f2375ad68bd0ab308728bec998d
* Reload page on network connectivityPankaj Garg2015-04-062-6/+19
| | | | | | | | This change will auto reload the page that failed to load due to network connectivity problem when the network becomes available. Change-Id: I85e5ddce48f95c398959a2e64141c87e4c83e0ca
* Change most visited template to use 'utf-8' encodingTarun Nainani2015-04-061-1/+3
| | | | | | CR-Fixed: 806100 Change-Id: Ia36d779044c6d840413fde227c356b34c169eece
* Fix for reloading pak on System Language changeAxesh R. Ajmera2015-04-061-0/+9
| | | | | | | When changing the system language, the browser and the sandbox process needs to be recreated Change-Id: Ib8322bb36e05870288313c7168fbdc93df97d270
* Prevent tab switcher from showing obsolete thumbnailsPankaj Garg2015-04-063-55/+65
| | | | | | | The browser will capture the tab bitmap only after first visual pixel has been drawn. Change-Id: Ic9ae344c8ff5b39e5e2a76eaf08ba06bd825aef9
* Add support for proxy restrictionsPanos Thomas2015-04-063-1/+156
| | | | | | | | | | | | | | Implement enforcement of the following chromium proxy restrictions: ProxyMode, ProxyServer, ProxyBypassList Originally cherry picked from 556a3ba3bb9dae768810181ace1e0b07fd5824c2. Includes fix for search restriction unit test failures when including proxy restrictions code. Also added some logging for functional verification. Change-Id: If7fc1d8be36fa600a3d974d6b584d504ed2faf71
* Unify top controls calls to TitleBarVivek Sekhar2015-04-032-14/+14
| | | | Change-Id: I71554e502c9543d44350a76218fd5052ee683cac
* Ensure TopControls height is set for fixed modeVivek Sekhar2015-04-031-2/+1
|
* Fix names for lock iconsPankaj Garg2015-04-031-7/+3
| | | | | | | | The names contained hold dark theme reference. The theme has been changed to white. Removed the theme reference from the logo names to make them generic. Change-Id: I8f9ad4e83d6d353c6351c6365dabe47cb5a569ee
* Remove temporary code create to disable web storageAxesh R. Ajmera2015-04-011-7/+0
| | | | Change-Id: I56b26cbefc0b58e3c0cea0d964ed6a4a60cc73a0
* Fix Browser main menu crash.Tarun Nainani2015-03-311-1/+1
| | | | | | | | | Chrome Shell and SWE browser resource had same layout 'menu_item' causing issues with certain build enviroment overlaying SWE browser resource with Chrome Shell. Renamed SWE browser layout to avoid one getting overlayed with another. Change-Id: I8c4111c2bd2de046a67644293c82b5b7cfdda60f
* Enable network activity hintDany Rybnikov2015-03-291-2/+2
| | | | Change-Id: If56ae2f8e3d53878a02d54f4c3e53114cd23b676
* Using navigation bar height to request transparent region during ↵Devdeep Choudhury2015-03-271-1/+1
| | | | | | | | | | translateTitleBar After pageload the titlebar is somehow getting an incorrect height causing the requestTransparentRegion to not getting executed. Hence using the navigation bar height instead Change-Id: Icac0ff4b0b2a5ab53fda64795279e22c29547387
* Fixes issue with topcontrol during navigationVivek Sekhar2015-03-261-5/+4
| | | | Change-Id: I723003e9c3709c0c44911492583f94cb956dba91
* Fix browser crash on high resolution device while adding bookmarkPankaj Garg2015-03-262-2/+15
| | | | | | | | | | | The bitmap of page was being sent as part of intent. The binder was throwing an exception due to large size of bitmap. Removed the bitmap from intent and added a static method in Controller to expose the bitmap object. CR-Fixed: SWE-4171 Change-Id: I9000b3ffa83e2846881fef5486bee07479a7b2ce
* Add support for managed profile configurationPanos Thomas2015-03-258-7/+669
| | | | | | | | | | - Add framework for reading and enforcing managed profile restrictions. - Implement enforcement of search engine restriction. - Add automated test for search engine restriction. (cherry-picked from 4688934c52fa74e0c4280e4105e644f10221a8ed) Change-Id: Ifb6018df584fedba42e86ab35d9bfa53b4d36ebe
* Fix browser Privacy and Security settings for screen rotationPankaj Garg2015-03-251-2/+3
| | | | | | | | | | Fixed following issues - Display reverts to browser's main settings panel from Privacy and Security panel on screen rotation - Crash when screen shows Clear Stored Data popup and device is rotated Change-Id: Iaf0c3aea2e8b8e77b449b540bc62f522040179ef
* Fix for current state of the tab on Memory Monitor destroyAxesh R. Ajmera2015-03-242-2/+24
| | | | | | | | The title, url and incognito state of the tab was getting reset, when the webview was destroyed by memory monitor. This change restores the current state Change-Id: I65c6f85d1a33c5c9848d861b44352fc1757b8def
* Add bookmark popup shows incorrect folderPankaj Garg2015-03-201-0/+1
| | | | | | | | | | The add bookmark popup was showing "Other Folder" as the destination folder for the bookmark. It should show "Bookmarks" folder. CR-Fixed: 804106 Change-Id: Ifbc737e85bd82109442ce35ac0605be4c05ae8e5
* M42 snap browserVivek Sekhar2015-03-1016-61/+158
| | | | Change-Id: If52741ad5e34241aa9f928244942a33a91610e58
* Reduce screen-shot bitmap memory usageSudheer Koganti2015-02-181-18/+35
| | | | | | | | Get a scaled down version of the screen-shot bitmap to reduce memory consumption and system stress. Obtained bitmap is rescaled back to full size via memory conserving RGB_565 format. Change-Id: I711cca33ff03cc81edabd180e0174abbc999ad02