707 Commits

Author SHA1 Message Date
Valentin Gosu
482ff80cc3 Bug 1966583 - Add network.security.ports.banned to Android nimbus manifest r=necko-reviewers,geckoview-reviewers,geckoview-api-reviewers,ohall,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D249752
2025-05-23 22:58:03 +00:00
Valentin Gosu
cd0afc7f4a Bug 1963558 - Add GV API to enable DoH provider autoselect on Android r=geckoview-reviewers,android-reviewers,nalexander,geckoview-api-reviewers,ohall
This change adds a GV API to enable DoH provider autoselection when the browser
is in Default Protection mode for DoH.

The autoselect mechanism works by enabling DoHController when the API is enabled.
The DoHController will determine the user's georegion. If the remote-settings
collection doh-config indicates that rollout is enabled for that region,
DoHController will set the doh-rollout.mode and doh-rollout.uri prefs
which override the network.trr.mode and network.trr.uri prefs when they
haven't been previously changed by the user.

The autoselect mechanism will be enabled via nimbus experiment/rollout after
the DoH UI in Fenix is enabled.

Differential Revision: https://phabricator.services.mozilla.com/D247248
2025-05-22 18:00:58 +00:00
Dana Keeler
59a7b8c7ca Bug 1966033 - pass the list of acceptable issuers through to the android API for client auth certs r=jschanck,geckoview-reviewers,geckoview-api-reviewers,ohall,owlish
Differential Revision: https://phabricator.services.mozilla.com/D249184
2025-05-22 03:08:23 +00:00
Makoto Kato
6f380c21e1 Bug 1934115 - Don't dispose GeckoResult for content permission request. r=android-reviewers,owlish
When duplicated permission request is received, the `GeckoResult` for the
new request is disposed. It means that it is handled as `GeckoResult.DENY`.

Even if new permission request for geo location is same, we should merge
both with current prompt then handle all `GeckoResult` correctly.

Differential Revision: https://phabricator.services.mozilla.com/D242542
2025-05-21 09:00:08 +00:00
John Schanck
2e3870246d Bug 1958676 - avoid clobbering user-defined values of post-quantum key exchange prefs on android. r=keeler,geckoview-reviewers,android-reviewers,ohall
Previously the security.tls.enable_kyber and network.http.http3.enable_kyber
prefs would be updated at startup to the default value of
postQuantumKeyExchangeEnabled (defined in fenix/app/nimbus.fml.yaml). This
patch makes postQuantumKeyExchangeEnabled a tri-state with a default value that
indicates that the prefs should not be modified. The other two states can still
be used to control the prefs as part of a Nimbus experiment.

Differential Revision: https://phabricator.services.mozilla.com/D247375
2025-05-14 21:21:48 +00:00
Roger Yang
5957e9d4df Bug 1929028 - Use AppLinksFeature to prompt the user. r=android-reviewers,tthibaud
Differential Revision: https://phabricator.services.mozilla.com/D247410
2025-05-13 16:46:04 +00:00
mcarare
1bb42cdd27 Bug 1964352 - Enable standard:no-single-line-block-comment rule. r=android-reviewers,nalexander
Replace single line block comments with EOL comments

Differential Revision: https://phabricator.services.mozilla.com/D248513
2025-05-09 13:56:39 +00:00
mcarare
38b4f898e0 Bug 1964352 - Enable standard:function-literal rule and fix errors. r=android-reviewers,nalexander
Kotlin style guide: No newline expected before parameter.

Differential Revision: https://phabricator.services.mozilla.com/D248509
2025-05-09 13:56:28 +00:00
mcarare
7bef90d659 Bug 1964352 - Enable standard:try-catch-finally-spacing ktlint rule and fix errors. r=android-reviewers,nalexander
Kotlin style guide: Consistent spacing in try { .. } catch { .. } finally { .. }.

Differential Revision: https://phabricator.services.mozilla.com/D248506
2025-05-09 13:56:17 +00:00
mcarare
ce734efdf2 Bug 1851774 - Update ktlint to 1.5.0 and disable some new rules. r=android-reviewers,jonalmeida
This also fixes one violation of standard-wrapping rule that needs to be enabled for existing trailing commas rules.

