Commit Graph

287 Commits

Author SHA1 Message Date
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
mcarare
07f8171b45 Bug 1831352 - Replace HitResult mocks with HitResult.UNKNOWN implementation.
Mockito cannot mock sealed classes.
2023-06-12 19:40:42 +00:00
mcarare
cf44574472 Bug 1831352 - Replace PromptRequest mock with PromptRequest.SingleChoice mocks.
Mockito cannot mock sealed classes.
2023-06-12 19:40:42 +00:00
William Durand
58a632b23d Bug 1825126 - Implement onInstallPermissionRequest in WebExtensionSupport.
Co-authored-by: William Durand <will+git@drnd.me>
Co-authored-by: arturo mejia <arturomejiamarmol@gmail.com>
2023-06-07 00:41:36 +00:00
Roger Yang
b61dc8f60d Bug 1830780 - Add support for adding distribution based default search engines list 2023-05-08 16:57:14 +00:00
Arturo Mejia
a7997d1829 Bug 1829371 - Expose an API to allow opening in third party app PDF files 2023-05-04 19:22:55 +00:00
Jeff Boek
735ff56ae1 Bug 1820211 - Adds tabKilled event to track when a tab was killed with form data. (https://github.com/mozilla-mobile/firefox-android/pull/1343)
* Bug 1820211 - Adds `tabKilled` event to track when a tab was killed with form data.

- Also includes if the tab was the active tab and whether the app was in the foreground.

* Bug 1820211 - Adds tests for TelemetryMiddleware and StoreLifecycleObserver

* Bug 1820211 - Renames CheckFormDataAction to UpdateHasFormData
- Removes @property hasFormData comment from sessionState
- Moves checking formdata from TabContentMiddleware to SessionPrioritizationMiddleware

---------

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-04-05 22:03:25 +00:00
mcarare
278fa80cc2 Bug 1824717 - Remove unnecessary AndroidJUnit4 runner. 2023-04-05 12:44:13 +00:00
owlishDeveloper
83b0e8dc6c Bug 1806741 - Expose hasRuleForBrowsingContext API 2023-03-08 02:46:16 +00:00
Ryan VanderMeulen
0e5e70291c Bug 1820233 - Remove unneeded kotlin_stdlib inclusions and re-enable Werror in detekt build.gradle 2023-03-07 00:12:18 +00:00
t-p-white
194117d082 Bug 1809305 - Allow user to copy an image to the clipboard (https://github.com/mozilla-mobile/firefox-android/pull/948)
* Bug 1809305 - Allow user to copy an image to the clipboard

* Bug 1809305 - Update import & remove unnecessary gradle androidTestImplementation dependency

* Bug 1809305 - PR changes

* Bug 1819746 - Add explicit dependency to support-ktx

* Add buildconfig changes needed after adding support-ktx to componse-engine

---------

Co-authored-by: t-p-white <t-p-white>
Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-03-06 12:16:22 +00:00