Commit Graph

413 Commits

Author SHA1 Message Date
Roger Yang
02a1535298 [components] Close https://github.com/mozilla-mobile/android-components/issues/12926: Use external flag when opening fallback URL 2022-10-11 17:14:31 +00:00
mcarare
6d98cb9623 [components] For https://github.com/mozilla-mobile/android-components/issues/12500: Update navigation, lifecycle, core and fragment dependencies. 2022-10-11 07:17:12 +00:00
iorgamgabriel
3d77211539 [components] For https://github.com/mozilla-mobile/android-components/issues/12894 Canceling the "Open in app?" should open the page in focus browser. 2022-10-11 05:54:26 +00:00
Alexandru2909
f6757db01e [components] For https://github.com/mozilla-mobile/android-components/issues/12151 - Fix ktlint issues for GeckoPromptDelegate.kt 2022-09-22 11:37:47 +00:00
Alexandru2909
7c2b2238d3 [components] For https://github.com/mozilla-mobile/android-components/issues/12151 - Add support for empty step value in TimePicker 2022-09-22 11:37:47 +00:00
Alexandru2909
d12b67a0ec [components] For https://github.com/mozilla-mobile/android-components/issues/12151 - Support step attribute in TimePicker 2022-09-08 14:37:09 +00:00
mcarare
6b1a2d5dcb [components] For https://github.com/mozilla-mobile/android-components/issues/12381: Replace VisibleForTesting with @get:VisibleForTesting. 2022-08-31 09:47:47 +00:00
mcarare
97ae5efa57 [components] For https://github.com/mozilla-mobile/android-components/issues/12381: Remove VisibleForTesting annotation.
Values are also accessed from code, not just from tests.
2022-08-31 09:47:47 +00:00
Jonathan Almeida
7bb88450b5 [components] Close https://github.com/mozilla-mobile/android-components/issues/12267: Add support for Save to PDF in GeckoEngineSession
Adds support for Save to PDF from the GeckoSession by plugging the
API into `onExternalResponse` to provide the same flow as a typical
file download experience would be.

Co-authored-by: Olivia Hall <ohall@mozilla.com>
2022-08-15 14:29:34 +00:00
Alexandru2909
7d5e081d3e [components] For https://github.com/mozilla-mobile/android-components/issues/12562 - Handle onPromptDismiss in ChoicePromptDelegate 2022-08-08 13:23:15 +00:00
indu
0d9645d22c [components] For https://github.com/mozilla-mobile/android-components/issues/12426: Display the web content that triggered the app redirect, if the user navigate to the browser through the launcher icon or coming back from the app
This fix allows the tab to display the correct web content if the user swipes back or launches the browser from the home screen after the app request url is handled by the corresponding app.

Co-Authored-By: Roger Yang <6579541+rocketsroger@users.noreply.github.com>
2022-07-27 15:26:38 +00:00
Ben Dean-Kawamura
e163f82bc2 [components] Dumping app-services to v93.6.0 2022-07-15 19:31:07 +00:00
Arturo Mejia
c3fdfd183e [components] Improve the media delegate 2022-07-12 03:30:59 +00:00
Rohan Maity
52ed25654b [components] For #23684, Do not cache lastLoadRequestUri for AppIntent InterceptionResponse 2022-06-24 14:25:15 +00:00
Gabriel Luong
4703abfa0f [components] Issue https://github.com/mozilla-mobile/android-components/issues/12336 - Implement onAddressFetch in GeckoAutocompleteStorageDelegate 2022-06-22 14:25:57 +00:00
Jan-Erik Rediger
706f1eb240 [components] Use patched Glean Gradle plugin to fix Windows build issues
The plugin has a single small change:
1c9577144a
2022-06-20 16:21:57 +00:00
Gabriel Luong
16930d4ab3 [components] Issue https://github.com/mozilla-mobile/android-components/issues/12348 - Pass the full name to the Autocomplete.Address.Builder 2022-06-17 15:36:18 +00:00
mcarare
42eea89e8d [components] For https://github.com/mozilla-mobile/android-components/issues/12233: Handle ERROR_BAD_HSTS_CERT error. 2022-06-15 06:51:53 +00:00
Jan-Erik Rediger
705c223b8a [components] Adopt APIs from Glean UniFFI 2022-06-09 18:08:13 +00:00
Alexandru2909
9096d03439 [components] For https://github.com/mozilla-mobile/android-components/issues/12217 - Add support for onPromptUpdate
- Handle ChoicePrompt updates
2022-06-02 15:01:29 +00:00
Arturo Mejia
b6b2484fcd [components] Closes https://github.com/mozilla-mobile/android-components/issues/12190: Create a middleware that allows to change tabs priority. 2022-05-26 13:38:30 +00:00
Marc Leclair
71499a8f1e [components] For https://github.com/mozilla-mobile/fenix/issues/14854: Implemented GV api to start / stop profiler without ADB 2022-05-24 23:46:08 +00:00
Gabriel Luong
25f179051d [components] Issue https://github.com/mozilla-mobile/android-components/issues/11338: Add a SaveCreditCard dialog to handle saving and updating a credit card 2022-05-10 21:44:28 +00:00
Gabriel Luong
bf30c130be [components] Issue https://github.com/mozilla-mobile/android-components/issues/11249: Add support for save credit card prompt 2022-05-10 21:44:28 +00:00
Mugurell
d78b06b6bf [components] For https://github.com/mozilla-mobile/android-components/pull/11175 - Migrate runBlocking and runBlockingTest to runTest in unit tests
Used `runTestOnMain` where `MainCoroutineRule` was used or needed to be used,
`runTest` elsewhere.

