Commit Graph

862 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
Lina Butler
9fc26ee91c Bug 1891157 - Add a feature and a use case for closing synced tabs. r=jonalmeida,android-reviewers,007
This commit introduces plumbing for sending "close tab" commands to
other devices that are signed in to the same Mozilla account, and for
receiving "close tab" commands from other devices.

Differential Revision: https://phabricator.services.mozilla.com/D208051
2024-05-05 22:07:11 +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
Tarik Eshaq
9874577847 Bug 1878910: Fixes duplicate FxA sessions. r=android-reviewers,jonalmeida
We used to get a session token for Fenix using a special oauth scope,
however that scope leads to there being two session tokens assosiated
with Fenix, one assosiated with the web content and another with the
scope. This patch makes it so that there is only one session token
shared between the content and browser.

Differential Revision: https://phabricator.services.mozilla.com/D205381
2024-04-23 00:58:32 +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
sarah541
f4e56e70cb Bug 1883419 - Fix order of translation, reader mode and review quality check icons on toolbar r=android-reviewers,mavduevskiy
Differential Revision: https://phabricator.services.mozilla.com/D205105
2024-04-01 14:42:18 +00:00
Roger Yang
07de485666 Bug 1883741 - Add display toolbar padding when navigation bar is enabled. r=android-reviewers,avirvara,gl
Differential Revision: https://phabricator.services.mozilla.com/D205623
2024-04-01 14:09:55 +00:00
Sandor Molnar
0a56ead33e Backed out changeset 72a77da6a4d9 (bug 1883741) for causing android toolbar failures/bustages. CLOSED TREE 2024-03-27 02:11:55 +02:00
Roger Yang
98bc573db7 Bug 1883741 - Add display toolbar padding when navigation bar is enabled. r=android-reviewers,avirvara,gl
Differential Revision: https://phabricator.services.mozilla.com/D205623
2024-03-26 21:02:11 +00:00
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