Commit graph

843 commits

Author SHA1 Message Date
Arturo Mejia
38a49098e7 Bug 1882404 - Expose granted permissions on AC. 2024-03-14 19:56:09 +00:00
sarah541
d57d64ae55 Bug 1870938 - Add display/edit toolbar separator and update url bar background 2024-03-11 19:37:37 +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
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
Cathy Lu
9afba947ac Bug 1876820 - Add translation fetch downloaded languages action 2024-03-02 00:21:10 +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
Arturo Mejia
62f0b8b2e8 Bug 1881537 - Exposed required and optional permissions on AC. 2024-02-27 23:36:59 +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
iorgamgabriel
dc871e8063 Bug 1875817 - Translations Integration Toolbar Showing 2024-02-26 12:38:04 +00:00
Alexandru2909
b133b2a157 Bug 1804636 - Allow search terms to be refined in content 2024-02-23 17:02:28 +00:00
ohall-m
7c5f4177af Bug 1876803 - Translation Download Size Action
This patch adds a flow for determining the download size that would
occur for a given translation. Expected use case is for low-data modes.

* New `FetchTranslationDownloadSizeAction`
* New `SetTranslationDownloadSizeAction`
* New `CouldNotDetermineDownloadSizeError`
* New `TranslationDownloadSize` object and `translationDownloadSize` on the
session `TranslationsState`
2024-02-20 16:18:59 +00:00
ohall-m
afb67a9011 Bug 1877278 - AC Translations Check for if the Engine is Supported
This patch supports the workflow for checking if the device architecture supports translations.

This patch adds:
* New `TranslationsBrowserState` to hold global translations engine state
* New `SetEngineSupportedAction` to set the isEngineSupported value on `TranslationsBrowserState`
* New `EngineExceptionAction` to set errors on `TranslationsBrowserState`
2024-02-14 22:15:53 +00:00
William Durand
9bc2c90781 Bug 1875229 - Add support for extensions not allowed in private windows 2024-02-14 19:11:16 +00:00
ohall-m
bf47078f54 Bug 1877203 - Update Translations Page Settings
The goal of this bug is to have a way to update page settings.

It adds:
* A new action, `UpdatePageSettingAction`
  * This action has four options:
     * `UPDATE_ALWAYS_OFFER_POPUP`
     * `UPDATE_ALWAYS_TRANSLATE_LANGUAGE`
     * `UPDATE_NEVER_TRANSLATE_LANGUAGE`
     * `UPDATE_NEVER_TRANSLATE_SITE`
* Each operation eagerly sets the new setting on the browser store, then
sends the request to the engine. If setting on the engine fails, then
they will re-request the page settings in order to remain in-sync.
2024-02-13 23:34:22 +00:00
Cathy Lu
c16bcc5677 Bug 1876823 - Add action to fetch sites that should not be translated 2024-02-06 21:12:31 +00:00
ohall-m
ddd55b1a82 Bug 1877205 - Translations Fetch Supported Languages Refactor
This patch refactors a few things for fetching supported languages:

* `TranslateExpectedAction` is decoupled from fetching languages
* Now use `OperationRequestedAction` w/ `FETCH_SUPPORTED_LANGUAGES`
* Refactors the Fenix fragment to send `OperationRequestedAction` as a
placeholder for data initialization
* `TranslateSetLanguagesAction` is now `SetSupportedLanguagesAction`
2024-02-06 19:35:42 +00:00
t-p-white
a87e28f0c0 Bug 1813875 - Prevent the inherited theming implementation being applied to Custom Tab views 2024-02-02 15:30:07 +00:00
mike a
2cbd968ba9 Bug 1873260 - Move Behavior classes to ui-widget component 2024-01-31 21:46:09 +00:00
ohall-m
ea8eeac627 Bug 1875093 - Bug 1875093 - AC Action to Fetch and Set Page Preferences for Translations
This patch adds two new Actions:
* `OperationRequestedAction` - for requesting to fetch data
* `SetSettingsAction` - for setting that data on the browser store

`TranslationsMiddleware` reacts to these Actions by fetching and setting
the appropriate data.

The patch to update data will be bug 1877203.
2024-01-31 19:04:32 +00:00
ohall-m
259bc2d25e Bug 1876844 - Translations LanguageSetting Helper
This patch adds a way to convert between LanguageSetting and Booleans.
2024-01-30 14:51:35 +00:00
Harrison Oglesby
dcc827eaf2 Bug 1864760 - Added actions to Toolbar and MenuButton to hide and show the menu button 2024-01-29 23:44:43 +00:00
Cathy Lu
5d6ee304f1 Bug 1875106 - Add shopping api to send placement attribution event 2024-01-26 17:08:42 +00:00
ohall-m
6df7a6ce6d Bug 1874441 - Connecting Dropdowns to Translate Button
This patch connects the translations to and from dropdowns to the
translation button and sets default dropdown selection values.
2024-01-25 21:42:43 +00:00
Arturo Mejia
7f72c0bece Bug 1860472 - Clean temporary file Uploads. 2024-01-24 22:40:21 +00:00
jackyzy823
dd3c7926c2 Bug 1850006 - conservative flag limits to mozilla services only 2024-01-23 21:08:32 +00:00
jackyzy823
b8b44b9ac8 Bug 1850006 - make conservative to be a parameter of Request 2024-01-23 21:08:32 +00:00
t-p-white
01f1578630 Bug 1874861 - Removed redundant LongParameterList suppression's 2024-01-18 18:37:49 +00:00
Gabriel Luong
05c4b6b7b4 Bug 1866133 - Add additional headers for Google search 2024-01-14 18:43:23 +00:00
Olivia Hall
3e5f9eac2a Bug 1873511 - New supportedLanguages and translationError on TranslationsState, with TranslateExceptionAction Refactor
This patch adds the additional state information of `supportedLanguages` and `translationError` to `TranslationsState`. The `supportedLanguages` are the languages the translation engine supports for translating for use in UI dropdowns. `translationError` is any error that occurred relating to translating.

