Commit Graph

521 Commits

Author SHA1 Message Date
Greg Stoll
92fb38dd41 Bug 1811603 - don't set orientation when going to full-screen and playing an element with 0 size r=android-reviewers,tthibaud
The .portrait property is used in MediaSessionFullscreenFeature::setOrientationForTabState and already handles the null case, so just

Differential Revision: https://phabricator.services.mozilla.com/D209447
2024-05-20 13:07:30 +00:00
William Durand
d00383a7ed Bug 1893387 - Refactor how required permissions/origins are passed from Gecko to the embedder in exportExtension(). r=amejiamarmol,android-reviewers,robwu,geckoview-reviewers,ohall
Differential Revision: https://phabricator.services.mozilla.com/D208503
2024-05-15 20:35:39 +00:00
mcarare
1070e28db0 Bug 1893120 - Run AC Robolectric tests on SDK 34 and adapt tests. r=android-reviewers,webcompat-reviewers,twisniewski,avirvara
Differential Revision: https://phabricator.services.mozilla.com/D209640
2024-05-14 13:00:48 +00:00
acseh
3f4b08c594 Backed out changeset 9976b7730dbd (bug 1893120) for causing lint failures CLOSED TREE 2024-05-14 12:57:36 +03:00
mcarare
4a11afeae1 Bug 1893120 - Run AC Robolectric tests on SDK 34 and adapt tests. r=android-reviewers,webcompat-reviewers,twisniewski,avirvara
Differential Revision: https://phabricator.services.mozilla.com/D209640
2024-05-14 08:02:38 +00:00
ohall-m
6cd07c8608 Bug 1892715 - Part 3: Update Android Components isTranslated Logic r=android-reviewers,giorga
This patch updates Android Components to use the new `hasVisibleChange `
information from the translations engine to better manage translations visible state.

Differential Revision: https://phabricator.services.mozilla.com/D209577
2024-05-07 23:39:55 +00:00
Geoff Brown
a7e1483b01 Bug 1881094 - 4. remove and revise prettier exclusions for firefox-android r=android-reviewers,frontend-codestyle-reviewers,gl,webcompat-reviewers,twisniewski
- remove the firefox-android exclusions from .prettierignore
 - add a few specific exclusions to .prettierignore for files with existing errors
 - add a few specific entries to Generated.txt and ThirdPartyPaths.txt
 - add `initial_experiments.json` to the list of generated files: these are updated from Nimbus
 - run `mach lint --fix --linter=eslint -- mobile/android` to generate all the formatting changes

Differential Revision: https://phabricator.services.mozilla.com/D206915
2024-05-07 20:24:38 +00:00
Arturo Mejia
4be563ddf5 Bug 1892302 - Report when permissions for a web extension have changed r=willdurand,android-reviewers,geckoview-reviewers,zmckenney
Differential Revision: https://phabricator.services.mozilla.com/D207930
2024-04-30 00:02:26 +00:00
Noemi Erli
d34a53602a Backed out changeset a2ec4e1379a8 (bug 1892302) for causing xpc failures in test_ext_native_messaging_geckoview.js CLOSED TREE 2024-04-29 22:34:31 +03:00
Arturo Mejia
be12b68b6c Bug 1892302 - Report when permissions for a web extension have changed r=willdurand,android-reviewers,geckoview-reviewers,zmckenney
Differential Revision: https://phabricator.services.mozilla.com/D207930
2024-04-29 17:59:40 +00:00
ohall-m
6deba21e0b Bug 1892743 - Add Global Translations Offer AC Options r=android-reviewers,giorga
Right now, it is only possible to access the “offer to translate” setting off of page settings. Unlike most of the other page settings, this setting is also a global setting.
This patch adds an option to view this setting independently of page settings and helps keep it in sync, when page settings change this setting as well.

We need this because it will soon be possible to access the global settings layer of settings directly via the main menu settings.

This patch:
* Adds `SetGlobalOfferTranslateSettingAction` - Sets the `offerTranslation` value on the global `TranslationsBrowserState`. Intended for global usage.
* Adds `UpdateGlobalOfferTranslateSettingAction` - A global way to update the offer to translate value outside of a page.
* Adds `TranslationOperation.FETCH_OFFER_SETTING` - The same as `SetGlobalOfferTranslateSettingAction`, but for a tab. Intended for tab usage.
* Adds a call to set `offerTranslation` on `Init`

Differential Revision: https://phabricator.services.mozilla.com/D208233
2024-04-24 13:31:05 +00:00
Arturo Mejia
062c2794ef Bug 1812320 - Add support to edit extension permissions at run-time in AC. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D205629
2024-04-10 21:41:44 +00:00
Geoff Brown
4939eda588 Bug 1881094 - 2. remove whitespace exclusions for firefox-android r=android-reviewers,gl
Whitespace changes made with `mach lint --fix`.

Differential Revision: https://phabricator.services.mozilla.com/D206702
2024-04-04 22:19:32 +00:00
Arturo Mejia
38a49098e7 Bug 1882404 - Expose granted permissions on AC. 2024-03-14 19:56:09 +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
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
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
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
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
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
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
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
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