Commit Graph

297 Commits

Author SHA1 Message Date
Matthew Tighe
f3d0c9f39c Bug 1861459 - Update AppState.mode based on selected tab changes 2024-02-05 23:45:20 +00:00
ohall-m
c3e869fcaf Bug 1877588 - TranslationsMiddleware Dispatcher Scope Issue
This bug is to fix the `Must have a Handler` issue in the
TranslationsMiddleware when attempting to call using `Dispatcher.IO`.
2024-02-05 20:10:03 +00:00
ohall-m
14828a4bae Bug 1878091 - Translations Engine State and Translation Status Sync
This bug refines the reducer on a translations engine state change to
ensure the Fenix translations state and engine translations state are
in sync.
2024-02-05 17:17:11 +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
jackyzy823
cf07aead87 Bug 1812359 - 'suspend' should also be applied to CustomTabs 2024-01-31 12:13: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
t-p-white
dfd07a262b Bug 1796209 - If config.toolbarColor is null use the toolbar 'menu' colour as a fallback 2024-01-30 12:33:45 +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
b5fb43be66 Bug 1876567 - Fix Middleware Issue with Processing Translations States
This patch corrects an issue where `isTranslateProcessing` and
`isRestoreProcessing` states were not updating due to not sending along
pre-process actions in `EngineDelegateMiddleware`.
2024-01-25 23:43:14 +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
Makoto Kato
3cab535d70 Bug 1875225 - Part 1. Support <InputEncoding> element in search plugin. 2024-01-23 00:16:29 +00:00
t-p-white
01f1578630 Bug 1874861 - Removed redundant LongParameterList suppression's 2024-01-18 18:37:49 +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
jackyzy823
572736f974 Bug 1812797 - Add referrerUrl to Request 2023-12-11 21:27:39 +00:00
Cathy Lu
9d9a2992d7 Bug 1858947 - Expose Shopping API reportBackInStock to AC 2023-12-06 18:53:24 +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
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
Olivia Hall
e842bb5c42 Bug 1844523 - Translate and Restore to Original Engine Support
This patch adds engine support for translate and restoring the page after
a translation. `requestTranslate` and `requestTranslationRestore` are
the Gecko engine session functions.

This corresponding actions for these functions are `TranslateAction`,
and `TranslateRestoreAction`. The success and failure correspond to the
actions `TranslateSuccessAction` and `TranslateExceptionAction`.

Sample usage is provided on reference browser. The sample is currently
hardcoded to support Spanish to English page translations until the next
API is introduced.
2023-11-03 21:10:32 +00:00
Cathy Lu
005e9f15fc Bug 1845835 - Expose shopping ad attribution events in AC 2023-11-02 19:04:16 +00:00
mcarare
93e973e94b Bug 1860725 - Revert "Bug 1812797 - Add referrerUrl to Request"
This reverts commit 9947b70d23127fedee50cb60d078e0a241b63ef4.
2023-10-24 15:40:34 +00:00
Lina Butler
c4350f91fe Bug 1858542 - Introduce AwesomeBarState and Suggestion.metadata.
This commit adds:

* An `AwesomeBarState` class to hold the currently visible suggestions
  and last clicked suggestion.
* `VisibilityStateUpdated` and `SuggestionClicked` `AwesomeBarAction`s
  to update the state, and an `EngagementFinished` action to reset the
  state. Consumers will dispatch these actions on the `BrowserStore`
  in response to user interactions with the awesomebar and toolbar.
* A `metadata` map to `AwesomeBar.Suggestion`, allowing providers to
  attach opaque data to each suggestion.
