2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-15 18:12:54 +00:00
Commit Graph

578 Commits

Author SHA1 Message Date
Jonathan Almeida
f614c0b18d For #12287: Add Synced Tabs to Tabs Tray 2020-08-19 17:37:56 -04:00
Kate Glazko
f83372b67c For #349: View Downloads 2020-08-19 11:23:50 -07:00
Gilbert Gilb's
2743c37b40 Add custom Activity to show libraries licenses.
As Google's library for showing licences isn't open-source, this commit
reimplements its main Activity. This is in prevision to having an OSS
flavor of fenix.

We chose to not introduce dependencies to third-party libraries
such as AboutLibraries for now, and we'll stick to using Google's gradle
plugin for the dependencies extraction.

Fixes #7584

See also #162
2020-08-17 19:18:22 -07:00
Arturo Mejia
5d14688448 For issue #12796: Ensure Cookie purging is only active in nightly or debug. 2020-08-17 10:03:25 -04:00
Tiger Oakes
a04b91ee3c
FNX-14513 ⁃ For #12862: Use concept-menu in library (#13332) 2020-08-14 16:44:09 -07:00
Tiger Oakes
57e557fd18
Use AC version of PrivateNotificationService (#12459) 2020-08-14 16:08:41 -07:00
Kainalu Hagiwara
1ad9da09b0 Remove selection holder from bookmark viewholder constructors.
Now that we're passing the mode to the viewholders in their bind
methods, there's no real need to pass them into their constructors. This
also allows us to remove the indirection of having the adapter implement
the SelectionHolder interface and have the mode implement it directly.
2020-08-14 13:03:08 -07:00
Kainalu Hagiwara
b1db1cf976 Add tests for Bookmarks DiffUtil and ViewHolders. 2020-08-14 13:03:08 -07:00
Tiger Oakes
0aab7a806a Add test for createInitialSearchFragmentState 2020-08-14 13:01:24 -07:00
Tiger Oakes
3086d8a694 Add test for search dialog controller 2020-08-14 13:01:24 -07:00
Kainalu Hagiwara
d9ffac0c89 For #13405 - Use toolbar location relative to the whole screen instead of window. 2020-08-13 14:08:49 -07:00
codrut.topliceanu
f0a045f9b9 For #13390 - Fix for stuck readerMode appearance controls 2020-08-13 15:27:31 +03:00
Mugurell
b993b94be1 For #12857 - Use Collection title when sharing tabs collection
Avoided passing the subject for sharing a collection of tabs in the ShareData
object since ShareData is part of a web standard.
2020-08-12 13:40:58 +03:00
Kainalu Hagiwara
09473b991d For #12926 - Add back button to menu. 2020-08-11 10:36:55 -07:00
Arturo Mejia
841d19e8be Fix breaking behaviour on BrowsersCacheTest from AC 54.0.20200810074539 2020-08-10 12:54:25 -04:00
Sebastian Kaspari
77263aad70 Validate deep links. 2020-08-10 15:58:32 +02:00
Jonathan Almeida
9568bdaed8 Update Android Components and fix breaking tests 2020-08-07 19:49:59 -04:00
Sebastian Kaspari
c93a29f89a Simplify build variants to just: debug, nightly, beta and release.
Co-authored-by: Johan Lorenzo <jlorenzo@mozilla.com>
2020-08-06 11:52:10 +02:00
Tiger Oakes
d45af2a717
For #11903: Fix private custom tabs (#13327) 2020-08-05 16:24:47 -07:00
Kainalu Hagiwara
30c7b5ea5e For #12831 - Disable SwipeRefreshLayout while swiping a bookmark. 2020-08-05 09:00:43 -07:00
Kainalu Hagiwara
5318d64911 For #12906 - Fix swipe-to-delete bookmark folder. 2020-08-05 08:59:26 -07:00
ekager
a1a839f237 For #13221 - Update global ETP to include PBM 2020-08-04 14:34:24 -04:00
Tiger Oakes
c9f8986d2b
Don't init glean in unit tests (#13100) 2020-08-04 11:18:52 -07:00
Jeff Boek
ef7cf4fdcf For #13229 - Cache deviceId for reuse 2020-08-04 11:07:20 -07:00
Tiger Oakes
f3f470a977
For #13140: Use concept-menu for saved logins menu (#13143) 2020-08-02 18:48:10 -07:00
Michael Comella
5d8c900391 For #12802: add StorageStats glean metrics. 2020-07-31 16:05:06 -07:00
Tiger Oakes
1d28f63737
Closes #12522: Reuse exceptions code (#13047) 2020-07-31 13:24:14 -07:00
Kainalu Hagiwara
52e19ec743 For #12888 - Add highlight to current page in tab history. 2020-07-31 12:54:42 -07:00
Mihai Branescu
64072a1256 For #11498/#11499 - added/fixed unit tests 2020-07-31 21:42:57 +03:00
Kadeem
78126122ad For #12769: Refactored Background Service Test into multiple test cases. 2020-07-31 10:47:11 -07:00
Mugurell
ab2ea8e682 For #13037 - Use email to sign in to fxa if device has no camera
App can be installed on devices with no camera modules. Like Android TV boxes.
Will skip presenting the option to sign in by scanning a qr code in this case
and default to login with email and password.
2020-07-31 20:02:23 +03:00
Mihai Eduard Badea
58e24b81aa For issue #12400 - Refresh swiped collection tab view
Item is now refreshed by calling notifyDataSetChanged on the adapter when the last tab from the collection has been swiped away and the user cancels the deletion by pressing the cancel button from the dialog.
Also added a "wasSwiped" flag to onCollectionRemoveTab in order to check if the tab was deleted from a swipe action and not by pressing the "X" button.
2020-07-31 12:48:32 -04:00
Tiger Oakes
5ddf8beea7 Fix suggestions, extract layout for tab history 2020-07-30 17:54:09 -07:00
Tiger Oakes
6152469ffd Add tests for tab history 2020-07-30 17:54:09 -07:00
mcarare
ed8a9bd1a0 For #12565: Remove activity from DefaultTabTrayController constructor. 2020-07-30 13:33:02 +03:00
Tiger Oakes
1a51b7f874 For #13084 - Use runBlockingTest 2020-07-29 21:51:28 -04:00
Tiger Oakes
0e3acfcd94 Move config to robolectric.properties 2020-07-29 17:46:26 -07:00
Tiger Oakes
f75be41d3a Add metric tests 2020-07-29 14:58:48 -07:00
Kainalu Hagiwara
57c7955637 For #12865, #12990 - Disable swipe to switch tabs gesture when the keyboard is visible. 2020-07-29 14:55:03 -07:00
ekager
1497e4886e For #13084 - Update SavedLoginsStorageControllerTest 2020-07-29 15:15:18 -04:00
mcarare
048f6a49fe For #12565: Pass passwordsStorage instead of context in constructor. 2020-07-29 12:15:16 -04:00
mcarare
4b74ff186b For #12565: Remove context from DeleteBrowsingDataController constructor 2020-07-29 17:46:43 +03:00
sraturi
537d95c04d for #11830 created class containing the logic for sending AllStartup telemetry logic
lint check

renamed the intentReceived telemetry to appOpenedAllSource

added comments

removed unused code

moved lifecycle process to AppAllSourceStartTelemetry

moved tracking event out of init function

lint fix

moved appAllStartTelemetry to components

added bit more info about the metrics

added the  onReceivedIntent metric back

minor fix

change discriptions based on the comments frm MR

wrote test cases for AppAllSourceStartTelemetry.kt

lint fix

test case to mock application going background

post rebase:

post rebase:

fixed nit from comments

fixed nit from comments

fixed nit from comments

lint fix

lint fix
2020-07-28 17:09:42 -07:00
Tiger Oakes
8d1bd10e6b Test paged history provider 2020-07-28 12:35:34 -07:00
Jonathan Almeida
239e3de5e9 For #12856: Add save to collections button to Tabs Tray
Using the ConcatAdapter, we're now able to insert multiple data sources
of information into one RecyclerView and preserve layout/scrolling in
addition to adding the 'Save to Collection' button.
2020-07-28 11:14:08 -07:00
Jeff Boek
46f010f247 For #2681 - Adds ability to bypass cache when reloading 2020-07-27 12:11:11 -07:00
Tiger Oakes
d640f58316 For #12565 - Clean up controller and add tests 2020-07-27 10:40:09 -07:00
ekager
e5e62fa79a For #6846: Added quick actions for nav bar in home 2020-07-27 13:28:28 -04:00
ekager
46511d6f8e For #10163 - Adds tab multiselect mode 2020-07-24 18:18:26 -04:00
Jonathan Almeida
d15b8381a6 For #10925: Fix breaking APIs in tabs tray 2020-07-24 16:52:06 -04:00
Sawyer Blatz
9c56e1905b For #12793: Improve snackbars for tabs tray 2020-07-24 10:56:54 -07:00
Tiger Oakes
d3a07e95c9 For #12565: Don't pass contest to SortingStrategy 2020-07-23 19:05:11 -04:00
Tiger Oakes
652af79e95
Migrate from Session.toTab to BrowserStore (#12221) 2020-07-23 12:27:39 -07:00
Tiger Oakes
9af167ba0a
Add tests for some classes in home/browser (#12837) 2020-07-23 11:17:52 -07:00
Tiger Oakes
0d77f761e9
Test sync adapter (#12810) 2020-07-23 11:16:11 -07:00
Arturo Mejia
6530a45eb9
For issue #11676: Features phone that doesn't a site permission exception shouldn't be shown (#12855)
exception shouldn't be shown
2020-07-23 09:12:22 -07:00
Tiger Oakes
8f5a37733d
Create ToolbarPosition enum (#12747) 2020-07-22 19:23:38 -07:00
Kainalu Hagiwara
921b16233b For #1048 - Add ability to view tab history by long-pressing the back or forward button. 2020-07-22 11:20:47 -07:00
Tiger Oakes
d9357f1e32 For #12801 - Extra debug menu trigger, disable if already triggered 2020-07-22 19:28:48 +03:00
Jeff Boek
11e2137fab
For #12806 - Adds unit tests to cover ToolbarView.update() (#12807) 2020-07-21 14:34:07 -07:00
Tiger Oakes
c08d375c18
Move settings in components (#12675) 2020-07-21 10:47:10 -07:00
Tiger Oakes
0abb2c4f8b Add tests for web push integration 2020-07-21 10:12:06 -07:00
Tiger Oakes
e809df0858 Pass settings and metrics to CFR 2020-07-21 09:01:09 +03:00
Tiger Oakes
51937e73fc
Closes #10924 - Cleanup SavedLoginsAuthFragment (#10930) 2020-07-20 13:25:24 -07:00
Christian Sadilek
16b6776938 Update Android Components to 51.0.20200717190031 2020-07-17 19:32:02 -04:00
Tiger Oakes
13949d6968
Test migration classes (#12677) 2020-07-17 14:35:13 -07:00
Tiger Oakes
67fda80453
Add tests for login exceptions (#12681) 2020-07-17 14:25:45 -07:00
Tiger Oakes
aa31eb0fa5
Fix failure in handleWhatsNewGetAnswersClicked (#12682) 2020-07-17 14:25:35 -07:00
Mihai-Eduard Badea
1823fdb66d
For issue #9949 - Bookmarks/History deletion inconsistencies (#12630)
- Added the undo action for deleting individual history items by creating a new field to the history state containing the id's of the history items that are pending for deletion; This field is used inside the update function from the view to show/hide the items.

 - Added a new check inside the "deleteMulti" method from BookmarkFragment that calls the showRemoveFoldersDialog to prevent the user from being able to delete one or more bookmark folders without being asked for confirmation, as in #8648.

Co-authored-by: Mihai Eduard Badea <mihai.badea@softvision.ro>
2020-07-17 15:13:18 -05:00
Tiger Oakes
eed20b43b9
Test session control controller (#12652) 2020-07-17 13:07:01 -07:00
ekager
e358f95eed For #12364 - Only show PWA prompt the third time a user visits installable site 2020-07-17 12:37:03 -04:00
Tiger Oakes
ac3df6bc5e
Add tests for adapters in collections (#12649) 2020-07-17 09:04:16 -07:00
Elise Richards
023a4983fa
For #10173: login duplicates and save (#11208)
* Extract controller into it's own class. Implement find dupes and filter based on username.

Create edit login controller. Add text watchers and check for duplicates.

Edit controller test

* Find duplicates and save to store

* Retrieve duplicates from AC and check list on username text changed

Move duplicates logic into the controller

* Add glean pings for delete and edit. Move logic for login manipulation into the datastore.

* Use correct threads in controller. Enable save button when applicable.

Save enabled in datastore.

Move login data to datastore

Rebase with password error states

Update metrics to be more specific for edit

* Create logins controller for AC calls

* Interactor and controller methods for edit login. Add edit view to separate out some layout manipulation.

Inflate view in edit fragment. Double layout showing up.

Edit view

Controller tests

Controller tests passing

Interactor tests

Lint and detekt cleanup

* Remove datastore and use storage controller for all logins calls to password storage.

Addressed comments

Lint
:

Rebase - 1
2020-07-16 17:08:04 -05:00
Tiger Oakes
4dd0c0f224
For #12457: Add MockK matcher for intents (#12612) 2020-07-16 15:05:01 -07:00
Mugurell
e1fc0cc038
Ensure logins deletion (#12507)
* For #11227 - Cleanup saved logins list when one is selected

Selecting a saved login will open a detail screen for it from where users can
change details or even delete that particular login.
After the change is made the user is brought back to the list of saved logins
where for a brief moment (< 1s) until we get a new response from
passwordsStorage.list() the user can see and even interact with the old list
of items, which may still contain the just deleted one.

To avoid users seeing obsolete logins or even interacting with them (selecting
a previosuly deleted item will result in a crash) we will clean the list of
logins just before the selected login is opened in the detailed view.
When returning for a brief moment the users may see the "loading" UX until
passwordsStorage.list() returns the up-to-date list of logins to display.

* For #11227 - Refactor SavedLoginsView to be closer to MVI

- Interactors should only get passed other Interactors or Controllers as
dependencies to which they should delegate user actions.
- Controllers should hold most of the business logic and get passed all final
dependencies they need to do their job.
2020-07-16 14:40:08 -05:00
Tiger Oakes
2d066d77ad
Add tests for sync, wifi, and push (#12581) 2020-07-16 12:25:38 -07:00
Tiger Oakes
2291fb07aa
For #12565: Add Locale settings tests & use activity (#12579) 2020-07-16 11:43:27 -07:00
Hakkı Kaan Çalışkan
057711e6fb No issue: Uncomment forgotten assert 2020-07-16 11:45:53 -04:00
James Hugman
22689a9ff5 Remove need to specify component names for new intents 2020-07-16 10:37:03 -04:00
James Hugman
98a33ea82b Changed home_* style links to urls_* to reflect that the destination is a set of links, rather than where the screen is 2020-07-16 10:37:03 -04:00
James Hugman
1629878a66 Add install_search_widget 2020-07-16 10:37:03 -04:00
James Hugman
709fedd4d7 Add unit tests for deep links 2020-07-16 10:37:03 -04:00
Tiger Oakes
6be39aebde
Add tests for StartupReportFullyDrawn (#12560) 2020-07-15 23:31:59 -07:00
Tiger Oakes
d4bb432e24
Add helper for underlining text (#12520) 2020-07-15 22:38:46 -07:00
Tiger Oakes
a0491b702e
Fix nav graph and theme tests (#12567) 2020-07-15 18:04:36 -07:00
Tiger Oakes
d0e9f1f165
Update Kotlin dependency (#10806) 2020-07-15 18:02:58 -07:00
mcarare
4153c11ea8 For #12503: Add unit tests for permissions details view. 2020-07-15 10:04:40 -04:00
ekager
9ed85510ae For #7094 - Adds save login exceptions 2020-07-14 14:47:37 -04:00
Tiger Oakes
69020a1f26
For #12457 - Add MockK matcher for nav directions (#12262) 2020-07-14 10:39:23 -07:00
Tiger Oakes
1ff64cab67
Add tests for search (#12437) 2020-07-14 10:32:04 -07:00
Tiger Oakes
e9fb1a61c7
Test viewholders in home.sessioncontrol (#12524) 2020-07-14 10:31:50 -07:00
Michael Comella
9fa241fbb0 No issue - post: mock profiler object in DefaultTabTrayControllerTest.
Without this line, the tests fail when running the full suite (but not
this test in isolation, for some reason).
2020-07-10 16:43:06 -07:00
Grisha Kruglov
806f6031ae For #12433 - Allow synced tabs pull-to-refresh for non-critical account errors 2020-07-09 16:18:54 -07:00
Tiger Oakes
c99a8f5cfa
Fixes #9832 - Change targetSdkVersion to Android 10 (#11014) 2020-07-09 10:50:51 -07:00
Sebastian Kaspari
a2a7b11425 Issue #12311: BrowserToolbarController: Stop SessionFeature and release session from EngineView. 2020-07-09 12:36:56 -04:00
Christian Sadilek
216396d979 For #12353: URL copied to clipboard should not be extension/reader URL 2020-07-08 16:55:32 -04:00
Tiger Oakes
9ae1aa6f16 Add tests for exceptions 2020-07-08 15:52:37 -04:00
Tiger Oakes
67ce5ad5d9
Add tests for onboarding viewholders (#11522) 2020-07-08 07:53:22 -07:00
Tiger Oakes
720a590902
Add tests for browser helper classes (#12370) 2020-07-07 19:46:25 -07:00
Christian Sadilek
27c608d956 Update built-in extensions for new AC/GV API
New API (installBuiltIn/ensureBuiltin) requires
- Gecko IDs and new permissions
- Extension will only be re-installed if it has a new version

This includes a gradle task to automatically generate a
new version in manifest.json for every build so we don't
forget to update the version and end up with changes that
are never applied.
2020-07-07 18:41:12 -04:00