Extra effort for removing all `runBlocking` occurrences in unit tests.
`kotlinx.coroutines.test.runTest` is a test specific API that seems like a more
appropriate way for running tests in a coroutine than the general
`kotlinx.coroutines.runBlocking` api.
2022-05-10 13:45:03 +00:00
Alexandru2909
c0cfad31b3 [components] For https://github.com/mozilla-mobile/android-components/issues/12060 - Add support for select address prompt request 2022-05-09 08:11:24 +00:00
Gabriel Luong
6be587c3fc [components] Issue https://github.com/mozilla-mobile/android-components/issues/9838: Introduce CreditCardValidationDelegate and implement onCreditCardSave in GeckoCreditCardsAddressesStorageDelegate
- Introduces `CreditCardValidationDelegate` and a default implementation in `DefaultCreditCardValidationDelegate`
- Implements `onCreditCardSave` in `GeckoCreditCardsAddressesStorageDelegate`
- Refactors `CreditCard` from concept-engine to `CreditCardEntry` in concept-storage so that it can validated with the `CreditCardValidationDelegate`
2022-05-04 03:52:37 +00:00
Mugurell
f91cb8abe1 [components] For https://github.com/mozilla-mobile/android-components/issues/11753 - Update compose to 1.1.1 and Kotlin to 1.6.10
This also required updating room to >= 2.4.0.
This new version adds a deprecation of the `MigrationTestHelper` api used in
`LoginExceptionStorageTest` that is to be later fixed in https://github.com/mozilla-mobile/android-components/issues/11765.

`activity_compose` was also update to the latest stable version to ensure a
better match with the latest stable version for compose.