2023-10-24 07:43:07 +00:00
jackyzy823
d63fd3cf5a Bug 1812797 - Add referrerUrl to Request 2023-10-23 05:31:29 +00:00
rahulsainani
3d594a382d Bug 1857287 - Move isProductUrl to ContentState 2023-10-10 16:22:31 +00:00
William Durand
1883946a8b Bug 1847088 - Show a notification in the Fenix add-on manager when the extensions process spawning is disabled 2023-10-09 22:02:14 +00:00
William Durand
f1f1138cc6 Bug 1810047 - Fixup WebExtensionPromptFeature 2023-10-05 21:08:45 +00:00
William Durand
126aebde87 Bug 1810047 - Implement UI for webextensions optional permissions. 2023-10-04 18:42:27 +00:00
rahulsainani
11a9d8f6d2 Bug 1847063 - Disable review checker in private mode 2023-09-27 10:40:07 +00:00
Gabriel Luong
d63efbb3d5 Bug 1853065 2023-09-20 17:33:34 +00:00
Cathy Lu
7d655590f3 Bug 1853309 - Expose Creating Shopping Analysis and Status API 2023-09-20 15:17:46 +00:00
Arturo Mejia
ca33172d7f Bug 1848100 - Implement add-ons installation failed listener 2023-09-12 16:18:54 +00:00
mcarare
063c553913 Bug 1849833 - Replace deprecated compileSdkVersion.
This is replaced by defaultConfig compileSdk.
2023-09-11 06:36:20 +00:00
mcarare
235c47209f Bug 1849833 - Replace deprecated kotlinOptions method. 2023-09-11 06:36:20 +00:00
mcarare
5a7b24763d Bug 1849833 - Replace qualified name with import. 2023-09-11 06:36:20 +00:00
mike a
7521c23079 Bug 1845613 – restore hidden engines for unified search settings 2023-09-08 01:34:02 +00:00
Matthew Tighe
45ca0bcb7d Bug 1721904 - update thumbnail caching on app open 2023-09-06 22:38:21 +00:00
Zac McKenney
8deb0f2a7a Bug 1846979 - Add extensions process spawning disabled dialog 2023-09-06 12:32:28 +00:00
owlishDeveloper
2a08983c96 Bug 1840693 - Expose Request Product Recommendations API 2023-08-10 02:39:42 +00:00
owlishDeveloper
1f27d0b055 Bug 1840692 - Expose Request Analysis Fakespot API 2023-08-09 21:29:34 +00:00
rahulsainani
51d3e44804 Bug 1840580 - Use BrowserState to detect product page for shopping experience 2023-08-09 10:20:37 +00:00
owlishDeveloper
803e68a86a Bug 1842638 - Expose GeckoView isProductUrl API to check if the current page is a product page [WIP][DO NOT MERGE] 2023-08-04 17:08:27 +00:00
t-p-white
031b375297 Bug 1842604 - Telemetry to measure Search results response time 2023-07-26 20:37:43 +00:00
MatthewTighe
c87183c8b5 Bug 1843168 - Expose Mockito through test support component 2023-07-24 18:02:09 +00:00
t-p-white
71d90ba619 Bug 1843586 - Update ContentState description to match current state 2023-07-17 14:27:40 +00:00
Arturo Mejia
674e01d7f1 Bug 1825124 - Change the way we show the post-install popup once an extension has been installed. 2023-06-21 16:46:00 +00:00
jackyzy823
3170224b8d Bug 1820404 - Persist ReaderView position state 2023-06-16 17:32:27 +00:00
jackyzy823
4540592440 Bug 1820404 - Keep ReaderView position state between active and inactive 2023-06-16 17:32:27 +00:00
Olivia Hall
0967f5078a Bug 1829213 - Update Save To PDF Telemetry and checkForPdfViewer Option
* Adds `checkForPdfViewer` to determine if page is a PDF Viewer page or not
* Adjusts save_to_pdf_failure to have extras of pdf, non-pdf, or unknown
* Adjusts save_to_pdf_failure to have extras of failure reason
* Adjusts save_to_pdf_tapped to have extras of pdf, non-pdf, or unknown
* Adds save_to_pdf_completed with extras of pdf, non-pdf, or unknown
2023-06-15 21:02:41 +00:00
Olivia Hall
4875874900 Bug 1836778 - Add Support for Printing in GeckoEngineSession
This bug adds an option to print the current page's content using the
Android Print Spooler via GeckoView with status on the Engine in AC.
2023-06-15 15:13:35 +00:00
mike a
b37b854ec6 Bug 1826473 – add new search engine settings screens 2023-06-12 23:18:18 +00:00