Commit Graph

333 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
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
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
Roger Yang
6e13e9d353 [components] No issue: update metrics.md 2021-05-21 18:44:08 +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
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
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
Roger Yang
8b4d5a05a0 [components] No issue: update metrics.md 2021-05-03 20:05:06 +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
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
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
Sebastian Kaspari
d710a76f5e [components] Issue https://github.com/mozilla-mobile/android-components/issues/10114: (Merge day) browser-engine-gecko-beta (88) -> browser-engine-gecko (88) 2021-04-20 14:42:45 +00:00
Mugurell
372b60754f [components] Fix https://github.com/mozilla-mobile/android-components/issues/9614 - Deprecate EngineView#InputResult
This will be replaced by the new InputResultDetail.
2021-03-30 13:44:44 +00:00
Michael Droettboom
8c604e1155 [components] Bug 1689162: Upgrade to new version of Glean metrics.yaml schema (https://github.com/mozilla-mobile/android-components/pull/9990)
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-03-29 14:27:14 +00:00
Travis Long
d5e49d5b0a [components] [SDK-217] Allow consumer to set appName and channel for experiment filtering
Update samples-glean to pass in appName and channel, and use feature-id


Suppress lint warning


Update to A-S v74.0.1


Make `app_name` and `channel` part of a data struct


Update samples-glean


Fix test


lint
2021-03-19 19:02:56 +00:00
Christian Sadilek
c9d791c53b [components] Adjust detekt TooManyFunctions threshold 2021-03-18 15:25:40 +00:00
Jonathan Almeida
d3450e71bf [components] Issue https://github.com/mozilla-mobile/android-components/issues/9899: (Merge day) browser-engine-gecko-beta (87) -> browser-engine-gecko-release (87) 2021-03-16 16:42:05 +00:00
Roger Yang
0182d4d8b4 [components] Closes https://github.com/mozilla-mobile/android-components/issues/9859: Detect media notification icon size is incorrect 2021-03-10 17:26:09 +00:00
Roger Yang
a099c9e20e [components] Remove deprecated references to old MediaSession API 2021-03-03 17:27:16 +00:00
Arturo Mejia
d335091a6c [components] Closes https://github.com/mozilla-mobile/android-components/issues/9787 separate content blocking setting from TrackingProtectionState.enabled 2021-03-02 16:22:42 +00:00
Michael Droettboom
f0a9e90e0d [components] Upgrade to Glean 35.0.0 2021-02-26 15:50:59 +00:00
Sebastian Kaspari
1596845e0a [components] Issue https://github.com/mozilla-mobile/android-components/issues/9746: (Merge day) browser-engine-gecko-beta (86) -> browser-engine-gecko (86) 2021-02-23 16:45:17 +00:00
Sebastian Kaspari
282f5e3aef [components] Remove old media APIs. 2021-02-10 13:02:22 +00:00
codrut.topliceanu
354fdf44cb [components] For https://github.com/mozilla-mobile/android-components/issues/9606 - Adds defaultSettings when creating a new GeckoEngineSession
This fixes the issue where some new WebExtension tabs would have no ETP setting in Fenix.

For https://github.com/mozilla-mobile/android-components/issues/9606 - Removes fallback policy, adds settings to onOpenOptionsPage

For https://github.com/mozilla-mobile/android-components/issues/9606 - Adds defaultSettings to onToggleActionPopup on init GeckoEngineSession

For https://github.com/mozilla-mobile/android-components/issues/9606 - Removes new instance of trackingPolicy and uses passed parameter

For https://github.com/mozilla-mobile/android-components/issues/9606 - Adds documentation to new defaultSettings parameter

For https://github.com/mozilla-mobile/android-components/issues/9606 - Fixes formatting
2021-02-09 19:32:12 +00:00
mcarare
fbbe75889f [components] For https://github.com/mozilla-mobile/android-components/issues/8519: Fix nullability changes in SDK 30 in unit tests. 2021-02-09 18:03:01 +00:00
mcarare
7586242be2 [components] For https://github.com/mozilla-mobile/android-components/issues/8519: Suppress SDK 30 deprecations in tests and link to opened issues. 2021-02-09 18:03:01 +00:00
Michael Comella
b0ef030768 [components] For https://github.com/mozilla-mobile/fenix/issues/17816: add IMPLEMENTATION_DETAIL Fact for GeckoSession.load.
I tested the Nightly and Beta versions of this code. I was unable to test
Release because there were build errors due to using a local ac with
fenix.
2021-02-04 21:16:45 +00:00
Arturo Mejia
9181677d7c [components] Closes https://github.com/mozilla-mobile/android-components/issues/9553: Sanitize downloads content type 2021-02-01 16:53:07 +00:00
Jonathan Almeida
abdbbf2e8e [components] Re-land: "Closes https://github.com/mozilla-mobile/android-components/issues/8693: Integrate GeckoWebExecutor#FETCH_FLAG_PRIVATE."
This re-lands commit bc1719598b0980b12bf7717d35ee31d15eb05365.
2021-01-29 19:51:36 +00:00
Roger Yang
8545bb01b7 [components] Closes https://github.com/mozilla-mobile/android-components/issues/9531: Return content icon if get artwork fails 2021-01-28 16:06:09 +00:00
Sebastian Kaspari
8707f6eaf1 [components] Issue https://github.com/mozilla-mobile/android-components/issues/9502: (Merge day) browser-engine-gecko-beta (85) -> browser-engine-gecko (85) 2021-01-26 15:55:12 +00:00
Roger Yang
436b127cdb [components] Closes https://github.com/mozilla-mobile/android-components/issues/9170: Use MediaSession Metadata in Media Notification 2021-01-26 09:23:01 +00:00
Jonathan Almeida
a2c22bd0ec [components] Revert "Closes https://github.com/mozilla-mobile/android-components/issues/8693: Integrate GeckoWebExecutor#FETCH_FLAG_PRIVATE."
This reverts commit 7f97412251cbec11a371fce1652ad7a760184d93.
2021-01-22 20:13:55 +00:00
mcarare
d1cc03c074 [components] For https://github.com/mozilla-mobile/android-components/issues/9445: On restoring state also check if actual state is empty. 2021-01-20 15:36:30 +00:00
Arturo Mejia
c1a6273aa5 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8693: Integrate GeckoWebExecutor#FETCH_FLAG_PRIVATE. 2021-01-19 18:26:00 +00:00
Sebastian Kaspari
8753b66468 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8370: Remove EngineSessionState.toJSON(). 2021-01-08 15:02:53 +00:00
Christian Sadilek
bca1a212ee [components] Closes https://github.com/mozilla-mobile/android-components/issues/9325: engine-gecko: Introduce blocked schemes 2021-01-07 09:54:35 +00:00
Sebastian Kaspari
9817288680 [components] Issue https://github.com/mozilla-mobile/android-components/issues/9332: GeckoEngineSessionState: Handle JSONException coming out of GeckoView. 2021-01-06 14:27:22 +00:00
Sebastian Kaspari
8c9479eb8c [components] GeckoEngineSessionState: Handle empty engine session state. 2021-01-05 12:16:46 +00:00
Sebastian Kaspari
dca326ea45 [components] Reland "Issue https://github.com/mozilla-mobile/android-components/issues/8873: Migrate feature-tab-collections to use browser-state."
This reverts commit 31659483d081ddd98b767d438db1d834587eded2.
2020-12-16 09:30:32 +00:00
Christian Sadilek
6a5dcadba5 [components] Revert "Issue https://github.com/mozilla-mobile/android-components/issues/8873: Migrate feature-tab-collections to use browser-state."
This reverts commit 30d3ebb4130d05846a2b3e7fd488eef128be262c.
2020-12-15 17:20:12 +00:00