Commit graph

112 commits

Author SHA1 Message Date
Matt Tighe
65f94370a3 [components] move path walking tests to PlacesHistoryStorageTest 2021-12-09 21:01:48 +00:00
Matt Tighe
60bacaab83 [components] Strip common subdomains when matching incoming toolbar queries. 2021-12-09 21:01:48 +00:00
Christian Sadilek
83f85e62d7 [components] Support deletion of history metadata by url 2021-11-23 16:22:28 -05:00
Christian Sadilek
e2845195bd [components] Handle places exceptions when querying highlights 2021-11-23 09:56:15 -08:00
Grisha Kruglov
53817d0ad1 [components] Move shouldStoreUri to storage; short-circuit engine delegates
In feature-session we had some logic to filter out certain URIs. This
patch moves this logic into the storage layer, so that it has a broader
coverage - whenever we attempt to write some URL into the storage, we'll
now go through this filter.

Before, we'd only go through this filter for writes that were routed via
the HistoryDelegate.

After this change, direct writes (such as for metadata) are also
covered.

This shouldn't change all that much - the storage implementation is
likely to have rejected these URIs. Now, instead of letting it through
exceptions at us (which we catch and report via sentry), we simply don't
even call into the storage if we don't expect these calls to succeed.

This should reduce volume of "url without base" type of 'info' events we
see in Sentry.
2021-11-16 00:22:35 +00:00
Grisha Kruglov
70bad89d04 [components] Post: Simplify handling of PageVisit#redirectSource
Most of the time redirectSource isn't set, so this makes that field
optional, and switches away from a special enum (NOT_A_SOURCE) to just a
simple nullable.
2021-11-09 21:27:05 +00:00
Gabriel Luong
7fe5c17265 [components] Issue https://github.com/mozilla-mobile/android-components/issues/11155 - Integrate onPreviewImage API from GeckoView 2021-10-25 20:46:09 +00:00
Grisha Kruglov
385e0efd8e [components] Add API for deleting metadata search term groups 2021-09-29 18:45:18 -04:00
Grisha Kruglov
d6ab47d025 [components] Update to A-S 85.2.0, expose A-S highlights API 2021-09-29 14:24:34 -07:00
Christian Sadilek
e67e913c7c [components] Handle PlacesExceptions when reading history metadata 2021-09-26 13:19:35 +00:00
Grisha Kruglov
76a06fe946 [components] Fix breaking changes in tests 2021-09-14 05:40:48 +00:00
Grisha Kruglov
5148be5381 [components] Account for breaking changes associated with previewImageUrl 2021-09-14 05:40:48 +00:00
Grisha Kruglov
b628c1badc [components] Adds history metadata delete API 2021-09-09 23:38:30 +00:00
Grisha Kruglov
296257f119 [components] Upgrade to A-S 82.3.0
This version of A-S included breaking changes around the history
metadata API, which this patch resolves.
2021-09-08 03:03:23 +00:00
Grisha Kruglov
e3ac5dc4d2 [components] Make sure to use writeScope when writing to history metadata
Not using a write scope means we could have concurrent writes, leading
to sqlite throwing "database locked" exceptions.

All other writers here use the writeScope.
2021-08-25 19:31:42 +00:00
Sebastian Kaspari
ce323400dd [components] Run ktlintFormat to fix new ktlint errors. 2021-07-28 12:03:23 +00:00
mcarare
23e050a3c3 [components] For https://github.com/mozilla-mobile/android-components/issues/10670: Add optional parameter to filter recent bookmarks based on added date. 2021-07-23 16:06:47 +00:00
Sammy Khamis
4d75239856 [components] updated lib version and reverted lastUsed to long 2021-07-21 22:48:58 +00:00
Sammy Khamis
575b8a38dc [components] small changes based on recent changes 2021-07-21 22:48:58 +00:00
Sammy Khamis
3015f1fead [components] updated a-s version, fixed some minor changes 2021-07-21 22:48:58 +00:00
Sammy Khamis
0f2fc25fbb [components] updated remote tabs based on a-s tabs update 2021-07-21 22:48:58 +00:00
Jonathan Almeida
ac53ae76e1 [components] Close https://github.com/mozilla-mobile/android-components/issues/10382: Handle exceptions thrown in RemoteTabsStorage 2021-07-07 03:33:22 +00:00
Christian Sadilek
2c9aef155c [components] Catch and log history metadata write exceptions 2021-07-05 19:44:27 +00:00
Elise Richards
6bb8d67741 [components] For https://github.com/mozilla-mobile/android-components/issues/10419: Add Places calls for recently added and updated bookmarks (https://github.com/mozilla-mobile/android-components/pull/10425)
* Add Places calls for recently added bookmarks.

