Commit Graph

573 Commits

Author SHA1 Message Date
pollymce
1116d3fec7 Bug 1645114 - for screenshot capture, include exception in failure result rather than throwing. r=geckoview-reviewers,tthibaud,twhite
Also remove exception handling at call site in Android components - no need to catch exceptions for method that no longer throws.

Differential Revision: https://phabricator.services.mozilla.com/D206488
2024-04-19 13:28:06 +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
Cristian Tuns
f337307e3c Backed out 1 changesets (bug 1499453) for causing wd failures in get_title/get.py CLOSED TREE
Backed out changeset c3cd9a2f257b (bug 1499453)
2024-04-09 13:12:31 -04:00
gela
678145d0f8 Bug 1499453 - Use GeckoResult.ALLOW/DENY shortcuts in GeckoView code r=android-reviewers,kaya
Differential Revision: https://phabricator.services.mozilla.com/D206818
2024-04-09 16:30:49 +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
Arturo Mejia
c68a61fbb3 Bug 1879547 - Add promptPermissions in GeckoView. r=willdurand
Differential Revision: https://phabricator.services.mozilla.com/D205757
2024-04-04 21:31:59 +00:00
ohall-m
fb7d530978 Bug 1885336 - Part 2: Couldn't Load Languages did not show when Expected r=android-reviewers,giorga,gl
This patch fixes showing the Couldn't Load Languages translation error.
Part 1 of this series ensures the translations engine re-queries the language.

This patch:
* Fixes a `var` v. `val` recommendation
* Reorganized error handling
    * Session errors have priority over browser errors
    * Ensures null errors are also sent to clear state
* Proactively requests languages again when the dialog reopens and ensures error state

Differential Revision: https://phabricator.services.mozilla.com/D205473
2024-04-01 13:25:22 +00:00
Perry McManis
0c8dd62ebe Bug 1884527 - remove lingering geckoadapter bits r=chutten,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D205336
2024-03-22 19:36:01 +00:00
Geoff Brown
e817ff6103 Bug 1879660 - Relax geckoview version pinning on try builds. r=bhearsum,releng-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D202599
2024-02-22 16:31:21 -07:00
Julien Cristau
75d3b598ec Bug 1875761 - disable release channel test in browser-engine-gecko component. r=geckoview-reviewers,gl
The update channel is "default" for non-shippable geckoview builds, which breaks this test.

Differential Revision: https://phabricator.services.mozilla.com/D201538
2024-01-24 10:47:35 +01:00
Julien Cristau
fd5a7a3c7a Bug 1825116 - remove executable bit from yaml file. r=geckoview-reviewers,gl
Differential Revision: https://phabricator.services.mozilla.com/D201534
2024-01-22 17:28:44 +01:00
Julien Cristau
165016600f Bug 1824856 - use MOZ_BUILD_DATE when available instead of buildid.h. r=glandium,amejiamarmol,geckoview-reviewers,firefox-build-system-reviewers
buildid.h is generated by mach build, but we only run configure in
automation for firefox-android tasks.

Differential Revision: https://phabricator.services.mozilla.com/D201510
2024-01-12 14:17:04 +01:00
Julien Cristau
7d25460dc2 Bug 1822393 - consistently use getGeckoViewDependency() in browser-engine-gecko. r=owlish,geckoview-reviewers
Use the same path for CI and local builds to declare the geckoview dependency.

Differential Revision: https://phabricator.services.mozilla.com/D201505
2024-01-11 15:57:50 +01:00
Gabriel Luong
6853195d49 Bug 1876335 - use GRADLE_MAVEN_REPOSITORIES in more places. r=owlish,geckoview-reviewers,nalexander,tthibaud,android-reviewers
To ensure that we can build offline, we need to prevent gradle from
going through remote maven repos directly.

That means also overriding the default plugin repository
(plugins.gradle.org) in the `pluginManagement` section.

Differential Revision: https://phabricator.services.mozilla.com/D201497
2024-01-18 15:38:47 +01:00
Gabriel Luong
bfdb3b8746 Bug 1822393 - Consume GeckoView directly in Android Components for CI builds. r=owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201485
2023-12-08 02:35:56 -05:00
Gabriel Luong
7bd816b3f6 Bug 1822393 - Support consuming GeckoView artifact builds from maven local. r=owlish,geckoview-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201484
2023-12-07 18:08:22 -05:00
Gabriel Luong
09687df494 Bug 1822393 - Support Android Components consuming GeckoView directly. r=nalexander,geckoview-reviewers,tthibaud,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D201483
2023-12-07 16:19:43 -05:00
Arturo Mejia
38a49098e7 Bug 1882404 - Expose granted permissions on AC. 2024-03-14 19:56:09 +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
Alexandru2909
b133b2a157 Bug 1804636 - Allow search terms to be refined in content 2024-02-23 17:02:28 +00:00
William Durand
9bc2c90781 Bug 1875229 - Add support for extensions not allowed in private windows 2024-02-14 19:11:16 +00:00
Cathy Lu
5d6ee304f1 Bug 1875106 - Add shopping api to send placement attribution event 2024-01-26 17:08:42 +00:00
Arturo Mejia
7f72c0bece Bug 1860472 - Clean temporary file Uploads. 2024-01-24 22:40:21 +00:00
jackyzy823
b8b44b9ac8 Bug 1850006 - make conservative to be a parameter of Request 2024-01-23 21:08:32 +00:00
Titouan Thibaud
0ebd0e2416 Bug 1807073 - Prevent pull-to-refresh after scrolling down 2024-01-22 22:30:46 +00:00
Hiroyuki Ikezoe
a98609df26 Bug 1807073 - Tests for bug 1807073. 2024-01-22 22:30:46 +00:00
Hiroyuki Ikezoe
d5db78dbec Bug 1807073 - Defer allowing touch event interception in NestedGeckoView.
SwipeRefreshLayout starts triggering a refresh whenever the user's scroll
gesture is upward if the initial scroll position at the top even after the user
scrolled down once. It is controlled by the code in
SwipeRefreshLayout::startDragging [1]. To disable this behavior
`requestDisallowInterceptTouchEvent(false)` needs to be called conditionally.

[1] 4ec844ac17/swiperefreshlayout/swiperefreshlayout/src/main/java/androidx/swiperefreshlayout/widget/SwipeRefreshLayout.java (L1324-L1329)
2024-01-22 22:30:46 +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
alexandra.virvara
221e518737 Bug 1862190: Expose and integrate the suggested strong password in the authentication flow 2024-01-08 16:38:28 +00:00
Olivia Hall
2ffeb0a8e5 Bug 1872703 - Named Translation Errors
This bug takes the named AC `TranslationError` and ensures that all
translation calls to the Gecko engine translate to this type of error.
2024-01-04 23:27:39 +00:00
Titouan Thibaud
29e3a86996 Bug 1872170 - Fix Pull to Refresh triggered after an upward overscroll on a page
Co-authored-by: Jonathan Almeida <git@jonalmeida.com>
2024-01-04 16:08:49 +00:00
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