Commit Graph

2146 Commits

Author SHA1 Message Date
Jan-Erik Rediger
18f3609666 [components] Upgrade to Glean v39.0.0
This also adjusts sync-telemetry to use the non-deprecated form of
events now.
2021-06-08 09:31:46 +00:00
Sebastian Kaspari
ff784931ec [components] Revert "Complete migration from browser-session to browser-state."
This reverts commit c5474f00085cf5011e06e3826f611831c50c95b0.
2021-06-07 13:14:34 -04:00
Sebastian Kaspari
230c3e8a4b [components] Complete migration from browser-session to browser-state.
* Issue https://github.com/mozilla-mobile/android-components/issues/10197: Move EngineObserver and EngineMiddleware to browser-state and refactor SessionManager dependency away.
* Issue https://github.com/mozilla-mobile/android-components/issues/3532: Migrate TabsUseCases to use BrowserStore exclusively.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Migrate SessionUseCases to use BrowserStore exclusively.
* Issue https://github.com/mozilla-mobile/android-components/issues/3532, https://github.com/mozilla-mobile/android-components/issues/10209: Migrate components to use new UseCase APIs.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Migrate UndoMiddleware to use BrowserStore.
* Issue https://github.com/mozilla-mobile/android-components/issues/3532: Migrate CustomTabsUseCases to use BrowserStore.
* Issue https://github.com/mozilla-mobile/android-components/issues/10211: Migrate sample-browser to not depend on browser-session.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Remove browser-session dependency.
* Issue https://github.com/mozilla-mobile/android-components/issues/3532: feature-tabs: Remove browser-session dependency.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Fix UndoMiddlewareTest
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Refactor SessionUseCasesTest to not use SessionManager.
* Issue https://github.com/mozilla-mobile/android-components/issues/10209: Fix SessionFeatureTest.
* Refactor support-migration tests to not use SessionManager.
* Fix tests in feature-contextmenu.
* Refactor feature-recentlyclosed tests to not use SessionManager
* Refactor browser-session-storage tests to not use SessionManager
* Refactor feature-intent tests to not use SessionManager
* Refactor feature-tabs tests to not use SessionManager pt. 1
* Refactor feature-customtabs tests to not depend on browser-session.
* Make sure initial load url flags are correct
* Refactor feature-tabs tests to not use SessionManager pt. 2
* Refactor browser-state tests to not depend on browser-session.
* SearchUseCasesTest: Use addTab use case instead of addPrivateTab.
* Samples Browser: Remove unused drawable.
* Fix feature-pwa tests
* Remove browser-session.
* Make sure engine session is linked for window requests
* Make sure engine session is linked when provided with tab
* Make sure engine session is linked when provided with tab pt. 2
* Prevent engine session from being created multiple times
* Prevent engine session from being created multiple times pt. 2
* Prevent engine session from being created multiple times pt. 3
* Part 4: REFACTOR ALL THE THINGS
* Update tests.
* Add additional test for multiple CreateEngineSessionAction dispatching.
* Refactor, some docs and tests
* Fix CustomTabs tests...
2021-06-07 15:29:14 +00:00
Mozilla L10n Automation Bot
8fdd056b67 [components] Import l10n. 2021-06-03 00:22:18 +00:00
Mugurell
5fc28020ea [components] For https://github.com/mozilla-mobile/android-components/issues/8989 - Support multiple prompts in the same Session
Following crash reports it was seen that it is possible for multiple prompts to
be shown at the same time with an edgecase being that one prompt request comes
after the user interacted with a previous prompt but before the consume call
completing in AC / GV time at which this code will try to use the new prompt,
not the one the user interacted with.