Differential Revision: https://phabricator.services.mozilla.com/D247734
2025-05-06 08:23:07 +00:00
Emma Zuehlcke
f9e4ef9ce8 Bug 1956620 - Write ETP category selection to pref in Fenix. r=geckoview-reviewers,android-reviewers,ohall,tthibaud,calu
When the ETP category selection changes via preferences in Fenix the pref browser.contentblocking.category
is updated to reflect that setting. This enables Gecko to detect the currently selected
ETP category in Fenix by reading the pref. Gecko needs to ETP category to apply ETP allow-list filters,
see Bug 1955639.

Differential Revision: https://phabricator.services.mozilla.com/D245943
2025-05-05 04:14:13 +00:00
Fatih Kilic
8c7b670dce Bug 1957610: Add useOhttp property to concept-fetch Request class. r=jonalmeida,android-reviewers
Setting you (jonalmeida) as the reviewer because you have the most context about the patch splitting, but feel free to change reviewers if you wish.

Differential Revision: https://phabricator.services.mozilla.com/D242856
2025-04-18 01:37:50 +00:00
Cathy Lu
9b43408e13 Bug 1952933 - Allow GeckoEngineSession to send more webcompat info r=geckoview-reviewers,android-reviewers,owlish,tthibaud
Differential Revision: https://phabricator.services.mozilla.com/D244833
2025-04-14 19:21:58 +00:00
Jonathan Almeida
80aeec1aa7 Bug 1872229 - Fix minor lint check failures in android-components r=android-reviewers,mcarare,webcompat-reviewers,twisniewski
We have moved more lint checks upstream to AC and these failures are
trivial to solve, rather than try to suppress.

Differential Revision: https://phabricator.services.mozilla.com/D236392
2025-04-11 04:37:30 +00:00
Cathy Lu
578ee1379e Bug 1958322 - onPictureInPictureModeChanged notifies GeckoSession of pip changes r=geckoview-reviewers,android-reviewers,ohall,007,owlish
Differential Revision: https://phabricator.services.mozilla.com/D244834
2025-04-11 03:39:51 +00:00
Cosmin Sabou
4f57f12727 Backed out changeset 1847ff330369 (bug 1958322) for causing Android failures on PictureInPictureFeatureTest. CLOSED TREE 2025-04-11 04:46:03 +03:00
Cathy Lu
8887422c7b Bug 1958322 - onPictureInPictureModeChanged notifies GeckoSession of pip changes r=geckoview-reviewers,android-reviewers,ohall,007,owlish
Differential Revision: https://phabricator.services.mozilla.com/D244834
2025-04-10 21:45:20 +00:00
smolnar
aaed8aeb2c Backed out 2 changesets (bug 1872229) for causing toolchain failures CLOSED TREE
Backed out changeset 2fd0c027ec2c (bug 1872229)
Backed out changeset 7efbd8e4381d (bug 1872229)
2025-04-10 03:38:28 +03:00
Jonathan Almeida
9956a54ab3 Bug 1872229 - Fix minor lint check failures in android-components r=android-reviewers,mcarare,webcompat-reviewers,twisniewski
We have moved more lint checks upstream to AC and these failures are
trivial to solve, rather than try to suppress.

Differential Revision: https://phabricator.services.mozilla.com/D236392
2025-04-09 22:32:23 +00:00
Titouan Thibaud
b3732a8a56 Bug 1945705 - Fix malformed download filename extracted from contentDisposition r=android-reviewers,rsainani
Differential Revision: https://phabricator.services.mozilla.com/D241072
2025-03-27 11:07:08 +00:00
Cosmin Sabou
fae9e9d8b6 Backed out changeset 9f2903340566 (bug 1945705) for causing lint failures on GeckoEngineSession.kt. CLOSED TREE 2025-03-26 23:18:19 +02:00
Titouan Thibaud
6d0da711d7 Bug 1945705 - Fix malformed download filename extracted from contentDisposition r=android-reviewers,rsainani
Differential Revision: https://phabricator.services.mozilla.com/D241072
2025-03-26 16:45:33 +00:00
Makoto Kato
fb49b2fe5d Bug 1912095 - Part 2. Set text directive flag when loading Url from context menu. r=android-reviewers,boek
This is Fenix version of bug 1911339.

Differential Revision: https://phabricator.services.mozilla.com/D228760
2025-03-26 16:07:26 +00:00
adhingra
31ae3ed36c Bug 1954548 - Clean up plugins/dependencies using version catalog r=android-reviewers,RyanVM,jonalmeida
Simple changes in this one, just to unblock some other patches, will clean up in more detail in followup patches

