Commit graph

3041 commits

Author SHA1 Message Date
mcarare
9a68c5aeca Bug 1854131 - Compare availableHeightToTop and availableHeightToBottom when positioning menu. r=android-reviewers,twhite
When the popup doesn't fit up or down, because both availableHeightToTop and availableHeightToBottom are both smaller than containerHeight choose the highest one to choose menu direction.

Differential Revision: https://phabricator.services.mozilla.com/D205207
2024-03-20 13:19:26 +00:00
Geoff Brown
468f304a69 Bug 1879660 - Relax geckoview version pinning on try builds. r=bhearsum,releng-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D202599
2024-02-22 16:31:21 -07:00
Julien Cristau
1542273201 Bug 1875761 - disable release channel test in browser-engine-gecko component. r=geckoview-reviewers,gl
The update channel is "default" for non-shippable geckoview builds, which breaks this test.

Differential Revision: https://phabricator.services.mozilla.com/D201538
2024-01-24 10:47:35 +01:00
Julien Cristau
bcb05902ed Bug 1825116 - remove executable bit from yaml file. r=geckoview-reviewers,gl
Differential Revision: https://phabricator.services.mozilla.com/D201534
2024-01-22 17:28:44 +01:00
Julien Cristau
a95d1fbec3 Bug 1824856 - use MOZ_BUILD_DATE when available instead of buildid.h. r=glandium,amejiamarmol,geckoview-reviewers,firefox-build-system-reviewers
buildid.h is generated by mach build, but we only run configure in
automation for firefox-android tasks.

Differential Revision: https://phabricator.services.mozilla.com/D201510
2024-01-12 14:17:04 +01:00
Julien Cristau
8a0b0da88c Bug 1822393 - consistently use getGeckoViewDependency() in browser-engine-gecko. r=owlish,geckoview-reviewers
Use the same path for CI and local builds to declare the geckoview dependency.

Differential Revision: https://phabricator.services.mozilla.com/D201505
2024-01-11 15:57:50 +01:00
Gabriel Luong
10bf459698 Bug 1876335 - use GRADLE_MAVEN_REPOSITORIES in more places. r=owlish,geckoview-reviewers,nalexander,tthibaud,android-reviewers
To ensure that we can build offline, we need to prevent gradle from
going through remote maven repos directly.

That means also overriding the default plugin repository
(plugins.gradle.org) in the `pluginManagement` section.

Differential Revision: https://phabricator.services.mozilla.com/D201497
2024-01-18 15:38:47 +01:00
Gabriel Luong
b8d57bda9d Bug 1822393 - Consume GeckoView directly in Android Components for CI builds. r=owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201485
2023-12-08 02:35:56 -05:00
Gabriel Luong
bcc593f93c Bug 1822393 - Support consuming GeckoView artifact builds from maven local. r=owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201484
2023-12-07 18:08:22 -05:00
Gabriel Luong
52bb5c21a8 Bug 1822393 - Support Android Components consuming GeckoView directly. r=nalexander,geckoview-reviewers,tthibaud,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201483
2023-12-07 16:19:43 -05:00
Arturo Mejia
38a49098e7 Bug 1882404 - Expose granted permissions on AC. 2024-03-14 19:56:09 +00:00
ohall-m
dd78da47e1 Bug 1885137 - Added Logging for if the Translation Engine is Supported
Added additional logging to know if the translations engine is supported
on the device.
2024-03-13 15:51:24 +00:00
github-actions
f2f28219e3 Import translations from android-l10n 2024-03-12 00:29:25 +00:00
ohall-m
4dc4264b42 Bug 1884459 - Prevent Offers to Translate after a Translation Occurs
This bug slightly adjusts the reducer to set `isOfferTranslate` to false
once a translation occurs.
2024-03-11 20:59:00 +00:00
sarah541
d57d64ae55 Bug 1870938 - Add display/edit toolbar separator and update url bar background 2024-03-11 19:37:37 +00:00
github-actions
4896b4f5a5 Import translations from android-l10n 2024-03-11 00:27:41 +00:00
github-actions
832bb852ff Import translations from android-l10n 2024-03-09 00:27:15 +00:00
Mark Hammond
7f8a575403 Bug 1879332 - ensure synced tabs includes the inactive property 2024-03-08 19:52:59 +00:00
jackyzy823
65c2ecd5f5 Bug 1884300 - Add NullPointerException for SvgIconDecoder 2024-03-08 14:06:06 +00:00
github-actions
bd78faf39f Import translations from android-l10n 2024-03-07 20:38:12 -05:00
ohall-m
bfceb71733 Bug 1878917 - Add Reducer for Checking for LanguageNotSupported and Send Error
This updates the translations session store to set an error when the
language is not supported.
2024-03-08 00:31:08 +00:00
mcarare
16fb39bd7d Bug 1839160 - Prevent opening a menu twice. 2024-03-07 18:53:24 +00:00
jackyzy823
457ac6deda Bug 1884034 - Add IllegalArgumentException for SvgIconDecoder 2024-03-07 18:22:09 +00:00
sarah541
883ea4e664 Bug 1883753 - Remove menu from custom tab bar 2024-03-07 06:42:31 +00:00
github-actions
49bfe2708a Import translations from android-l10n 2024-03-07 01:01:05 +00:00
ohall-m
adf4883c1f Bug 1883128 - Fix Logic Issue In Setting Page LanguageSettings
The language setting converter had an issue where it set to `NEVER`
instead of `OFFER`, which caused incorrect behavior.
2024-03-07 00:34:46 +00:00
jackyzy823
536a0f5fd3 Bug 1853107 - Fix a race condition on CreateEngineSession 2024-03-06 22:13:36 +00:00
jackyzy823
cc1d63cb81 Bug 1879116 - Repalce coil-kt with AndroidSVG 2024-03-06 13:50:19 +00:00
t-p-white
d4300473fe Bug 1813913 - Added support for Custom Tabs setColorScheme & setColorSchemeParams API 2024-03-05 17:52:49 +00:00
ohall-m
6c6ae72bce Bug 1883127 - Clear isOfferTranslate Under Certain Conditions
This bug clears `isOfferTranslate` similarly to `isExpectedTranslate`
on a translations engine state change.
2024-03-04 20:47:29 +00:00
ohall-m
3c5b610023 Bug 1862291 - Operation for Fetching Global Language Settings
This patch adds functionality for fetching global language settings for
translations.