Used 1.6.10 for Kotlin although 1.6.20 is available to prevent any issues with
Compose 1.1.1 reported as an error at compile time:
"e: This version (1.1.1) of the Compose Compiler requires Kotlin version 1.6.10
but you appear to be using Kotlin version 1.6.20 which is not known to be
compatible.  Please fix your configuration (or
`suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!)."
2022-04-18 17:28:25 +00:00
Mugurell
db2682732f [components] For https://github.com/mozilla-mobile/android-components/issues/7477 - Add support for unregistering service worker delegates 2022-04-07 09:48:35 +00:00
Mugurell
ed6a3486c3 [components] For https://github.com/mozilla-mobile/android-components/issues/7477 - Execute WebNotification click based on incoming Intent
Gecko's WebNotification will be persisted in the native Android notification
that is posted like before to target a specific activity in the app.
When the user clicks the notification the target activity can delegate a new
WebNotificationIntentProcessor component to actually process notification's
contentIntent and trigger `click` on the WebNotification.
2022-04-07 09:48:35 +00:00
Gabriel Luong
65626ccd3a [components] Issue https://github.com/mozilla-mobile/android-components/issues/11864: Enable UnusedPrivateMember rule for detekt 2022-03-24 18:47:39 +00:00
Mugurell
065e3ca99a [components] For https://github.com/mozilla-mobile/android-components/issues/10723 - Add new ServiceWorkerSupport for service workers callbacks
This will first add support for onOpenWindow requests from service workers.
2022-03-23 17:37:58 +00:00
mcarare
dc03631de7 [components] For https://github.com/mozilla-mobile/android-components/issues/11670: Use LooperMode Mode LEGACY for failing tests. 2022-03-18 12:43:16 +00:00
mcarare
33d5df7988 [components] For https://github.com/mozilla-mobile/android-components/issues/11670: Use shadowOf(getMainLooper()).idle() to execute all posted tasks.
This is needed due to the new default Looper Mode - PAUSED in Robolectric.
2022-03-18 12:43:16 +00:00
Mugurell
2488cae466 [components] For https://github.com/mozilla-mobile/android-components/issues/11788 - Add support for GeckoView Screen Orientation APIs
A new ScreenOrientationFeature which can be set in any integrator's Activity or
Fragment will register itself as an Engine delegate for GeckoRuntime callbacks
for setting a specific screen orientation or resetting such set orientation.

All preconditions for setting/resetting the orientation are checked on
GeckoView's side before the callbacks would fire so the feature will
automatically set the requested orientations without any other work.
2022-03-10 07:21:28 +00:00
Mugurell
f04e8b683c [components] Revert "For https://github.com/mozilla-mobile/android-components/issues/11753 - Update compose to 1.1.0 and Kotlin to 1.6.10"
This reverts commit 3feac3db3901ef73efcd0e14c04b47cbdab2e7ff.
2022-02-28 22:27:21 +00:00
Mugurell
97b77729c7 [components] For https://github.com/mozilla-mobile/android-components/issues/11753 - Update compose to 1.1.0 and Kotlin to 1.6.10
This also required updating room to >= 2.4.0.
This new version adds a deprecation of the `MigrationTestHelper` api used in
`LoginExceptionStorageTest` that is to be later fixed in https://github.com/mozilla-mobile/android-components/issues/11765.

activity_compose was also update to the latest stable version to ensure a
better match with the latest stable version for compose.
2022-02-24 10:12:43 +00:00
Emilio Cobos Álvarez
eb425250ac [components] PromptRequest: Consistently order confirm / dismiss callbacks. 2022-02-03 00:51:50 +00:00
Emilio Cobos Álvarez
e4f5e9c9f3 [components] PromptRequest: Consistently notify Gecko on dismiss.
Fixes https://github.com/mozilla-mobile/android-components/issues/11636
2022-02-03 00:51:50 +00:00
Agi Sferro
e00b0b67b5 [components] Issue https://github.com/mozilla-mobile/android-components/pull/11692: Set WebRequest::beConservative in GeckoViewFetchClient
beConservative is configurable now so we need to set the value in
GeckoViewFetchClient.
2022-01-28 00:41:32 +00:00
Jonathan Almeida
1db32589bc [components] Fix failing test in GeckoPromptDelegateTest 2022-01-13 17:29:14 +00:00
Jonathan Almeida
2916c0a537 [components] Close https://github.com/mozilla-mobile/android-components/issues/11444: Add optional user interaction param to goBack/goForward 2021-12-31 02:47:38 +00:00
Mugurell
d84eff8587 [components] For https://github.com/mozilla-mobile/android-components/issues/10739 - Add support for the Storage Access API prompt 2021-12-21 09:58:31 +00:00
Arturo Mejia
3aa4d3b73a [components] Closes https://github.com/mozilla-mobile/android-components/issues/11365: Address breaking changes on GV 96.0.20211204095400 2021-12-07 17:14:45 +00:00
Sebastian Kaspari
2dfc9907bf [components] Issue https://github.com/mozilla-mobile/android-components/issues/11306: Add minimal error page for HTTPS-Only mode. 2021-12-06 17:56:50 +00:00
Sebastian Kaspari
e063a9fc1b [components] Issue https://github.com/mozilla-mobile/android-components/issues/11305: Add engine setting for HTTPS-Only mode 2021-12-02 16:48:08 +00:00
Gabriel Luong
2d38c9fe54 [components] Issue https://github.com/mozilla-mobile/android-components/issues/11311: Remove deprecated and unused GeckoLoginDelegateWrapper 2021-11-30 16:00:42 +00:00
Gabriel Luong
f20647b9bb [components] Issue https://github.com/mozilla-mobile/android-components/issues/11336 - Revert support for save credit card prompt
This reverts commit 192d70b04ca889c16562277ae63c6f81f3641174.
2021-11-29 22:41:47 +00:00
Arturo Mejia
45aff407cc [components] Improve loading URLs 2021-11-25 16:16:15 +00:00
Gabriel Luong
c4899b9a6d [components] Issue https://github.com/mozilla-mobile/android-components/issues/11249: Add support for save credit card prompt 2021-11-24 17:19:02 +00:00