Commit Graph

240 Commits

Author SHA1 Message Date
owlishDeveloper
83b0e8dc6c Bug 1806741 - Expose hasRuleForBrowsingContext API 2023-03-08 02:46:16 +00:00
Ryan VanderMeulen
0e5e70291c Bug 1820233 - Remove unneeded kotlin_stdlib inclusions and re-enable Werror in detekt build.gradle 2023-03-07 00:12:18 +00:00
t-p-white
194117d082 Bug 1809305 - Allow user to copy an image to the clipboard (https://github.com/mozilla-mobile/firefox-android/pull/948)
* Bug 1809305 - Allow user to copy an image to the clipboard

* Bug 1809305 - Update import & remove unnecessary gradle androidTestImplementation dependency

* Bug 1809305 - PR changes

* Bug 1819746 - Add explicit dependency to support-ktx

* Add buildconfig changes needed after adding support-ktx to componse-engine

---------

Co-authored-by: t-p-white <t-p-white>
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-06 12:16:22 +00:00
Ryan VanderMeulen
08532594e4 Bug 1820176 - Update AC to ktlint 0.48.2 2023-03-03 20:14:13 +00:00
mcarare
45f919de20 Bug 1802817 - Migrate packagingOptions DSL properties to resources sub-block.
exclude, pickFirst methods are deprecated.
2023-03-02 17:13:09 +00:00
mcarare
1f589a2e0b Bug 1802817 - Set namespace via DSL in gradle build files.
See https://developer.android.com/studio/build/configure-app-module#set-namespace
and https://issuetracker.google.com/issues/172361895
2023-03-02 17:13:09 +00:00
mcarare
922b5f6643 Bug 1802817 - Rename AC Dependencies to ComponentsDependencies.
This change is needed in order to avoid clashes with Dependencies class introduced
in Gradle from 7.6 version.
2023-03-02 17:13:09 +00:00
Cathy Lu
7a27debf84 Bug 1800146 - Set tab's GeckoSession priority based on form data 2023-01-18 21:49:22 +00:00
Arturo Mejia
8a5bd1b7b6 Bug 1797568 - Allow to observe the cookie banner events for a given session. 2023-01-04 03:23:30 +00:00
Alexandru2909
fb35eb4eb7 Bug 1799679 - Preserve search terms for search engine result pages 2023-01-03 07:56:37 +00:00
Rahul Sainani
160cbe4f8c Bug 1796319 - Add functionality in SelectOrAddUsecase to ignore the fragment identifier part of the url (https://github.com/mozilla-mobile/firefox-android/pull/343)
* Bug 1796319 - Add functionality to match urls ignoring the fragment/anchor

* Bug 1796319 - Update SelectOrAddTabUsecase to add the ignoreFragment param

* Bug 1796319 - Add docs

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2022-12-19 15:42:33 +00:00
Christian Sadilek
4fcc97ab8d Revert "Bug 1799679 - Preserve search terms for search engine result pages"
This reverts commit bf984d2d9a1d6db4452393e0b4421e9b808f0bdf.
2022-12-13 12:39:05 -05:00
Gabriel Luong
386c363b22 Bug 1804594 - Differentiate search engines between "general" and "topic specific" when they are loaded 2022-12-12 21:51:07 +00:00
Alexandru2909
a8dc241789 Bug 1799679 - Preserve search terms for search engine result pages 2022-12-12 19:55:08 +00:00
Christian Sadilek
4091b14a33 Fix android lint in composite builds 2022-11-21 13:40:53 -05:00
DreVla
1b6e0def7e Bug 1800209 - Support for refreshing search engines when language is changed 2022-11-18 08:35:10 +00:00
Jonathan Almeida
11592be959 Bug 1799056 - Update onSaveToPdfError to onSaveToPdfException 2022-11-08 17:05:50 +00:00
Jonathan Almeida
61a134090e Bug 1795105 - Don't store thumbnails in BrowserState
Co-authored-by: ohall-m <93344309+ohall-m@users.noreply.github.com>
Co-authored-by: kycn <35106533+kycn@users.noreply.github.com>
2022-11-08 02:44:05 +00:00
Jonathan Almeida
7c764c6501 Revert "Bug 1795105 - Don't store thumbnails in BrowserState"
This reverts commit d9028ef2b230a03459fe20ab56bdce0acdce3aea.
2022-11-04 14:24:55 -04:00
Jonathan Almeida
bcc34f349e Bug 1795105 - Don't store thumbnails in BrowserState
Co-authored-by: ohall-m <93344309+ohall-m@users.noreply.github.com>
Co-authored-by: kycn <35106533+kycn@users.noreply.github.com>
2022-11-04 04:58:11 +00:00
Arturo Mejia
496f1135fc Bug 1796482 - Allow for notifying consumers on unsuccessful Save to PDF requests 2022-11-01 20:38:10 +00:00
mcarare
4ad330adbc [components] For https://github.com/mozilla-mobile/android-components/issues/12489: Upgrade kotlin, coroutines, compose compiler to latest versions.
Upgrade kotlin to 1.7.20, coroutines to 1.6.4 and compose compiler to 1.3.2.
Replace deprecated Xopt-in with op-in.
Replace deprecated Xjvm-default=enable with Xjvm-default=all.
Remove useIR property that is now default true.
2022-10-18 08:20:59 +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
92fe0c0234 [components] For https://github.com/mozilla-mobile/android-components/issues/12724: Upgrade compose to 1.2.1 version.
Split versioning of compose compiler.
Enable Xjvm-default to allow inheriting from interfaces with '@JvmDefault' members
like RememberObserver.
2022-09-08 08:22: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
mcarare
30e5a6f476 [components] For https://github.com/mozilla-mobile/android-components/issues/12402: Run Robolectric with SDK 32. 2022-06-29 16:31:33 +00:00
mcarare
2a1c468edc [components] For https://github.com/mozilla-mobile/android-components/issues/12376: Run Robolectric with SDK 31.
Current Robolectric version does not support SDK 32.
2022-06-28 13:42:14 +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
Roger Yang
09dd0c3e07 [components] Issue https://github.com/mozilla-mobile/android-components/issues/12149: Add support for application search engine type 2022-05-16 19:02:13 +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
Mugurell
2963708053 [components] For https://github.com/mozilla-mobile/android-components/issues/11755 - Replace TestCoroutineDispatcher with UnconfinedTestDispatcher
- Refactor out all usages of TestCoroutineDispatcher and TestCoroutineScope
- Refactor MainCoroutineRule to now use UnconfinedTestDispatcher by default.
This dispatcher will eagerly enter all launch or async blocks being more suited
to our codebase.
2022-05-10 13:45:03 +00:00
mcarare
2275e49731 [components] For https://github.com/mozilla-mobile/android-components/issues/9684: Run tests on sdk 30. 2022-04-28 08:33:29 +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
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
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
Roger Yang
5fd04be267 [components] No issue: Add TabPartition tests 2022-01-19 23:43:56 +00:00
Roger Yang
5ebbe97126 [components] Close https://github.com/mozilla-mobile/android-components/issues/11383: Ensure each tab group does not have duplicate tab IDs 2022-01-12 23:18:58 +00:00
Roger Yang
fdd23e4a5f [components] Close https://github.com/mozilla-mobile/android-components/issues/11383: Add tabstray support for search term tab grouping logic with middleware 2022-01-12 15:27:26 +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
Sebastian Kaspari
e2a4af5cf6 [components] Issue https://github.com/mozilla-mobile/android-components/issues/11300: EngineMiddleware: Add option for disabling TrimMemoryMiddleware 2021-11-23 18:43:44 +00:00
Christian Sadilek
e2b56538db [components] Closes https://github.com/mozilla-mobile/android-components/issues/11208: Add tab partitions and groups to BrowserState 2021-11-22 21:49:21 +00:00
Christian Sadilek
57173a94e0 [components] Closes https://github.com/mozilla-mobile/android-components/issues/11241: TabSessionState.lastAccess not updated when application resumes 2021-11-09 13:57:57 -05: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
Sebastian Kaspari
90ec41fc3a [components] Update Kotlin and Jetpack Compose versions. 2021-10-25 10:58:07 +00:00
Grisha Kruglov
b356d9275a [components] Add DisbandSearchGroupAction to allow removing search groups from tab state 2021-10-13 10:13:39 -07:00
Christian Sadilek
743fcdaa5c [components] Issue https://github.com/mozilla-mobile/android-components/issues/11066: Make optimized load url case observable in middlewares 2021-10-13 15:42:38 +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
ssk97
6e1133eacf [components] Support Moving/Reordering Tabs (https://github.com/mozilla-mobile/android-components/pull/10936)
* Add MoveTabsAction and tests for it

* Add MoveTabsUseCase and a test

* Add getFilter to TabsFeature

* ktlint/detekt formating pass

* Changelog entry

* Fix cut off comment

* Remove action reference comment

* Remove unneeded setting of selectedTabId in copy

* Replace filter getter with just making the variable public
It's simpler and I can't see why it shouldn't be modifiable.

* API change from position+filter to target+placeAfter.
Also added a "tab not found" check.

* Add another test, clean up changelog

* Animate moving tabs via movement rather than add+delete.

* Put Private modifier back, improve documentation.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2021-09-22 15:16:29 +00:00