Commit graph

843 commits

Author SHA1 Message Date
owlishDeveloper
8119267052 [components] Bug 1796144 - Add setting for cookie banner handling mode 2022-10-25 23:19:43 +00:00
mcarare
ef3c3593c1 [components] No issue: Update AndroidX Annotation to the latest version.
Update imports for annotations moved to Companion Object.
2022-10-25 19:19:29 +00:00
Gabriel Luong
d9d783b698 [components] Issue https://github.com/mozilla-mobile/android-components/issues/12939: Address all ktlint issues 2022-10-17 17:07:40 -04:00
mcarare
3b95cc5c70 [components] For https://github.com/mozilla-mobile/android-components/issues/12500: Suppress deprecation warnings for InputResult. 2022-10-11 07:17:12 +00:00
mcarare
89c716d240 [components] For https://github.com/mozilla-mobile/android-components/issues/12500: Handle OnLifecycleEvent deprecations. 2022-10-11 07:17:12 +00:00
Mugurell
c31595ce70 [components] For https://github.com/mozilla-mobile/android-components/issues/12683 - Report permission class name in related telemetry
Previous we were reporting the permission id which can be overwritten
throughout the app.
The class name will allow to easily identify and differentiate permissions.

This patch will also ensure that we won't be reporting the same permission
multiple times like it can happen on devices with multiple cameras and the
permission to access all cameras.
2022-09-08 18:24:36 +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
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
Mugurell
994b3515f0 [components] For https://github.com/mozilla-mobile/android-components/issues/12469 - Cancel in progress storage requests before new awesomebar suggestions 2022-07-18 11:29:45 +00:00
Ben Dean-Kawamura
a21c5956cc [components] Don't try to parse migration metrics from importLoginsAsync
A change in AS v93.6.0 made it so the underlying function
`LoginsStore.import_multiple` no longer returns the metrics as a JSON
string string.  Instead it just encodes the unit struct. This was a
breaking change, but it's not listed properly in the CHANGELOG.

The fix is pretty simple: just assume that no logins failed to import.
2022-07-15 19:31:07 +00:00
sarah541
805e57c7c0 [components] For https://github.com/mozilla-mobile/android-components/issues/12443 - Add firefox suggest header for lib suggestions 2022-07-14 21:16:10 +00:00
Roger Yang
c1839c2f47 [components] Close https://github.com/mozilla-mobile/android-components/issues/12398: Add support for forcing menu orientation 2022-06-28 15:55:53 +00:00
Mugurell
68b3acd506 [components] For https://github.com/mozilla-mobile/android-components/issues/12345 - Set id for all site permissions
This will allow identifying with what permissions the user interacts.
2022-06-23 11:47:34 +00:00
Gabriel Luong
8d5bf13b1c [components] Issue https://github.com/mozilla-mobile/android-components/issues/12365 - Return an address label based on the available address properties 2022-06-22 13:41:41 +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
Ben Dean-Kawamura
ff019a3f4f [components] Add support for app-services error reporting.
- Added new component that hooks into the new app-services error
  reporter and listens for events.  When it sees an event it submits it
  to the crash reporter.