This patch adds:
* The Operation `FETCH_AUTOMATIC_LANGUAGE_SETTINGS` for fetching the global language
settings from the translation engine.
* `SetLanguageSettingsAction` to set the `languageSettings` on `TranslationsBrowserState`.
*Initialization occurs in `initializeBrowserStore'
* Updates page settings to call `FETCH_AUTOMATIC_LANGUAGE_SETTINGS` after a page level
language update. (These settings coordinate both globally and on a page level.)
2024-03-04 20:04:01 +00:00
ohall-m
8b1a4d734e Bug 1882542 - Eagerly Calculate an Initial Translation Download Size
This bug adds:
* When `TranslateExpectedAction` occurs, then calculate the expected
translations model download size.

More background: `TranslateExpectedAction` indicates we have a default
`from` (page language) and a default `to` (user preferred) language
to initialize the translations dialog with expected values.

This queries how large of a download the translation
pair will be eagerly, so we have an initial value for the default recommendation.
2024-03-04 19:08:20 +00:00
github-actions
3d286d946e Import translations from android-l10n 2024-03-04 00:29:52 +00:00
Cathy Lu
9afba947ac Bug 1876820 - Add translation fetch downloaded languages action 2024-03-02 00:21:10 +00:00
ohall-m
67ecb461de Bug 1882403 - Refactor Browser Store Initialization for Translations
This bugs shifts around the initialization for the global store in translations.

Revised Flow:

* `InitAction` -> `InitTranslationsBrowserState`
* `InitTranslationsBrowserState`:
  * Checks the engine support, if everything is in order, then finishes initialization on `initializeBrowserStore`.
2024-02-29 22:23:15 +00:00
ohall-m
ca42258363 Bug 1882405 - Page Settings Data Structure Should be Val
* A subtle bug was introduced when page settings were moved from `val` to
`var` for updating page settings.
* Everything works as expected with the reducer updating etc., however
changes on page settings are not observed in compose.
2024-02-29 03:30:23 +00:00
github-actions
3d65cb604e Import translations from android-l10n 2024-02-28 00:26:34 +00:00
Arturo Mejia
62f0b8b2e8 Bug 1881537 - Exposed required and optional permissions on AC. 2024-02-27 23:36:59 +00:00
ohall-m
7e9ab07604 Bug 1880490 - Moving Translations supportedLanguages
This patch refactors Translations `supportedLanguages` from `[SessionState.translationsState]`
to `[BrowserState.translationEngine]`  in AC.

* Additionally adds `InitTranslationsBrowserState` to signal populating `[BrowserState.translationEngine]`.
* This patch also makes adjustments to migrates Fenix's `TranslationsDialogBinding` and `TranslationsBinding`
 to also monitor this new store location.
2024-02-27 22:52:14 +00:00
ohall-m
ed02882618 Bug 1882151 - Always and Never Page Settings Bug
This bug updates the logic for "never translate this language" and
"always translate this language" to ensure they are mutually exclusive
when one is true, but also allows them both to be false.
2024-02-27 21:43:40 +00:00
ohall-m
2a9c4f8c91 Bug 1881294 - Refine isExpectedTranslate
This patch fixes an issue where `isExpectedTranslate` is not cleared
between navigations. It adds logic in `TranslationsStateReducer` to
check if the criteria is met and clears the state, if applicable.
2024-02-27 05:11:50 +00:00
github-actions
1bb54e1c20 Import translations from android-l10n 2024-02-27 00:32:13 +00:00
Issam Mani
e18d4f3671 Bug 1880075 - Use single name field for addresses 2024-02-26 18:18:40 +00:00
ohall-m
ded496e876 Bug 1881604 - Helper for Transforming BCP 47 code to defined Language
This patch adds a helper for converting BCP 47 codes to translations
supported languages.

Adds:
* `toLanguageMap` - maps a map of BCP 47 code (key) to Language (value)
* `findLanguage` - finds a language using the `toLanguageMap`
* `mapLanguageSettings` - makes a new display ready map for converting
the language settings from Map<String, LanguageSetting>?) to Map<Language?, LanguageSetting>
2024-02-26 17:00:24 +00:00
github-actions
e4dcbdd19b Import translations from android-l10n 2024-02-26 00:29:05 +00:00
github-actions
94fa77fe95 Import translations from android-l10n 2024-02-25 03:37:58 +00:00
github-actions
feb39e29f7 Import translations from android-l10n 2024-02-24 00:28:03 +00:00
Alexandru2909
b133b2a157 Bug 1804636 - Allow search terms to be refined in content 2024-02-23 17:02:28 +00:00
github-actions
d0130ee2c2 Import translations from android-l10n 2024-02-23 00:26:10 +00:00
mcarare
7562dc8765 Bug 1880077 - Switch to using Compose BOM instead of individual versioning 2024-02-22 08:51:53 +00:00