Differential Revision: https://phabricator.services.mozilla.com/D239802
2025-03-26 14:01:35 +00:00
Ryan VanderMeulen
d4312b4ad4 Bug 1955985 - Remove space-assignment usage in Gradle files. r=geckoview-reviewers,android-reviewers,webcompat-reviewers,twisniewski,adhingra,ohall
Differential Revision: https://phabricator.services.mozilla.com/D242727
2025-03-24 15:55:48 +00:00
Ryan VanderMeulen
131dc7b0c4 Bug 1955458 - Replace Uri.parse() with String.toUri(). r=android-reviewers,mcarare
Differential Revision: https://phabricator.services.mozilla.com/D242439
2025-03-21 16:03:06 +00:00
Sean
463f969417 Bug 1953987 - [DoH on Android] Fix DoH Provider URIs and preload DoH settings into the engine from the application layer r=valentin,sfamisa,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D241669
2025-03-17 17:48:09 +00:00
Ryan VanderMeulen
49e0856e97 Bug 1953767 - Switch to Packaging DSL API and remove unnecessary rules. r=android-reviewers,adhingra
Differential Revision: https://phabricator.services.mozilla.com/D241379
2025-03-13 12:58:21 +00:00
Dana Keeler
3cebee186e Bug 1813930 - implement support for client auth certificates on android r=jschanck,geckoview-reviewers,android-reviewers,petru,owlish
Special thanks to Vladimir Vetrov <pdastore1@gmail.com>, who provided a patch
that would eventually inform parts of this patch (in particular, how to use
some of the certificate-related Android APIs).

Differential Revision: https://phabricator.services.mozilla.com/D238821
2025-03-12 16:16:17 +00:00
Luca Greco
7d7c0bce7b Bug 1935680 - Show full list of domains in Fenix optional permissions request dialog. r=android-reviewers,twhite,willdurand
Differential Revision: https://phabricator.services.mozilla.com/D238087
2025-03-04 13:25:48 +00:00
Aaditya Dhingra
5f9d749a96 Bug 1949260 - Part 2 - Replace DependenciesPlugin with gradle version catalog. r=geckoview-reviewers,android-reviewers,webcompat-reviewers,nalexander,twisniewski,owlish,jonalmeida,tthibaud
Differential Revision: https://phabricator.services.mozilla.com/D238804
2025-03-03 17:12:25 +00:00
Titouan Thibaud
c69519f932 Bug 1917174 - Reload the original URL when enabling DesktopMode r=android-reviewers,calu
Differential Revision: https://phabricator.services.mozilla.com/D239803
2025-03-03 09:53:15 +00:00
Sean
3edde65ad4 Bug 1934262 - [DoH on Android] Part 3: Define states, actions, reducer, and middleware for DohSettings r=android-reviewers,sfamisa
Differential Revision: https://phabricator.services.mozilla.com/D231738
2025-02-24 20:18:14 +00:00
mcarare
ebd3a4726a Bug 1948029 - Use proper IMPORTANT_FOR_ACCESSIBILITY_YES constant. r=android-reviewers,giorga
Differential Revision: https://phabricator.services.mozilla.com/D238057
2025-02-17 12:45:59 +00:00
John Schanck
bff9465f2e Bug 1922357 - disallow the fido: URI scheme. r=boek,geckoview-reviewers,calu,android-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D237313
2025-02-14 23:00:45 +00:00
John Schanck
67af9389b6 Bug 1943686 - add a nimbus feature for post-quantum key exchange on android. r=geckoview-reviewers,android-reviewers,owlish,ohall
Differential Revision: https://phabricator.services.mozilla.com/D235514
2025-02-14 19:38:32 +00:00
Tim Huang
7125319559 Bug 1929224 - Don't set fingerprinting protection prefs during initializing the engine in Fenix. r=geckoview-reviewers,android-reviewers,ohall,owlish
During the initialization of Fenix, we will reset the fingerprinting
protection prefs, which is undesirable.

This patch changes this. We no longer set fingerprinting protection
prefs and will use the Gecko engine's settings directly unless the
setting is override by the Nimbus feature.