Changelog addition for bookmarks places api additions.

* Test for fetching list of recently added bookmarks

* Reword kdoc and changelog
2021-06-09 17:13:30 +00:00
Grisha Kruglov
8fd962cfc2 [components] Introduce history metadata observation API
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2021-06-01 21:02:36 +00:00
Grisha Kruglov
539493396e [components] Introduce History Metadata storage API
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2021-05-13 05:54:06 +00:00
Grisha Kruglov
0d4aa38533 [components] Introduce AutofillCrypto and add encryptio/decryption and key management to credit card storage 2021-04-21 21:06:50 +00:00
Christian Sadilek
c9d791c53b [components] Adjust detekt TooManyFunctions threshold 2021-03-18 15:25:40 +00:00
Gabriel Luong
df5488d86e [components] Issue https://github.com/mozilla-mobile/android-components/issues/9801: Refactor AutofillCreditCardsAddressesStorage into its own :service-sync-autofill component 2021-03-10 23:35:11 +00:00
Gabriel Luong
22bd25d259 [components] Issue https://github.com/mozilla-mobile/android-components/issues/9455: Introduce Gecko Credit Cards and Addresses Storage Delegate 2021-03-08 03:28:53 +00:00
Gabriel Luong
b45c1a4105 [components] Issue https://github.com/mozilla-mobile/android-components/issues/9793: Remove setting the "uniffi.component.autofill.libraryOverride" property in AutofillCreditCardsAddressesStorage 2021-03-01 20:39:06 +00:00
Ryan Kelly
6fda29c09a [components] Update application-services to v72.1.0 2021-02-26 20:23:38 +00:00
Gabriel Luong
51343ed38a [components] Issue https://github.com/mozilla-mobile/android-components/issues/9454: browser-storage-sync implementation for credit card and address storage 2021-02-19 23:09:48 +00:00
Michael Comella
89c283dac1 [components] For https://github.com/mozilla-mobile/android-components/issues/9638: name threads in Executors.new* calls.
I omitted:
- Store, as its a super-class
- Fennec migration code
2021-02-10 00:35:59 +00:00
Gabriel Luong
b058d69929 [components] Issue https://github.com/mozilla-mobile/android-components/issues/8690: Specify the frecency threshold for the fetched top frecent sites 2021-01-26 15:11:30 +00:00
Emilio Cobos Álvarez
41d375b7d9 [components] ktlint: Add missing newlines.
Running ./gradlew ktlint locally reports a lot of stuff like:

/home/emilio/src/moz/android-components/components/support/migration/src/test/java/mozilla/components/support/migration/MigrationIntentProcessorTest.kt:1:1: File must end with a newline (\n)

This fixes it with:

    for f in $(cat files | cut -d : -f 1); do echo "" >> $f; done

Making ./gradlew ktlint pass.
2020-12-03 17:24:44 +00:00
Travis Long
cd0e42b8e8 [components] [SYNC-1682] Create a new Nimbus component that uses the nimbus-sdk
This adds a new Nimbus component that will act as a wrapper around the uniffi generated Kotlin code from mozilla/nimbus-sdk, as well as be a point of Glean integration, at least initially.

