Commit graph

279 commits

Author SHA1 Message Date
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
Ryan VanderMeulen
08532594e4 Bug 1820176 - Update AC to ktlint 0.48.2 2023-03-03 20:14:13 +00:00
mcarare
45f919de20 Bug 1802817 - Migrate packagingOptions DSL properties to resources sub-block.
exclude, pickFirst methods are deprecated.
2023-03-02 17:13:09 +00:00
mcarare
1f589a2e0b Bug 1802817 - Set namespace via DSL in gradle build files.
See https://developer.android.com/studio/build/configure-app-module#set-namespace
and https://issuetracker.google.com/issues/172361895
2023-03-02 17:13:09 +00:00
mcarare
922b5f6643 Bug 1802817 - Rename AC Dependencies to ComponentsDependencies.
This change is needed in order to avoid clashes with Dependencies class introduced
in Gradle from 7.6 version.
2023-03-02 17:13:09 +00:00
Cathy Lu
7a27debf84 Bug 1800146 - Set tab's GeckoSession priority based on form data 2023-01-18 21:49:22 +00:00
Arturo Mejia
8a5bd1b7b6 Bug 1797568 - Allow to observe the cookie banner events for a given session. 2023-01-04 03:23:30 +00:00
Alexandru2909
fb35eb4eb7 Bug 1799679 - Preserve search terms for search engine result pages 2023-01-03 07:56:37 +00:00
Rahul Sainani
160cbe4f8c Bug 1796319 - Add functionality in SelectOrAddUsecase to ignore the fragment identifier part of the url (https://github.com/mozilla-mobile/firefox-android/pull/343)
* Bug 1796319 - Add functionality to match urls ignoring the fragment/anchor

* Bug 1796319 - Update SelectOrAddTabUsecase to add the ignoreFragment param

* Bug 1796319 - Add docs

Co-authored-by: Christian Sadilek <christian.sadilek@gmail.com>
2022-12-19 15:42:33 +00:00