Having support for multiple prompt requests in ContentState and tightly
coupling a PromptDialogFragment with it's PromptRequest ensures any action
consuming a PromptDialogFragment will always consume the PromptRequest for
which that dialog was shown irrespective of the number of prompts or which is
currently shown on top.
2021-06-02 12:04:17 +00:00
Christian Sadilek
5e611f396b [components] Persist history metadata tab state 2021-06-01 21:02:36 +00:00
Christian Sadilek
8d7180a53b [components] Add HistoryMetadata state, action, and reducer
Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
2021-06-01 21:02:36 +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
Roger Yang
aaeded92a5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/4495: Add missing Amazon icon url in Tippy Top Json 2021-05-28 16:33:46 +00:00
Arturo Mejia
90c7a7564c [components] Closes https://github.com/mozilla-mobile/android-components/issues/10126: Expose the new gecko API for
controlling CookieBehaviorPrivateMode.
2021-05-27 15:02:45 +00:00
Mozilla L10n Automation Bot
21e731dddf [components] Import l10n. 2021-05-27 00:35:55 +00:00
Gabriel Luong
33dbca874c [components] Issue https://github.com/mozilla-mobile/android-components/issues/9813 - Add CreditCardUtils to parse credit card types from a card number and retrieve their logos 2021-05-25 23:31:52 +00:00
Sebastian Kaspari
98ab7b1b5f [components] Fix or suppress warnings from new detekt version. 2021-05-25 15:22:17 +00:00
Sebastian Kaspari
45c921d834 [components] AuthenticationDialogFragment: Use URL from prompt request. 2021-05-25 16:10:02 +02:00
Mozilla L10n Automation Bot
fe057ec729 [components] Import l10n. 2021-05-25 00:22:42 +00:00
Mozilla L10n Automation Bot
db14331ff9 [components] Import l10n. 2021-05-24 00:16:22 +00:00
Mozilla L10n Automation Bot
f122af9b0b [components] Import l10n. 2021-05-23 00:18:49 +00:00
Roger Yang
5c90793129 [components] For https://github.com/mozilla-mobile/android-components/issues/4495: Use smaller minimum icon size requirement for browser icons 2021-05-22 01:30:10 +00:00
Roger Yang
6e13e9d353 [components] No issue: update metrics.md 2021-05-21 18:44:08 +00:00
Mozilla L10n Automation Bot
d218d523cc [components] Import l10n. 2021-05-21 00:21:02 +00:00
Roger Yang
363cff6911 [components] Closes https://github.com/mozilla-mobile/android-components/issues/10241: Stop announcing loading to accessibility when progress is at max 2021-05-19 14:04:38 +00:00
mcarare
bb1b016292 [components] For https://github.com/mozilla-mobile/android-components/issues/10092: Allow placeholder item to change tint for the extension icon. 2021-05-18 14:08:24 +00:00
Mozilla L10n Automation Bot
1ae2f2b460 [components] Import l10n. 2021-05-17 00:18:48 +00:00
Mozilla L10n Automation Bot
c17cb9921d [components] Import l10n. 2021-05-15 00:22:17 +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
Mozilla L10n Automation Bot
cc491ecdc9 [components] Import l10n. 2021-05-12 00:20:05 +00:00
Gabriel Luong
838c9e6222 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10205: Add support for select credit card prompt
- Implements an override function of `onCreditCardSelect` in `GeckoPromptDelegate`
- Adds a new `CreditCard` data class in `concept-engine`. This is a parallel of GV's
`Autocomplete.CreditCard`. We can't using the existing `CreditCard` from `concept-storage`
since that has encryption dependencies whereas the card number is already decrypted
when it reaches GV.
- Adds a new `SelectCreditCard` in `PromptRequest`
2021-05-11 01:22:18 +00:00
Mozilla L10n Automation Bot
90d249752b [components] Import l10n. 2021-05-10 00:19:43 +00:00
Mozilla L10n Automation Bot
888624d690 [components] Import l10n. 2021-05-09 00:18:48 +00:00
Mozilla L10n Automation Bot
687252ee4b [components] Import l10n. 2021-05-08 00:25:48 +00:00
Christian Sadilek
431a1d1ce6 [components] Allow setting initial load flags when creating tabs 2021-05-06 15:39:49 +00:00
Arturo Mejia
3cfebb6c94 [components] Second batch of new proton icons 2021-05-06 02:01:35 +00:00
Gabriel Luong
faf9c9bfb3 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10140 - Part 3: Implement the new Autocomplete.StorageDelegate interface in GeckoAutocompleteStorageDelegate
- Uses the new GeckoView's `Autocomplete.StorageDelegate` interface in GeckoStorageDelegate
- Implements GeckoView's `Autocomplete.StorageDelegate.onCreditCardFetch`
2021-05-05 22:45:59 +00:00
Gabriel Luong
1d6fbf8b09 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10140 - Part 2: Make a copy of GeckoLoginDelegateWrapper as GeckoAutocompleteStorageDelegate
We make a copy of GeckoLoginDelegateWrapper to not break the deprecated usage of `Autocomplete.LoginStorageDelegate`
until we are ready to replace with `GeckoStorageDelegate` which will use the new GV API `Autocomplete.StorageDelegate`.
2021-05-05 22:45:59 +00:00
Gabriel Luong
72a18d3322 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10140 - Part 1: Refactor autocomplete extension functions into ext/Login.kt
- Moves `Autocomplete.LoginEntry.toLogin()` and `Login.toLoginEntry()` extension functions
into `ext/Login.kt`
- Remove duplicates of `Autocomplete.LoginEntry.toLogin()` and `Login.toLoginEntry()`.
2021-05-05 22:45:59 +00:00
Mozilla L10n Automation Bot
4dafef9f97 [components] Import l10n. 2021-05-04 21:51:53 +00:00
Roger Yang
ee67642224 [components] Closes https://github.com/mozilla-mobile/android-components/issues/10200: Expose enterpriseRootsEnabled runtime setting 2021-05-04 18:50:00 +00:00
Christian Sadilek
9ff0f33ae4 [components] Refactor engine-gecko tests to remove references to GeckoBundle 2021-05-04 15:22:09 +00:00
Mozilla L10n Automation Bot
c03bd2e998 [components] Import l10n. 2021-05-04 00:22:03 +00:00
Roger Yang
8b4d5a05a0 [components] No issue: update metrics.md 2021-05-03 20:05:06 +00:00
Mozilla L10n Automation Bot
1d43fc6ed4 [components] Import l10n. 2021-04-30 00:20:10 +00:00
Mugurell
ac57109a6e [components] For https://github.com/mozilla-mobile/android-components/issues/10162 - Expose the list of blocked url schemes
Some URL schemes may be blocked from loading in a new tab.
To ensure consistency with other app features this list needs to be easily
accessible.
2021-04-29 14:42:24 +00:00
Mugurell
d7362ffc39 [components] For https://github.com/mozilla-mobile/android-components/issues/10133 - BrowserMenuCompoundButton now reports the right dimensions
A BrowserMenuCompoundButton setup with compound drawables and used in our
BrowserMenu configured with a DynamicWidthRecyclerVIew will return a width
smaller with the size + padding of the compound drawables.