- Added support for customizing crash reports for these errors.
2022-06-14 17:51:29 +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
Noah Bond
c4888ae0b0 [components] For https://github.com/mozilla-mobile/android-components/issues/12188 - Fix crash caused by an empty expiration year or month 2022-05-19 23:19:14 +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
Roger Yang
bd452c3d99 [components] Close https://github.com/mozilla-mobile/android-components/issues/12109: Support removing edit action end in edit toolbar 2022-05-05 18:17:09 +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
Roger Yang
a51595e683 [components] Close https://github.com/mozilla-mobile/android-components/issues/12008: Support auto hiding edit action end in browser toolbar 2022-04-22 14:57:19 +00:00
Gabriel Luong
9e8e37e04b [components] Issue https://github.com/mozilla-mobile/android-components/issues/12019: Make the Address data class parcelable 2022-04-17 23:17:39 +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
7c3dc51b44 [components] Issue https://github.com/mozilla-mobile/android-components/issues/11890: Add a new action container in the EditToolbar 2022-03-24 20:27:23 +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
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
Grigory Kruglov
6cc93c9d7e [components] Allow observing if account manager is ready
'ready' here means that account manager can now be queried for the account state.
2022-03-08 21:44:22 +00:00
Grigory Kruglov
03794ddc5b [components] Avoid eagerly rehydrating EngineSessionState for recently closed tabs
This change splits out tab-specific data from RecoverableTab data class
into a separate TabState (so, it doesn't have the EngineSessionState).

Then, once we have the simplified TabState, everything that touches RecentlyClosedTabs
is converted to use that instead of its more expensive sibling.

This way we avoid having to eagerly process EngineSessionState simply to populate BrowserState.closedTabs.
This saves us from having to hit disk (where the EngineSessionState is persisted) on initializing BrowserState (so, startup in most cases).
It also saves us from having to parse/rehydrate that persisted state.

At the point we actually need the EngineSessionState for a tab we'd like to restore, we can read/process it.
2022-02-14 14:54:00 -08:00
mavduevskiy
a9bc32eff1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/11655: expose HistoryVisitInfo.isRemote; update A-S to 91.0.1 (https://github.com/mozilla-mobile/android-components/pull/11656)
* Closes https://github.com/mozilla-mobile/android-components/issues/11655: expose HistoryVisitInfo.isRemote

* Closes https://github.com/mozilla-mobile/android-components/issues/11655: expose HistoryVisitInfo.isRemote

Co-authored-by: mike a <mavduevskiy@gmail.com>
2022-02-02 19:38:55 -08: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
Jonathan Almeida
6fff2ebc34 [components] Close https://github.com/mozilla-mobile/android-components/issues/11647: Remove lib-push-amazon component 2022-02-02 02:00:25 +00:00
Sammy Khamis
31fdffa11a [components] Uniffi Places (https://github.com/mozilla-mobile/android-components/pull/11487)
* fixup the VisitObservation, HistoryVisitInfo APIs based on changes in a-s

* Uniffi top frecent site info (https://github.com/mozilla-mobile/android-components/issues/3)

* uses VisitTransition in HistoryVisitInfo (https://github.com/mozilla-mobile/android-components/issues/4)

* fixup the VisitObservation, HistoryVisitInfo APIs based on changes in a-s

* updated based on bookmarks being uniffied

* fix issues with how we are rethrowing places exceptions

* bump appservices version

* fix ktlint lexiographic and ununsed import errors

* updated fennec migration code

Co-authored-by: Tarik Eshaq <tarikeshaq@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2022-01-21 04:36:54 +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
Grisha Kruglov
3564cdab80 [components] Remove debug lock owner from the KeyManager mutex
I've misread the API, specifying this `owner` is causing lots of ISEs,
while this code shouldn't deadlock in practice.
2021-12-16 10:19:51 -08:00
bendk
ca1959ab5e [components] Uniffi sync manager / Upgrade to A-S 87.1.0 (https://github.com/mozilla-mobile/android-components/pull/11256)
* Use registerWithSyncManager for places (https://github.com/mozilla-mobile/android-components/issues/10128)

* Remove the getHandle() method

Fixes https://github.com/mozilla/application-services/issues/1877

* Updating fxa code to work with the new UniFFIed SyncManager API

* Bumping appservices version

* Fixing PlacesHistoryStorageTest

* Bumping appservices version
2021-12-14 22:09:32 +00:00
Grisha Kruglov
122ebc35ee [components] Closes https://github.com/mozilla-mobile/android-components/issues/11099: Introduce KeyManager structure
This adds an abstract KeyManager class to our storage component, which
establishes a pattern of managing keys as used by our storage classes
that require encryption.

AutofillCrypto and LoginsCrypto become implementors of this basis class,
allowing them to explicitly share structure and some core functionality.
2021-12-14 20:10:38 +00:00
Grisha Kruglov
af9ea54a0d [components] Closes https://github.com/mozilla-mobile/android-components/issues/11368 - Handle key recovery flow for credit cards storage
- remove KeyRecoveryHandler indirection, I don't think it was adding
  any value
- AutofillCrypto and LoginsCrypto are now taking shape of a 'key
  manager' type objects - they know how to get, validate and store keys,
  as well as recover corresponding storage classes from key loss.
- AutofillCrypto now scrubs credit cards - removes encrypted CC numbers
  and resets the sync engine - in case of key loss.
2021-12-14 20:10:38 +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
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
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
Ionut Cristian Bedregeanu
6309c10942 [components] For https://github.com/mozilla-mobile/android-components/issues/11261 - Add end callback to removeAllExceptions
Add a callback to know when the process of removing all the exceptions was
ended, in this manner we are avoiding race conditions
2021-11-24 11:41:56 +00:00
Christian Sadilek
83f85e62d7 [components] Support deletion of history metadata by url 2021-11-23 16:22:28 -05:00
Ionut Cristian Bedregeanu
a3340a5764 [components] For https://github.com/mozilla-mobile/android-components/issues/11279 - Add a method to remove navigation actions from toolbar
Add a new method(removeNavigationAction) in Toolbar interface to be able to remove a navigation action
as we have at this moment for browser/page actions(removeBrowserAction, removePageAction)
2021-11-17 13:22:48 +00:00
Ben Dean-Kawamura
747783ef34 [components] Make findLoginToUpdate suspend
It access the DB, so it should be suspend like the other methods.
2021-11-16 22:47:25 +00: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
Ashutosh Singh
642b034e4d [components] Removal of browser-storage-memory (https://github.com/mozilla-mobile/android-components/pull/11211)
* deleted module and related files along with occurrences

* lint fixes

* used PlacesHistoryStorage for storage and readmeFix

* test fixes 1

* Update feature-awesomebar tests to use mocked HistoryStorage

* Linter fixes for feature-awesomebar

* toolbar fix 1

* toolbar fix

* final code cleanup

Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-11-05 09:27:22 +00:00
Arturo Mejia
e8bb682050 [components] Closes https://github.com/mozilla-mobile/android-components/issues/11101 Expose API to allow to persist tracking protection exceptions in private mode 2021-11-02 17:28:01 +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
Jonathan Almeida
8c76be9d8c [components] Issue https://github.com/mozilla-mobile/android-components/issues/11012: Use TabSessionState directly in feature-tabs
Co-authored-by: Arturo Mejia <arturomejiamarmol@gmail.com>
2021-10-25 13:19:32 +00:00
Sebastian Kaspari
90ec41fc3a [components] Update Kotlin and Jetpack Compose versions. 2021-10-25 10:58:07 +00:00
Grisha Kruglov
a588b753bf [components] Make linters happy 2021-10-13 20:30:28 -07:00
Ben Dean-Kawamura
457beff2e7 [components] Added SQLCipher migration logic and updating the crypto handling
Copied the crypto code from autofill and adapted it for logins.  At some
point it would be nice to combine the common parts here, but I figure
that can be a later issue.

Added code to migrate from a SQLCipher database to the new plaintext
ones.  Choose the unimaginative "logins2.db" filename, feel free to pick
a different one.

Fixed some linter errors.
2021-10-13 20:30:28 -07:00
Ben Dean-Kawamura
db4133a891 [components] Updating browser-engine-gecko to work with the new logins API
Switched the login saving interfaces to using `LoginEntry`, which
matches the change in `LoginValidationDelegate`.

The select login code still uses `Login`, but I changed how the
conversion from `GeckoView.LoginEntry` works.  Now it checks if the guid
is set, and ignores the login if not.  This is needed because a) guid is
no longer nullable and b) `areItemsTheSame()` in `BasicLoginAdapter.kt`
uses the guid to compare rows in the select list.  I'm pretty sure the
guid should always be set because those login entries ultimately come
from a `List<Login>`.

Removed the `GeckoView.LoginEntry` -> `Login` conversion from
`ext/Login.kt`.  It's now more dangerous to call, since it will throw if
guid is null.  I think it's better to force the calling code to write
the `!!` themselves to make this clear.
2021-10-13 20:30:28 -07:00
Ben Dean-Kawamura
57aa69af8e [components] Upating the LoginsStorage API to match the changes from a-s.
Updated `GeckoLoginStorageDelegate` to use the new `addOrUpdate()`
function.

Updated `LoginValidationDelegate` to use the new `findLoginToUpdate()`
function.  Removed the Result.Error class.  It was only returned from
`ensureValidAsync`, which we don't call anymore because `addOrUpdate()`
now does the validation.  This means that we will now throw an error
instead of doing a no-op, hopefully that's okay.  Removed the not
threadsafe warnings.  I think this the login storage code should be
threadsafe in general because we use Arc/Mutex on the rust side

A key difference is that `shouldUpdateOrCreateAsync()` now inputs
`LoginEntry` rather than a `Login`.  The old code had some confusing
bits with how it handled the `guid` field.  For example, we could pass a
`Login` with a `guid` set to the `SaveLoginPrompt`, but depending on
what the final username was and how the dupe-checking turned out, we
could end up updating a login with a different `guid` or creating a new
login altogether.  Using `LoginEntry` hopefully makes the story clearer.

There are a few edge cases where the behavior may change now that we no
longer use a GUID in the dupe-calculation.  I'm pretty sure that it
shouldn't really change things from a user's point of view, but I need
to double-check the use cases here.

`Login.guid` is now non-nullable.  `LoginEntry` should be used for login
data to be saved.

Replaced the field-level documentation in the `service:sync-logins`
README with a note to check out docs from `cconcept-storage`.  The
README was just a copy of the documentation from `LoginsStorage.kt` and
it seems better refer people there rather than duplicate it.

Removed the unit tests.  The main thing they were testing was
the `LoginValidationDelegate` dupe-handling but now that code is very
simple and and there are tests for `findLoginToUpdate()` in a-s
(components/logins/src/login.rs).
2021-10-13 20:30:28 -07:00
Jonathan Almeida
d53a5a0971 [components] Close https://github.com/mozilla-mobile/android-components/issues/11108: Remove internal DiffUtil from TabsTray 2021-10-08 01:51:05 +00:00
Michael Comella
7f7d8a1f21 [components] For https://github.com/mozilla-mobile/android-components/issues/11015: remove BufferedReader from Response.Body.string().
See code comments for reasoning.

There were already tests for the core functionality. Unfortunately, I
couldn't figure out how to write a test for the allocation change but I
tested it manually using an allocation tracker.
2021-10-06 16:51:29 +00:00
codrut.topliceanu
ef9c198245 [components] For https://github.com/mozilla-mobile/android-components/issues/10867 - Dismisses user prompt when GV calls onPromptDismiss 2021-10-06 14:47:52 +00:00
Sebastian Kaspari
46a8218028 [components] Issue https://github.com/mozilla-mobile/android-components/issues/11084: AwesomeBar(): Allow setting limit for suggestions in a provider group 2021-10-05 12:39:51 +00:00
Sebastian Kaspari
cfb9bd6e0a [components] Issue https://github.com/mozilla-mobile/android-components/issues/11072: AwesomeBar(): Allow grouping suggestion providers in groups with optional titles 2021-10-04 08:59:21 +00:00
Jonathan Almeida
1f269a2455 [components] No issue: Expose createdAt through tabstray 2021-09-30 12:00:30 -04: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
Michael Comella
b724190567 [components] No issue: remove redundant header name definitions. 2021-09-22 13:30:37 +00:00
Gabriel Luong
2d5e708612 [components] Issue https://github.com/mozilla-mobile/android-components/issues/11008 - Make HistoryMetadataKey parcelable 2021-09-21 12:04:08 -04: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
Roger Yang
cefdf5b689 [components] Forward search terms to Tabs Tray Tabs 2021-09-08 23:03:29 +00:00
Mugurell
e277dd03f0 [components] For https://github.com/mozilla-mobile/android-components/issues/10803 - Force expanding the toolbar if requested by GeckoView 2021-08-16 07:46:15 +00:00
Jonathan Almeida
478711a6bf [components] Close https://github.com/mozilla-mobile/android-components/issues/10677: Update Mockito to 3.11.2
Co-authored-by: Mugurell <Mugurell@users.noreply.github.com>
2021-08-12 02:25:56 +00:00
Sebastian Kaspari
4c548dc501 [components] Remove AwesomeBar.shouldClearSuggestions 2021-08-06 11:13:56 +00:00
Steven Knipe
ea9cb18430 [components] Add longClickListener documentation, fix style problems
move TwoStateButton background to match argument order
2021-08-02 12:24:51 +00:00
Steven Knipe
2339f9b1d8 [components] Add longClickListener to Toolbar's ActionButton and BrowserToolbar's Button 2021-08-02 12:24:51 +00:00
Sebastian Kaspari
ce323400dd [components] Run ktlintFormat to fix new ktlint errors. 2021-07-28 12:03:23 +00:00
Arturo Mejia
e4d539f111 [components] Closes https://github.com/mozilla-mobile/android-components/issues/10448 show toolbar permissions indicator when permissions change from their default. 2021-07-27 17:25: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
Arturo Mejia
20c74779f3 [components] Closes https://github.com/mozilla-mobile/android-components/issues/10127 expose new GV api for detecting SmartBlock exceptions. 2021-07-22 20:54:06 +00:00
Sebastian Kaspari
9fb6953940 [components] Upgrade Android Gradle Plugin to 4.2.2 and Gradle to 6.7.1. 2021-07-19 09:32:44 +00:00
Sebastian Kaspari
28a76101be [components] Update Kotlin to 1.5.10 (and Coroutines to 1.5.0 and Room to 2.3.0). 2021-07-19 09:32:44 +00:00
Mugurell
fd7e80ae98 [components] For https://github.com/mozilla-mobile/android-components/issues/10555 - Fix InputResultDetail hashcode() collisions
The previous implementation was affected by the fact that the class has 3
integer properties, all with values [0..4] (-1 was added recently) and it
would just add those value to compute the hashcode.
Collisions were a given.

By using decimal places for each property the new implementation should avoid
collisions while allowing for all the other expected guarantees.
2021-07-16 12:37:29 +00:00
Mugurell
acf8635f10 [components] For https://github.com/mozilla-mobile/android-components/issues/10555 - Use INPUT_HANDLING_UNKNOWN as the default of InputResultDetail
We need to wait until having a response from GeckoView on how it handled the
touch only after which we'll know whether to animate the toolbar or not.

The edgecase scenario of having pull to refresh enabled even before having a
response from GeckoView will still work because "canOverscrollTop()" only
checks for the touch to not be handled by the browser to pan the page.
2021-07-16 12:37:29 +00:00
Sebastian Kaspari
4863bc3b15 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10335: Use Java 11. 2021-07-15 14:57:23 +00:00
Jonathan Almeida
b11afae9ca [components] Close https://github.com/mozilla-mobile/android-components/issues/10601: Add lastAccess to Tab in TabsTray 2021-07-14 19:01:54 +00:00
mcarare
055e0f160f [components] For https://github.com/mozilla-mobile/android-components/issues/10571: Add optional icon tint for Toolbar Button. 2021-07-12 07:44:59 +00:00
mcarare
636adaf2a9 [components] For https://github.com/mozilla-mobile/android-components/issues/10404: Remove deprecated kotlin-android-extensions plugin
(cherry picked from commit d99621583ceb11e7d91ebe284e40aec145793e48)
2021-06-15 08:32:26 +00:00
Sammy Khamis
72e748cc4a [components] Conversion to using uniffi for logins component (https://github.com/mozilla-mobile/android-components/pull/10262)
Co-authored-by: Grisha Kruglov <gkruglov@mozilla.com>
2021-06-14 21:47:38 +00:00
Christian Sadilek
4dfb6d92c1 [components] Revert "For https://github.com/mozilla-mobile/android-components/issues/10404: Remove deprecated kotlin-android-extensions plugin"
This reverts commit d99621583ceb11e7d91ebe284e40aec145793e48.
2021-06-14 18:09:24 +00:00
mcarare
17c2336fde [components] For https://github.com/mozilla-mobile/android-components/issues/10404: Remove deprecated kotlin-android-extensions plugin 2021-06-14 10:05:57 +00:00
Arturo Mejia
6ee48a1640 [components] Closes https://github.com/mozilla-mobile/android-components/issues/9391 Add support for geckoView site permissions storage. 2021-06-09 18:36:18 +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
Arturo Mejia
2cd66e8675 [components] Don't dismiss on load SaveLoginPrompt requests 2021-06-03 06:25:23 +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
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
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
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
Codrut Topliceanu
5eaf878c11 [components] For https://github.com/mozilla-mobile/android-components/issues/10248 - Obfuscates credit card numbers autofill prompt (https://github.com/mozilla-mobile/android-components/pull/10256)
* For https://github.com/mozilla-mobile/android-components/issues/10248 - Obfuscates credit card numbers autofill prompt

* For https://github.com/mozilla-mobile/android-components/issues/10248 - Changed string extension to getters in CreditCards

* For https://github.com/mozilla-mobile/android-components/issues/10248 - Addressed comments

* For https://github.com/mozilla-mobile/android-components/issues/10248 - Updates tests

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-05-19 14:57:54 +00:00
Gabriel Luong
7d66af9e4b [components] Issue https://github.com/mozilla-mobile/android-components/issues/10228: Fix Intermittent AutofillCreditCardsAddressesStorageTest by calling check if the deleted credit card still exists
- To get around the intermittent, we call `getCreditCard(creditCard.guid)` and make sure it's gone instead of calling `getAllCreditCards()`
- Change `getCreditCard` and `getAddress` to be able to return null when no record can be found
2021-05-13 17:45:22 +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
Gabriel Luong
398885d893 [components] Issue https://github.com/mozilla-mobile/android-components/issues/9457: Add support to display a credit card picker to handle a SelectCreditCard request 2021-05-12 20:21:24 +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
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
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
Gabriel Luong
6121fe222c [components] No issue - Format PromptRequestTest.kt
This formats `PromptRequestTest.kt` by breaking up the one single test into their individual `PromptRequest`.
2021-04-27 20:30:26 +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
564d021f78 [components] Improve prompt/popup handling 2021-04-13 14:24:47 +00:00
Grisha Kruglov
cdfa305091 [components] Pre: mark ObserverRegistry lifecycle register method as MainThread
On newer AndroidX versions of lifecycle library, interactions with a lifecycle registry,
by default, must happen on the main thread. While in this code we don't control how lifecycle
registries are created, and so we can't be sure if this default behaviour is present, it's likely
safe to assume that our consumers won't create custom lifecycle registries with non-main thread interactions
allowed.
2021-04-12 08:50:58 +00:00
Gabriel Luong
34e3f78432 [components] Issue https://github.com/mozilla-mobile/android-components/issues/10026: Make the CreditCard data class parcelable 2021-04-08 16:23:27 +00:00
Mugurell
c755974f4c [components] Fix https://github.com/mozilla-mobile/android-components/issues/9614 - Use the new InputResultDetail
Both NestedGeckoView and NestedWebView will now return an InputResultDetail
wrapping many new details about how a touch event will be handled.

NestedGeckoView's InputResultDetail will be used to more accurately decide when
to animate the toolbar or start the pull to refresh feature.

NestedWebView's InputResultDetail will only have details about if it will
handle the touch or not. With all the other being unknown the dynamic toolbar
or pull to refresh features will not work.
2021-03-30 13:44:44 +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
Mugurell
2240f1756f [components] Fix https://github.com/mozilla-mobile/android-components/issues/9614 - Add a new InputResultDetail
This will serve the following purposes:
- wrapper for all the new data from GeckoView's onTouchEventForDetailResult
- filters out values not in range (eg: GV's INPUT_RESULT_IGNORED)
- controls how the data can be updated and offers clear APIs for querying this
data without needing to know about the implementation specifics.
2021-03-30 13:44:44 +00:00
Jonathan Almeida
6437a61988 [components] Add private flag to TabsTray Tab
When presenting the tray, embedders want to be able to style or react
differently to private tabs. Instead of them querying this value for
each tab, we can just provide it in the `Tab` abstraction of the tray.
2021-03-19 18:40:14 +00:00
Christian Sadilek
c9d791c53b [components] Adjust detekt TooManyFunctions threshold 2021-03-18 15:25:40 +00:00
Grisha Kruglov
0bfce9ce48 [components] Closes https://github.com/mozilla-mobile/android-components/pull/9864: Remove authorizeOAuthCode from the FirefoxAccount API 2021-03-11 04:24:21 +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
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
Mugurell
ec35e97135 [components] For https://github.com/mozilla-mobile/android-components/issues/9770 - Don't animate the dynamic toolbar while tab is loading
Toolbar will not be animated while the tab is loading irrespective of the
intrinsic checks made in the BrowserToolbarBehavior - whether the touch is a
vertical scroll and it was handled by GeckoView.
2021-03-01 17:00:22 +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
Gabriel Luong
651c77d629 [components] Issue https://github.com/mozilla-mobile/android-components/issues/9453: Introduce CreditCardsAddressesStorage interface for describing credit card and address storage 2021-02-06 17:06:09 +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
Roger Yang
dcd57ecc3c [components] Closes https://github.com/mozilla-mobile/android-components/issues/9528: Exposes BrowserMenu dismiss through BrowserToolbarMenu 2021-01-28 10:14:24 +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
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
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
Arturo Mejia
53add50756 [components] Closes https://github.com/mozilla-mobile/android-components/issues/9378: Add dot notification to the toolbar 2021-01-18 16:19:32 +00:00
Jonathan Almeida
6b2f64b21d [components] Close https://github.com/mozilla-mobile/android-components/issues/8598: Adds ActivityDelegate to support the GeckoView delegate 2021-01-18 12:45:49 +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
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
Christian Sadilek
a228860aa9 [components] Revert "GeckoEngineSessionState: Return empty state for invalid JSON."
This reverts commit e21bd60796a26e00708885ded8463988a2f367a7.
2020-12-15 17:20:12 +00:00
Sebastian Kaspari
3eda263503 [components] GeckoEngineSessionState: Return empty state for invalid JSON. 2020-12-15 15:37:00 +00:00
Sebastian Kaspari
800fb0d46f [components] Issue https://github.com/mozilla-mobile/android-components/issues/8873: Migrate feature-tab-collections to use browser-state. 2020-12-15 15:37:00 +00:00
Arturo Mejia
c89fa9273f [components] Closes https://github.com/mozilla-mobile/android-components/issues/9131: Add site permission indicators
in the toolbar.
2020-12-10 10:46:28 +00:00
Sebastian Kaspari
2191eda94e [components] Closes https://github.com/mozilla-mobile/android-components/issues/4571: Introduce API to purge (back/forward) history of tabs.
* For `PurgeHistoryUseCase` I decided to not introduce a "tab ID" parameter and instead have
  it purge the history of all tabs. It seems like this is what we need and individual tab
  history removal is not needed for now.
* Some tabs may not have an `EngineSession` assigned. Creating one just to call purgeHistory()
  seems excessive. Instead I am dropping an attached `EngineSessionState` which will cause
  those tabs to just reload the URL with not back/forward history when they get restored.
2020-12-08 19:43:08 +00:00
Mugurell
33fbf4e99d [components] For https://github.com/mozilla-mobile/android-components/issues/8893 - Support temporary hiding if a tab is selected
Clients interested in this should:
- use partial bindings with PAYLOAD_(DONT_)HIGHLIGHT_SELECTED_ITEM
- override TabsAdapter#isTabSelected for new item bindings
- override TabViewHolder#updateSelectedTabIndicator
2020-12-08 14:30:18 +00:00
Emilio Cobos Álvarez
8d0be73cb3 [components] Handle GeckoView EME permission requests.
This allows Fenix to play EME content without having to toggle manually
`media.eme.require-app-approval=false` in `about:config`.

Closes https://github.com/mozilla-mobile/android-components/issues/7121
2020-12-07 15:10:40 +00:00
Mugurell
3feb7af7a8 [components] For https://github.com/mozilla-mobile/android-components/issues/9091 - Remove the data url error page
This was already deprecated. No need to keep supporting it.
2020-12-04 12:21:51 +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
Jonathan Almeida
f7be84b506 [components] Issue https://github.com/mozilla-mobile/android-components/issues/9011: Submit exception on subscribe error 2020-11-30 22:12:06 +00:00
Mugurell
577225d8ef [components] For https://github.com/mozilla-mobile/android-components/issues/9042 - Dismiss pull to refresh if beforeunload prompt is cancelled 2020-11-23 22:05:25 +00:00
Christian Sadilek
c917dd2cee [components] Closes https://github.com/mozilla-mobile/android-components/issues/9022: Memory leak in BrowserThumbnails.requestScreenshot 2020-11-19 16:54:42 +00:00
Roger Yang
d5392af1e7 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8743, closes https://github.com/mozilla-mobile/android-components/issues/8886: Use MediaSesssion API in Media Notification 2020-11-18 11:09:19 +00:00
codrut.topliceanu
c84123dfb8 [components] For https://github.com/mozilla-mobile/android-components/issues/8554 - Migrate permissionFeature to KotlinFlow 2020-10-28 19:47:01 +00:00
Grisha Kruglov
a90d794cfa [components] Add debug logging for Send Tab and Push code 2020-10-27 20:29:34 +00:00
Christian Sadilek
c752c47bf1 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8800: Allow notifications from web extensions 2020-10-26 21:34:23 +00:00
Arturo Mejia
650aff1562 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8769 mark shimmed resources as blocked 2020-10-22 21:15:32 +00:00
ekager
a6656de348 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8757 - Expose CompositorController ClearColor as Setting 2020-10-20 22:47:46 +00:00
Tiger Oakes
b1a7210c5b [components] For https://github.com/mozilla-mobile/android-components/issues/7833: Generate concept-menu items for addons 2020-10-20 17:30:59 +00:00
Arturo Mejia
3bff10f141 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8681: Do not retry to update an extension when an unrecoverable exception happens 2020-10-19 21:20:47 +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
Mugurell
63910e1b2a [components] For https://github.com/mozilla-mobile/android-components/issues/8565 - New RepostPrompt that inform if users don't proceed with reload
The prompt for a repost request was previously an instance of Confirm, type
used for many other requests.
We'll now use a new Repost type that allows easily identifying the particular
scenario for a repost request, prompt that will now show a slightly different
text and will notify engine observers of "onRepostPromptCancelled" when users
asked to refresh the page but then cancelled that operation in the repost
prompt, callback used to hide the pull to refresh throbber.
2020-10-16 11:05:51 +00:00
Christian Sadilek
f7d24e677e [components] Closes https://github.com/mozilla-mobile/android-components/issues/8548: Display icons of temporary extensions 2020-10-08 14:57:50 +00:00
Arturo Mejia
b3fbf8e17e [components] Closes issue https://github.com/mozilla-mobile/android-components/issues/8367: Add SHIMMED TrackingCategory 2020-10-07 15:54:05 +00:00
Arturo Mejia
0dbb44a3d9 [components] Remove unused permissions 2020-10-07 15:16:33 +00:00
Arturo Mejia
476cebc29c [components] Closes https://github.com/mozilla-mobile/android-components/issues/3153: Add support for the local storage permission 2020-10-07 15:16:33 +00:00
Roger Yang
4391b4e2c8 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8207: Add Delegate and Browser Session State for MediaSession API 2020-10-07 10:14:40 +00:00
Jonathan Almeida
ac73bae091 [components] Close https://github.com/mozilla-mobile/android-components/issues/8040: Move ImageLoader to support-base
The `ImageLoader` API is public and we should have it in a better place.
2020-10-06 14:39:58 +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
Arturo Mejia
593c25629e [components] Closes https://github.com/mozilla-mobile/android-components/issues/8312:Adds support for ContentDelegate#onExternalResponse 2020-10-05 17:32:38 +00:00
Sebastian Kaspari
1142ece2d6 [components] 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. 2020-10-02 18:44:27 +00:00
Christian Sadilek
d0c972a2fc [components] Closes https://github.com/mozilla-mobile/android-components/issues/8488: Treat temporarily installed add-ons as supported 2020-09-29 23:25:41 +00:00
Tiger Oakes
a035a49d2c [components] For https://github.com/mozilla-mobile/android-components/issues/7833: Introduce async drawable menu item 2020-09-29 02:51:25 +00:00
Arturo Mejia
c5df5ad6d2 [components] Improve download flow 2020-09-25 20:22:57 +00:00
Grisha Kruglov
77382eec47 [components] Closes https://github.com/mozilla-mobile/android-components/issues/8492: Gracefully handle network failures while obtaining token server url 2020-09-25 18:58:08 +00:00
Grisha Kruglov
ee28f42d71 [components] Account manager state machine refactoring 2020-09-22 20:40:24 +00:00
Sebastian Kaspari
a8b7b69812 [components] Closes https://github.com/mozilla-mobile/android-components/issues/7719: Remove all default headers from GeckoViewFetchClient. 2020-09-21 13:53:27 +02:00
MozLando
49d5ca4753 [components] Merge https://github.com/mozilla-mobile/android-components/pull/8381
8381: Update application-services to version 63.0.0 r=jonalmeida a=mhammond

The new app-services has a couple of fixes which would be great to get into fenix asap - https://github.com/mozilla/application-services/pull/3537 (crashes when autocompleting in some cases) and https://github.com/mozilla/application-services/pull/3567 (prevents bookmarks syncing)

Co-authored-by: Mark Hammond <mhammond@skippinet.com.au>
2020-09-18 23:06:34 +00:00
Sebastian Kaspari
9d854eb6b7 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7719: Remove default headers for "User-Agent" and "Connection". 2020-09-17 11:01:02 +02:00
Mark Hammond
9ad487fb67 [components] Update application-services to version 63.0.0 2020-09-16 11:58:54 +10:00
ekager
7356f1274b [components] Closes https://github.com/mozilla-mobile/android-components/issues/8402 - Dismiss Select Login Prompt on Refresh 2020-09-14 14:52:00 -07:00
Hakkı Kaan Çalışkan
bff840d2bf [components] Closes https://github.com/mozilla-mobile/android-components/issues/8156: Add indicator to synced tabs suggestion in awesomebar
make lint and detekt happy

add changelog

forgotten space from another pr's in changelog

make requested changes

add flag to synced tabs suggestions too and add test

make detekt happy

add test for indicatorIcons too

make requested changes
2020-09-14 23:09:37 +03:00
Sebastian Kaspari
ab57ccf41c [components] Closes https://github.com/mozilla-mobile/android-components/issues/7886: SessionStorage: Write state as stream to disk instead of building model in memory first. 2020-09-11 13:16:32 +02:00
MozLando
f451c7b0a6 [components] Merge https://github.com/mozilla-mobile/android-components/pull/8176
8176: For https://github.com/mozilla-mobile/android-components/issues/8175: Allow SuggestionProviders to specify a edit suggestion r=pocmo a=miDeb

The edit suggestion arrow will only be shown if the suggestion is not null or empty. Tapping it autocompletes the suggestion, which can now be specified by the `SuggestionProvider`.



Co-authored-by: Michael Debertol <michael.debertol@gmail.com>
2020-09-10 17:36:57 +00:00
Sebastian Kaspari
93cfa77910 [components] Move MemoryConsumer interface from support-base to concept-base. 2020-09-08 17:50:15 +02:00
Sebastian Kaspari
7d533c0993 [components] Move CrashReporting/Breadcrumb from support-base to concept-base. 2020-09-08 17:50:14 +02:00
Sebastian Kaspari
e89445fc90 [components] Issue https://github.com/mozilla-mobile/android-components/issues/7689: Move Profiler interface from concept-engine to concept-base. 2020-09-08 12:41:07 +02:00
Sebastian Kaspari
bed39cbd0e [components] Issue https://github.com/mozilla-mobile/android-components/issues/7689: Add concept-base component. 2020-09-08 11:51:35 +02:00
Sebastian Kaspari
c66d74ce23 [components] Issue https://github.com/mozilla-mobile/android-components/issues/8255: Lazily restore engine sessions after content process kill or crash.
* Instead of keeping the EngineSessionState inside EngineSession, we now always attach it to EngineState and also do not
  clear it anymore.
* If the content process gets killed we now just suspend affected EngineSession instances. They will automatically and
  lazily get restored from the last EngineSessionState once needed.
* On a content process crash we now mark the EngineState as crashed and suspend the EngineSession. We will not restore
  the EngineSession until explicitly restored by the application.
2020-09-07 13:30:04 +02:00
Sebastian Kaspari
a59b7c2b81 [components] Update GeckoView Nightly to 82.0.20200826032437. 2020-08-27 14:13:07 +02:00
Tiger Oakes
fc2097aa7b [components] Closes https://github.com/mozilla-mobile/android-components/issues/5250 - Add monochrome purpose support 2020-08-24 17:43:40 -07:00
Tiger Oakes
eef6af7c6c [components] Add MenuStyle concept class 2020-08-21 11:15:21 -07:00
Jamie Nicol
82f933c588 [components] For https://github.com/mozilla-mobile/android-components/issues/7413 - Listen for onPaintStatusReset and don't thumbnail until subsequent contentful paint 2020-08-21 15:46:27 +01:00
Michael Debertol
cf7af4cc8e [components] For https://github.com/mozilla-mobile/android-components/issues/8175: Allow SuggestionProviders to specify a edit suggestion 2020-08-20 20:04:09 +02:00
Jonathan Almeida
96b8e4047f [components] Close https://github.com/mozilla-mobile/android-components/issues/8115: Add onTabsUpdated to TabsTray.Observer 2020-08-18 18:54:38 -04:00
Arturo Mejia
1d7a0fd04b [components] Issue https://github.com/mozilla-mobile/android-components/issues/7808 Expose cookie purging setting 2020-08-11 19:34:24 -04:00