`supportedLanguages` is currently set via an action that indicates the intention to translate on the new `EngineMiddleware` addition of `TranslationsMiddleware`. This patch also adds a new `TranslationOperation` of `FETCH_TO_AND_FROM_LANGUAGES` to indicate the process of getting `supportedLanguages`.

`translationError` is added to the `TranslationsState` to store errors as they arise. `TranslateExceptionAction` is also refactored from using the generic `Throwable` to the new `TranslationError` to accommodate `supportedLanguages` and better general error handling.O_AND_FROM_LANGUAGES` to indicate the process of getting `supportedLanguages`.
2024-01-11 20:58:52 +00:00
mike a
4880cb0c81 Bug 1869664 - Add more toolbar telemetry 2024-01-09 08:28:30 +00:00
alexandra.virvara
221e518737 Bug 1862190: Expose and integrate the suggested strong password in the authentication flow 2024-01-08 16:38:28 +00:00
Olivia Hall
2ffeb0a8e5 Bug 1872703 - Named Translation Errors
This bug takes the named AC `TranslationError` and ensures that all
translation calls to the Gecko engine translate to this type of error.
2024-01-04 23:27:39 +00:00
Olivia Hall
97e144efd8 Bug 1862263 - Translations Error Support
This patch defines different possible translation errors, how they map
from GeckoView, and how they map to errors we display.
2024-01-02 21:53:20 +00:00
Tarik Eshaq
5bbaa8a7b9 Bug 1870923: Removes wipe from SyncableLoginsStorage 2023-12-20 16:38:01 +00:00
Olivia Hall
ad400b1d89 Bug 1862288 - Runtime Functions for Never Translating a Site
This bug adds `TranslationsRuntime.getNeverTranslateSiteList` and
`TranslationsRuntime.setNeverTranslateSpecifiedSite`
for use when managing the global never translate sites list.

Please continue to use `EngineSession.getNeverTranslateSiteSetting`
and `EngineSession.setNeverTranslateSiteSetting` when modifying this
same preference on the currently displayed site.
2023-12-19 19:25:48 +00:00
Jeff Boek
a8e3fb21dc Bug 1866927 - Adds ability to enable email tracker blocking protection in private mode 2023-12-14 23:02:38 +00:00
Mark Hammond
c5bdf6fff4 Bug 1858789 - vastly more efficient counting of bookmarks for the home activity. 2023-12-12 23:18:02 +00:00
jackyzy823
572736f974 Bug 1812797 - Add referrerUrl to Request 2023-12-11 21:27:39 +00:00
Arturo Mejia
7767cade90 Bug 1868378 - Indicate the installation method when installing an add-on. 2023-12-08 00:56:59 +00:00
mcarare
34282b0d72 Bug 1865357 - Add Global Privacy Control settings. 2023-12-07 21:58:51 +00:00
Cathy Lu
9d9a2992d7 Bug 1858947 - Expose Shopping API reportBackInStock to AC 2023-12-06 18:53:24 +00:00
William Durand
7a1b7658a8 Bug 1868172 - Add support for UnsupportedAddonType error code 2023-12-05 17:26:15 +00:00
mcarare
60d3978145 Bug 1821005 - Restore reverted Gradle 8 upgrade due to startup crashes"
This reverts commit 592e88b3547d2e96ae04d8b5bd69cbab2ac3e97e.
2023-12-05 03:44:20 +00:00
Cathy Lu
933fffe65f Bug 1866241 - Expose Shopping status progress field in AC 2023-12-01 16:06:07 +00:00
Olivia Hall
9308778aad Bug 1862262 - Translations Preferences
This bug adds a few options for translations preferences on the engine,
including:
* (Runtime Setting) Option to get/set translations offer popup
* (Runtime Request) Option to get/set translation language preference
* (Session Request) Option to get/set a site's translation preference
2023-11-30 23:00:07 +00:00
William Durand
40c8b21971 Bug 1867295 - Introduce a new installBuiltInWebExtension method 2023-11-30 20:41:42 +00:00
Arturo Mejia
da8b634981 Bug 1866293 - Add support for installing an add-on a from local file. 2023-11-29 22:37:38 +00:00
Arturo Mejia
cc9532b0ee Bug 1866474 - Incorrect status is displayed after turning off the Cookie Banner Blocker feature from the panel 2023-11-29 16:30:36 +00:00
Olivia Hall
42b3883a45 Bug 1860844 - Add GeckoTranslateSessionDelegate to Android Components
This bug adds a translation session delegate for receiving information
from GeckoView on the state of the toolkit translation engine and also
when to expect and offer translations on a given page.

It also updates reference browser to use auto-detected defaults for
translating.
2023-11-21 22:24:04 +00:00