Commit Graph

540 Commits

Author SHA1 Message Date
jackyzy823
00bbfd3720 Bug 1858370 - use clearDataFromBaseDomain for clearData 2024-01-03 18:46:31 +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
jackyzy823
572736f974 Bug 1812797 - Add referrerUrl to Request 2023-12-11 21:27:39 +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
Jonathan Almeida
0ad2094f77 Bug 1847305 - Fix tests for NestedGeckoView
Fixed the current tests to pass.

The current tests are asserting implementation, so a new test was added
to test the behaviour by wrapping `NestedGeckoView` in a parent `View`
and counts the `onInterceptTouchEvent` calls it receives. When we are
in a gesture (starting with `ACTION_DOWN`) we deny the touch events to
the parent views until we receive a result from APZ.

Co-authored-by: Titouan Thibaud <tthibaud@mozilla.com>
2023-12-07 10:41:53 +00:00
Jonathan Almeida
fb0a590e1a Bug 1847305 - Enabled nested scrolling for GeckoEngineView
With the current design, we have a `NestedGeckoView` inside this
`GeckoEngineView`. In our supported embedders, we wrap this with the
AndroidX `SwipeRefreshLayout` to enable features like Pull-To-Refresh:

```
 SwipeRefreshLayout
└── GeckoEngineView
   └── NestedGeckoView
```

`SwipeRefreshLayout` only looks at the direct child to see if it has
nested scrolling enabled. As we embed `NestedGeckoView` inside
`GeckoEngineView`, we change the hierarchy so that `NestedGeckoView`
is no longer the direct child of `SwipeRefreshLayout`.

To fix this we enable nested scrolling on the GeckoEngineView to
emulate this information. This is required information for
`View.requestDisallowInterceptTouchEvent` to work correctly in
the `NestedGeckoView`.

Co-authored-by: Titouan Thibaud <tthibaud@mozilla.com>
2023-12-07 10:41:53 +00:00
Hiroyuki Ikezoe
6c7bb7a8d2 Bug 1847305 - Re-initialize inputResultDetail at the right time.
And invoke requestDisallowInterceptTouchEvent just before sending a new
ACTION_DOWN and invoke it againg just after receiving the result from
Gecko so that we can properly hold off triggering pull-to-refresh.

Re-initializing inputResultDetail on ACTION_UP or ACTION_CANCEL is
problematic since Gecko sends the result asynchronously thus it's
possible that Gecko sends the result after re-initialization on
ACTION_CANCEL.

Co-authored-by: Titouan Thibaud <tthibaud@mozilla.com>
2023-12-07 10:41:53 +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
mcarare
60d3978145 Bug 1821005 - Restore reverted Gradle 8 upgrade due to startup crashes"
This reverts commit 592e88b3547d2e96ae04d8b5bd69cbab2ac3e97e.
2023-12-05 03:44:20 +00:00
Calixte Denizet
6f7b475cbe Bug 1864956 - Make Fenix a PDF reader
It makes possible to open a pdf coming from an other app, like a file
browser, in Fenix.
2023-12-04 19:29:49 +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
Arturo Mejia
cc9532b0ee Bug 1866474 - Incorrect status is displayed after turning off the Cookie Banner Blocker feature from the panel 2023-11-29 16:30:36 +00:00
jackyzy823
824ed5c068 Bug 1856431 - Encode file path in File URI scheme 2023-11-28 15:40:21 +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
d904e6a84a Bug 1855976 - Initial Runtime Translations Support
This patch adds some of the core runtime translations functionality
from GeckoView:

* `isTranslationsEngineSupported` - If the toolkit translation engine
is supported or not.
* `checkPairDownloadSize` - A way to check translation pair download
sizes before completing a translation operation.
* `listModelDownloadStates` - List download states of the language
models.
* `manageLanguageModel` - A way to manage the download state of
language models.
* `listSupportedLanguages` - List of supported languages.
* `preferredLanguages` - A list of the user's preferred languages.
2023-11-21 19:19:03 +00:00
Harrison Oglesby
127fb7d013 Bug 1856470 - Add EMAIL filter to TrackingCategory for tracker protection 2023-11-20 17:36:20 +00:00
Cathy Lu
0d0dd154d7 Bug 1860618 - Shopping "not enough reviews" error card should depend on analysis not_enough_reviews field 2023-11-16 23:44:50 +00:00
Luca Greco
69d1b93ba6 Bug 1859585 - WebExtensionSupport should update installExtensions entries on AddonManagerDelegate.onReady calls. 2023-11-13 14:18:47 +00:00
Ryan VanderMeulen
c65ab071b9 Bug 1821005 - Revert Gradle 8 upgrade due to startup crashes
Revert "Bug 1863744 - Update Gradle to version 8.4"

This reverts commit 829795632954148709fbe945c78d55cc62053ac8.

Revert "Bug 1821005 - Apply additional keep rules for missing classes detected while running R8."

This reverts commit 8f3f246cc5ff571323f56d46963d8d176bec91e3.

Revert "Bug 1821005 - Set UI_INJECTION_HOST mode for lint in test."

This reverts commit 6962bf0b5df57781045f68417f76527bcdf521ab.

Revert "Bug 1821005 -  Include sourcesJar as an input of publishing."

This reverts commit 41b2a48da577787c3189eec8c8af71c35cfecbfb.

Revert "Bug 1821005 - Set compileOptions for android subprojects."

This reverts commit fb21df9d0a9cd585e216733dc1bf929636df20f1.

Revert "Bug 1821005 - Replace deprecated project.buildDir"

This reverts commit 6f880de46ec73f7e5240a0279108bbb6aeb0f63b.

Revert "Bug 1821005 - Exclude generated metrics docs from detekt."

This reverts commit f17d2430bf1daabeed2724312354018050f3f52a.

Revert "Bug 1821005 - Exclude build in extensions versioning from detekt."

This reverts commit 34144c5ad1d62e2d85492f8d32341bbcd032690b.

Revert "Bug 1821005 - Add uses-feature tag for camera permission."

This reverts commit 13c80944bd1756cdcaa98eef783b6a23ad12cabd.

Revert "Bug 1821005 - Set nonTransitiveRClass and nonFinalResIds build flags to false."

This reverts commit 219fbc19c54134ad264edc79642fa1799c6f54d6.

Revert "Bug 1821005 - Apply plugin: 'kotlin-android' for UI modules."

This reverts commit ddbd5e18eb9d2b33b4de4a6df48d97ec4ab42963.

Revert "Bug 1821005 - Enable generation of the BuildConfig class"

This reverts commit 65c2b8c63790fbd2352f3f94b99c80d81d18dae1.

Revert "Bug 1821005 - Add namespace to samples-glean-library module"

This reverts commit 0239233efb1cc4e896e4aa0337e3da911eeb2f1c.

Revert "Bug 1821005 - Replace deprecated toLowerCase with lowercase."

This reverts commit 69f2c66aad3aa638a1bab31b2a1e6c597d1f3992.

Revert "Bug 1821005 - Replace deprecated 'toInt' method with 'code' property."

This reverts commit 7adb38a6fbe20de3fdb6723a10e574d183e7fcff.

Revert "Bug 1821005 - Replace deprecated execResult."

This reverts commit bfd02dd16d7e5c9dbcf34858fbbe4176d698f8cd.

Revert "Bug 1849833 - Replace deprecated extractNativeLibs manifest attribute."

This reverts commit a05bc9618457ab2d71a5d3d88d8d3b0318497a54.

Revert "Bug 1821005 - Upgrade AGP to 8.0.2"

This reverts commit fc0fadd63553e2144ce074454d502ecf307eb988.

Revert "Bug 1821005 - Upgrade kotlin-dsl to 4.1.0."