Differential Revision: https://phabricator.services.mozilla.com/D234832
2025-02-13 19:43:17 +00:00
Alexandru Marc
3ed0a6125b Backed out changeset 75209de560cc (bug 1929224) for causing fingerprint related junit failures CLOSED TREE 2025-02-12 16:25:38 +02:00
Tim Huang
ca142aa01f Bug 1929224 - Don't set fingerprinting protection prefs during initializing the engine in Fenix. r=geckoview-reviewers,android-reviewers,ohall,owlish
During the initialization of Fenix, we will reset the fingerprinting
protection prefs, which is undesirable.

This patch changes this. We no longer set fingerprinting protection
prefs and will use the Gecko engine's settings directly unless the
setting is override by the Nimbus feature.

Differential Revision: https://phabricator.services.mozilla.com/D234832
2025-02-12 12:51:53 +00:00
Malte Jürgens
f0baae640d Bug 1901120 - Set schemelessInput correctly on Android r=simonf,android-reviewers,geckoview-reviewers,m_kato,matt-tighe
This passes through the information about wether the input in the address bar
got fixed up with a http:// scheme in the beginning. This information is used to
exempt a site from HTTPS-First upgrading if the user specified an explicit
http:// scheme.

Differential Revision: https://phabricator.services.mozilla.com/D234324
2025-02-11 13:45:15 +00:00
Alexandru Marc
69bac46f86 Backed out changeset 1f419782aefe (bug 1901120) for causing android build bustages 2025-02-10 16:54:45 +02:00
Malte Jürgens
a59a77334a Bug 1901120 - Set schemelessInput correctly on Android r=simonf,android-reviewers,geckoview-reviewers,m_kato,matt-tighe
This passes through the information about wether the input in the address bar
got fixed up with a http:// scheme in the beginning. This information is used to
exempt a site from HTTPS-First upgrading if the user specified an explicit
http:// scheme.

Differential Revision: https://phabricator.services.mozilla.com/D234324
2025-02-10 11:37:06 +00:00
Zac McKenney
c8716ccd17 Bug 1911999 - Show all domains in the addons permissions prompt r=android-reviewers,rpl,twhite
Differential Revision: https://phabricator.services.mozilla.com/D223018
2025-02-07 16:58:05 +00:00
Goloman Adrian
a5291aa81e Backed out changeset b6cd2921f411 (bug 1901120) for causing android build bustages. CLOSED TREE 2025-02-06 18:41:24 +02:00
Malte Jürgens
9ba8cdd24f Bug 1901120 - Set schemelessInput correctly on Android r=simonf,android-reviewers,geckoview-reviewers,m_kato,matt-tighe
This passes through the information about wether the input in the address bar
got fixed up with a http:// scheme in the beginning. This information is used to
exempt a site from HTTPS-First upgrading if the user specified an explicit
http:// scheme.

Differential Revision: https://phabricator.services.mozilla.com/D234324
2025-02-06 13:15:44 +00:00
Cathy Lu
03c450d027 Bug 1941470 - Remove Fenix shopping, deprecate geckoview calls r=geckoview-reviewers,android-reviewers,007,ohall
Differential Revision: https://phabricator.services.mozilla.com/D236246
2025-02-05 15:29:05 +00:00
Titouan Thibaud
1039fbc599 Bug 1807154 - Persist desktop mode for tabs and restore them when Fenix is reopened r=android-reviewers,007
Differential Revision: https://phabricator.services.mozilla.com/D232876
2025-01-13 13:32:01 +00:00
Dana Keeler
ecfa655e10 Bug 1936904 - add nimbus feature to fenix to control certificate transparency mode r=geckoview-reviewers,android-reviewers,ohall,calu
Differential Revision: https://phabricator.services.mozilla.com/D231990
2025-01-07 16:39:03 +00:00
Ryan VanderMeulen
6a503d5f40 Bug 1940185 - Remove redundant 'else' conditions from 'when' blocks that exhaustively check all cases. r=android-reviewers,petru,ohall
Fixes warnings raised by Kotlin 2.1.20-Beta1.
warning: 'when' is exhaustive so 'else' is redundant here.

Differential Revision: https://phabricator.services.mozilla.com/D233320
2025-01-07 14:33:25 +00:00
Titouan Thibaud
8654feff4d Bug 1930355 - Avoid opening website from search if it was already opened in app r=android-reviewers,Roger
Differential Revision: https://phabricator.services.mozilla.com/D231280
2024-12-06 17:43:44 +00:00