- Integrate service-nimbus with samples-glean for testing
- Set up default endpoint for debug and release, debug pointing at the dev Kinto endpoint and release at the production endpoint.
- Adds the documentation on how to set up the Kinto dev endpoint.
- Updates samples-glean README with Nimbus wording
2020-11-11 12:22:40 +00:00
Sebastian Kaspari
e445c6eb58 [components] Update to Gradle 6.1.1, Android Gradle plugin 4.0.1, Kotlin 1.4 and Coroutines 1.3.9.
This patch reintroduces the changes from PR https://github.com/mozilla-mobile/android-components/pull/8360 that we reverted in PR https://github.com/mozilla-mobile/android-components/pull/8623. Now the issues in
Fenix are resolved and we can land this again.
2020-10-19 07:01:53 +00:00
Sebastian Kaspari
9afa3a75f7 [components] Revert Gradle, Android Gradle Plugin and Kotlin upgrade. (PR https://github.com/mozilla-mobile/android-components/pull/8360)
Revert "Address even more lint errors."

This reverts commit e98ee991b34d318e671c644d63daec53902e68ff.

Revert "Update to Gradle 6.6.1."

This reverts commit cdda701c8f2be6c0486ddf1494885accf78aab00.

Revert "Address lint errors."

This reverts commit 26cb5b27bc2be672c89e7e0c63eeeda9f64c0d08.

Revert "Move JNA configuration to root project."

This reverts commit 694ef37cc30e727f3ec5d275c0e9583385980a43.

Revert "Issue https://github.com/mozilla-mobile/android-components/issues/8319: Update to Kotlin 1.4, Coroutines 1.3.9 and Android lint 27.0.1."

This reverts commit ad675c35e794050dbf8514a2d2fe7506ce0c546c.

Revert "Update Glean to 33.0.4."

This reverts commit 4731c4e2fa52d40f4062a47f02078ca0c85de632.

Revert "Update Glean to 33.0.0."

This reverts commit 352cf88a4d4bad64330d0ec997814fd8b13928c2.

Revert "Update Gradle to 6.1.1."

This reverts commit 18e88aa1a2528b10f7d81ff9dbf1df094071b6ce.

Revert "Update Android Gradle Plugin to 4.0.1."

This reverts commit f915a3b47b0f5584889ff62a80c9642bccfa36ce.
2020-10-06 14:57:11 +02:00
Sebastian Kaspari
6429e13dea [components] Move JNA configuration to root project. 2020-10-02 18:44:27 +00:00
Sebastian Kaspari
7d533c0993 [components] Move CrashReporting/Breadcrumb from support-base to concept-base. 2020-09-08 17:50:14 +02:00
Grisha Kruglov
d19d368a12 [components] Introduce split read/write places scopes 2020-08-14 10:04:39 -07:00
Grisha Kruglov
43cbfa8346 [components] For https://github.com/mozilla-mobile/android-components/issues/8011: Switch PlacesStorage to a single-threaded executor 2020-08-14 10:04:39 -07:00
Grisha Kruglov
7b80ed5b0d [components] For https://github.com/mozilla-mobile/android-components/issues/8011: Handle non-fatal places exceptions 2020-08-14 10:04:39 -07:00
codrut.topliceanu
da059d1e2c [components] For https://github.com/mozilla-mobile/android-components/issues/7422 - Handles case where synced devices exist but have no open tabs
Also renames two methods to provide additional clarity, and fixes a DefaultController test.
2020-06-18 14:48:44 +03:00
Christian Sadilek
9d31efc5f8 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7244: PlacesHistoryStorage crash in Sample Browser 2020-06-11 18:41:57 -04:00
Gabriel Luong
c4fa7dd109 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7094: Add getTopFrecentSiteInfos history API 2020-06-03 17:58:02 -04:00
Grisha Kruglov
c131f42a57 [components] Don't modify dependencies after task graph was completed 2020-05-20 18:04:40 -07:00
Jonathan Almeida
2d1417d83b [components] Close https://github.com/mozilla-mobile/android-components/issues/6837: Update class name to SyncedTabsStorage
We also introduce a `SyncedDeviceTabs` data class to make the result API
easier to work with for consumers.
2020-05-04 15:35:44 -04:00
Jonathan Almeida
b86fa6dfb5 [components] Close https://github.com/mozilla-mobile/android-components/issues/6601: Update targetSdkVersion to 29 2020-04-28 03:16:54 -04:00