By replacing the default `inherit` layout direction for the initial onMeasure
we ensure the menu will also count the bounds of the compound drawables.
2021-04-27 16:17:25 +00:00
Stefan Arentz
e6f4fef0cd [components] Update GeckoView (Nightly) to 90.0.20210421095627. (https://github.com/mozilla-mobile/android-components/pull/10130)
Co-authored-by: MickeyMoz <sebastian@mozilla.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-04-22 09:47:04 +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
d826836562 [components] Update KDocs for crashed engine state 2021-04-21 15:20:33 +00:00
Sebastian Kaspari
60c4e7fce3 [components] Remove browser-search and migrate leftover functionality to feature-search.
Now that Fenix and Focus have migrated to using search functionality from the state in
BrowserStore (provided by feature-search), we can remove browser-search. The client
for search suggestions and the assets still lived in browser-search and this patch
moves those to feature-search too.
2021-04-21 15:00:44 +00:00
Christian Sadilek
39c4ab7d78 [components] Closes https://github.com/mozilla-mobile/android-components/issues/10082: Update port delegate when registering new message handler 2021-04-20 19:57:35 +00:00
Sebastian Kaspari
6b7d487589 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10070: Only keep one GeckoView component (tracking Nightly) 2021-04-20 18:51:39 +00:00
Sebastian Kaspari
8d9d23e6cc [components] Issue https://github.com/mozilla-mobile/android-components/issues/10114: (Merge day) browser-engine-gecko-nightly (89) -> browser-engine-gecko-beta (89) 2021-04-20 14:42:45 +00:00