This reverts commit 14e8903e922fa22e28450520be3b6152be6a3a8f.

Revert "Bug 1821005 - Upgrade Gradle to 8.3 version."

This reverts commit f14f447a4d43588d24e4ca3efde0668ddcf7cf08.
2023-11-08 13:35:38 -05:00
mcarare
04345cb27b Bug 1821005 - Enable generation of the BuildConfig class
For modules that use buildConfigField and generate metrics, because BuildConfig is not generated by default after Gradle 8.
2023-11-08 09:10:09 +00:00
Arturo Mejia
daaab52151 Bug 1862425 - Allow to control QPS prefs using nimbus. 2023-11-06 22:37:10 +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
Arturo Mejia
371aa1097e Bug 1861084 - Add cookie banner global-rules/ sub-frames to default settings and toContentBlockingSetting. 2023-10-30 19:52:29 +00:00
Arturo Mejia
0b538d2d1c Bug 1861084 - Expose cookie banner global-rules/ sub-frames in ac. 2023-10-27 15:41:18 +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
rahulsainani
6655ad32b7 Bug 1859593 - Use ProductAnalysis and ProductRecommendation as data classes 2023-10-23 08:58:37 +00:00
jackyzy823
d63fd3cf5a Bug 1812797 - Add referrerUrl to Request 2023-10-23 05:31:29 +00:00
William Durand
47ce20c22b Bug 1858925 - Add a link to AMO in the detail view 2023-10-17 19:48:10 +00:00
Cathy Lu
7bba86ce48 Bug 1857424 - Add shopping review analysis pageNotSupported field 2023-10-16 21:14:41 +00:00
William Durand
f17b2e2769 Bug 1858925 - Fix homepageUrl field on the Addon class 2023-10-16 16:42:00 +00:00
mcarare
0860fc8f9a Bug 1859017 - Use extension functions instead of deprecated constructors/methods. 2023-10-16 13:39:23 +00:00
Ryan VanderMeulen
6bb7cac35d Revert "Bug 1857434 - Update AC Shopping Recommendation fields to be NonNull"
This reverts commit 4173d783c7dd41b6671d73b46286ddcb946fbf2d. No longer needed.
2023-10-13 15:26:46 +00:00
Cathy Lu
a179b6a829 Bug 1857434 - Update AC Shopping Recommendation fields to be NonNull 2023-10-12 15:53:14 +00:00
Arturo Mejia
f4a627c5ac Bug 1850674 - Add extra add-on metadata. 2023-10-11 03:11:43 +00:00
William Durand
126aebde87 Bug 1810047 - Implement UI for webextensions optional permissions. 2023-10-04 18:42:27 +00:00
Cathy Lu
e5569b689f Bug 1846341 - AC automated testing for onProductUrl, requestAnalysis, requestRecommendations 2023-10-04 03:01:17 +00:00
Cathy Lu
dd354dc0bc Bug 1848658 - Make shopping analysis field adjustedRating nullable to allow GV to set the default to null 2023-10-02 17:41:57 +00:00
William Durand
d0ede5fa7d Bug 1855516 - Call disableExtensionProcessSpawning() when the user clicks the "continue without add-ons" button 2023-09-28 11:06:31 +00:00
Cathy Lu
decd235fa9 Bug 1854141 - Add automated AC tests for reanalyzeProduct and requestAnalysisStatus 2023-09-27 03:10:36 +00:00
Titouan Thibaud
0e78a8b8f9 Bug 1847784: Provide a Theme to FedCM Provider Dialogs 2023-09-25 14:08:49 +00:00
Titouan Thibaud
4650c2500f Bug 1842203: Implement of the final UX of FedCM Provider and Account dialogs in Compose 2023-09-25 14:08:49 +00:00
Cathy Lu
7d655590f3 Bug 1853309 - Expose Creating Shopping Analysis and Status API 2023-09-20 15:17:46 +00:00