5513 Commits

Author SHA1 Message Date
scottdowne
5e5f197384 Bug 1971795 - Newtab flipping thumbs up/down pref for US a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D253533

Differential Revision: https://phabricator.services.mozilla.com/D253598
2025-06-13 12:15:16 +00:00
Nina Pypchenko
f84b858a66 Bug 1968662, Bug 1968663 - Minor fixes for "Support Firefox" feature on 'about:settings#home' page a=dmeehan
Original Revision: https://phabricator.services.mozilla.com/D252432

Differential Revision: https://phabricator.services.mozilla.com/D252602
2025-06-05 16:49:40 +00:00
Mike Conley
1432145444 Bug 1968795 - Introduce NewTabContentPing module for event recording and ping submission randomization. a=dmeehan DONTBUILD
Original Revision: https://phabricator.services.mozilla.com/D252199

Differential Revision: https://phabricator.services.mozilla.com/D252684
2025-06-05 16:37:39 +00:00
kpatenio
917529707f Bug 1959497 - remove pocket suggestions from firefox desktop r=urlbar-reviewers,adw a=RyanVM
Original Revision: https://phabricator.services.mozilla.com/D251076

Differential Revision: https://phabricator.services.mozilla.com/D251661
2025-06-03 03:19:31 +00:00
Beth Rennie
f1905dc151 Bug 1956080 - Add a migration to copy existing enrollments to the NimbusEnrollments table a=RyanVM
We now copy all existing enrollments to the NimbusEnrollments table
during a migration after the ExperimentStore is initialized but before
we initialize the `ExperimentManager` (i.e., call `onStartup()`). This
migration has to happen at this very specific point because calling
`ExperimentManager.onStartup()` will process any existing enrollments
and may cause unenrollments. This patch does not add support for
updating enrollments in the database (see the next patch in this
series), but for that to happen, the enrollments must already exist in
the database.

`NimbusTestUtils.factories.recipe()` now returns more realistic recipes
(with properties being `null` instead of missing). This surfaced a
minor bug in the `EnrollmentsContext` validation flow when validation
was disabled and the recipe had localizations, but this should never
have been a problem in reality because validation is always enabled in
practice.

Because Nimbus is used in so many xpcshell tests and it is currently
cumbersome to enable the ProfileDatastoreService in every one of those
tests, writing to the new database is controlled by the
`nimbus.profiledatastoreservice.enabled` pref, which is true by default
but false in xpcshell tests.

Original Revision: https://phabricator.services.mozilla.com/D249467

Differential Revision: https://phabricator.services.mozilla.com/D251910
2025-05-31 19:02:37 +00:00
iulian moraru
7e9a937ea1 Revert "Bug 1956080 - Add telemetry about database writes r=nimbus-reviewers,relud,chumphreys" for causing multiple bc failures.
This reverts commit 53b0e55e9e.

Revert "Bug 1956080 - Write enrollment updates to the NimbusEnrollments table r=jhirsch,nimbus-reviewers,relud,nalexander"

This reverts commit 128370986e.

Revert "Bug 1956080 - Add a migration to copy existing enrollments to the NimbusEnrollments table r=jhirsch,nimbus-reviewers,relud,Gijs"

This reverts commit 0bbb1c3d7a.
2025-05-24 03:33:14 +00:00
Beth Rennie
0bbb1c3d7a Bug 1956080 - Add a migration to copy existing enrollments to the NimbusEnrollments table r=jhirsch,nimbus-reviewers,relud,Gijs
We now copy all existing enrollments to the NimbusEnrollments table
during a migration after the ExperimentStore is initialized but before
we initialize the `ExperimentManager` (i.e., call `onStartup()`). This
migration has to happen at this very specific point because calling
`ExperimentManager.onStartup()` will process any existing enrollments
and may cause unenrollments. This patch does not add support for
updating enrollments in the database (see the next patch in this
series), but for that to happen, the enrollments must already exist in
the database.

`NimbusTestUtils.factories.recipe()` now returns more realistic recipes
(with properties being `null` instead of missing). This surfaced a
minor bug in the `EnrollmentsContext` validation flow when validation
was disabled and the recipe had localizations, but this should never
have been a problem in reality because validation is always enabled in
practice.

Because Nimbus is used in so many xpcshell tests and it is currently
cumbersome to enable the ProfileDatastoreService in every one of those
tests, writing to the new database is controlled by the
`nimbus.profiledatastoreservice.enabled` pref, which is true by default
but false in xpcshell tests.

Differential Revision: https://phabricator.services.mozilla.com/D249467
2025-05-24 02:33:44 +00:00
Ed Lee
e432eb1623 Bug 1968047 - link preview opens in unexpected scenarios r=txia,firefox-ai-ml-reviewers
Only trigger long click with primary button. Ignore overlink after a delay and single page app links.

Differential Revision: https://phabricator.services.mozilla.com/D250901
2025-05-24 00:17:15 +00:00
Maxx Crawford
c468f18711 Bug 1968055 - Set extensions.pocket.enabled pref to false r=home-newtab-reviewers,mconley
Differential Revision: https://phabricator.services.mozilla.com/D250817
2025-05-23 22:58:35 +00:00
Hubert Boma Manilla
829de4d0df Bug 1943909 - [devtools] Remove codemirror next preference r=devtools-reviewers,ochameau
Differential Revision: https://phabricator.services.mozilla.com/D250367
2025-05-23 15:53:53 +00:00
Nina Pypchenko
edd056eb2f Bug 1964294 - Offer one-click Sponsored Settings for New Tab r=home-newtab-reviewers,fluent-reviewers,bolsson,reemhamz
Reorganised sponsored settings on `about:settings#home` to be nested under "Support Firefox" checkbox for an experiment instead of under their respective preferences for top sites and recommended stories.

Differential Revision: https://phabricator.services.mozilla.com/D249767
2025-05-23 06:06:26 +00:00
Fred Chasen
ec8addf192 Bug 1964845 - Remove Shopping prefs. r=shopping-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D248678
2025-05-22 18:04:39 +00:00
Dale Harvey
2a795f4591 Bug 1967857 - Enable scotchBonnet by default r=urlbar-reviewers,daisuke
Differential Revision: https://phabricator.services.mozilla.com/D250537
2025-05-22 14:47:01 +00:00
Jed Davis
adb9ba0744 Bug 1302711 - Add Linux socket process sandbox level 2, for ioctl lockdown. r=gcp
See the previous commit, about content sandbox level 6, for details;
this is basically the same (except with one more ioctl allowlisted, and
controlled by a different pref).

This patch also adds some plumbing to get the socket sandbox level into
the code that constructs the policy, modeled on how it works for content
processes.  (Previously the only levels of the socket process sandbox
were "on" and "off" so that wasn't necessary until now.)

Differential Revision: https://phabricator.services.mozilla.com/D249018
2025-05-22 05:48:29 +00:00
Jed Davis
3c314e648e Bug 1302711 - Add Linux content sandbox level 6, for ioctl lockdown. r=gcp
The sandbox already limits `ioctl` attack surface by restricting what
files can be opened (you can't call a device's `ioctl` handler if you
can't get a fd for that device), but it's always good to have defense in
depth, especially when it can be implemented this simply.

The new policy is default-deny, allowing only a couple ioctls that
are really fcntls; others may be added as needed.

The old, default-allow policy (which blocked only tty ioctls) is still
available by lowering the pref `security.sandbox.content.level` to 5,
and for now that is also the case in safe mode.  (The safe mode sandbox
lowering may be removed in the future once this is better tested.)

Differential Revision: https://phabricator.services.mozilla.com/D249017
2025-05-22 05:48:25 +00:00
Jed Davis
e8c0fe7798 Bug 1965103 - Turn security.sandbox.content.headless into sandbox level 5. r=firefox-desktop-core-reviewers ,mossop,gcp
This was a separate pref because it also side-effects the graphics stack
by setting `MOZ_HEADLESS` for content processes.  But, it makes more
sense to have it be part of the ordered sequence of sandbox levels (for
example, the upcoming ioctl lockdown will also break graphics drivers),
and in general it's better if the sandbox policy can be understood by
looking at only one pref instead of several.

There is *no* pref migration for older profiles.  If anyone had
`security.sandbox.content.headless` set to false: if the reason was to
also turn off `webgl.out-of-process`, try resetting that pref and see if
everything still works.  If that's not the case, or if there are still
bugs with default settings, please report them, and the sandbox level
can be lowered to 4 as a workaround.

Differential Revision: https://phabricator.services.mozilla.com/D249016
2025-05-22 03:09:45 +00:00
scottdowne
38c9fbb862 Bug 1966391 - newtab Contextual Ads send IAB categories from layout cache/store into unified ads request r=home-newtab-reviewers,amy
Differential Revision: https://phabricator.services.mozilla.com/D249842
2025-05-22 02:07:20 +00:00
Moritz Beier
70961de0dd Bug 1967739 - Enable browser.urlbar.update2.engineAliasRefresh by default. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D250436
2025-05-21 23:56:09 +00:00
dadaa
6e0ff1deb8 Bug 1967626: Introduce yelpServiceResultDistinction Nimbus variable to enable service type title r=adw
Differential Revision: https://phabricator.services.mozilla.com/D250370
2025-05-21 02:23:07 +00:00
Niklas Baumgardner
934819c080 Bug 1948366 - Remove extensions.screenshots.disabled pref. r=sfoster,webdriver-reviewers,firefox-desktop-core-reviewers ,whimboo,urlbar-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D248324
2025-05-20 23:49:14 +00:00
Rolf Rando
7feb39fcfb Bug 1966796 - Audit new tab content telemetry, add support for interest vector r=home-newtab-reviewers,nbarrett
Differential Revision: https://phabricator.services.mozilla.com/D249864
2025-05-20 06:31:47 +00:00
Ed Lee
dc03b9efd9 Bug 1967131 - Using Shift while typing unexpectly triggers Link Preview on Windows r=txia,firefox-ai-ml-reviewers
Track recent typing and ignore shortcut if within pref controlled 1000ms.

Differential Revision: https://phabricator.services.mozilla.com/D249911
2025-05-19 22:51:36 +00:00
Drew Willcoxon
bf950118ff Bug 1966811 - Enable Suggest in the UK and disable most suggestion types outside the US. r=daisuke,nanj
Differential Revision: https://phabricator.services.mozilla.com/D249706
2025-05-19 19:43:24 +00:00
Maxx Crawford
3c9f92c83a Bug 1966521 - Remove newtabAdSize.variant-a/b prefs r=home-newtab-reviewers,npypchenko
Differential Revision: https://phabricator.services.mozilla.com/D249482
2025-05-19 17:40:27 +00:00
Nina Pypchenko
f1b4a5aeff Bug 1966781 - Set custom wallpaper and custom color picker prefs to default to true r=home-newtab-reviewers,maxx
Differential Revision: https://phabricator.services.mozilla.com/D249932
2025-05-19 17:32:12 +00:00
Reem H
5eebae3e69 Bug 1965948 - Add feature flag for card layout refinements. r=home-newtab-reviewers,reemhamz,maxx
Differential Revision: https://phabricator.services.mozilla.com/D249020
2025-05-19 05:10:10 +00:00
Ed Lee
6e871f0a57 Bug 1966483 - add long-press shortcut for link preview r=txia,firefox-ai-ml-reviewers
Detect long press if enabled and show preview after configurable 1s delay if not drag or mouseup.

Differential Revision: https://phabricator.services.mozilla.com/D249480
2025-05-17 22:46:54 +00:00
Tim Xia
842057e5ca Bug 1951146 - Provide button to generate ai preview with first time opt-in - r=Mardak,fluent-reviewers,firefox-ai-ml-reviewers,bolsson
- static skeleton animation
- start download / inference only after opt-in
- update model-optin to allow placing icon on either right or left depending on iconAtEnd
- update background-color of optin-wrapper
- add new prefs browser.ml.linkPreview.optin and browser.ml.linkPreview.collapse
- use css order attribute for placement of icon
- update to final text for opt-in modal
- don't generate key points if collapsed is true
- add optin test suite in browser_link_preview_optin.js
- add telemetry to link review optin
- remove learn more link
- refactor updateCardProperty

Differential Revision: https://phabricator.services.mozilla.com/D249104
2025-05-17 19:46:40 +00:00
Ed Lee
fc43311e2b Bug 1961210 - show link preview settings for the feature and related options, e.g., key points, keyboard shortcuts r=txia,fluent-reviewers,settings-reviewers,firefox-ai-ml-reviewers,bolsson,mstriemer
Add link preview related prefs not visible by default for now.

Differential Revision: https://phabricator.services.mozilla.com/D247542
2025-05-17 17:07:50 +00:00
Rolf Rando
740b82a0cb Bug 1965153 - Interest model implementation Interest model implementation for new tab content p13n r=thecount,home-newtab-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D248465
2025-05-16 23:15:18 +00:00
Mike Conley
cd84a13b70 Bug 1952316 - Create ContextId module to wrap RustContextId.sys.mjs. r=nanj,markh,chutten
Differential Revision: https://phabricator.services.mozilla.com/D248973
2025-05-16 23:12:56 +00:00
Marco Bonardo
25602f6943 Bug 1965225 - Make Semantic History search provider respect history suggest pref. r=cgopal
Rather than introducing a new pref, keep using the existing one. The
idea is that semantic history search will be part of the normal history
search functionality, so it doesn't need a separate pref.
Also add some checks to avoid unnecessary work in unrelated search modes.

Differential Revision: https://phabricator.services.mozilla.com/D248925
2025-05-16 12:40:22 +00:00
Narcis Beleuzu
bf7d376983 Revert "Bug 1965225 - Make Semantic History search provider respect history suggest pref. r=cgopal" for causing xpcshell failure on test_UrlbarProviderSemanticHistorySearch.js
This reverts commit e85ff46c79.
2025-05-16 09:45:24 +00:00
Marco Bonardo
e85ff46c79 Bug 1965225 - Make Semantic History search provider respect history suggest pref. r=cgopal
Rather than introducing a new pref, keep using the existing one. The
idea is that semantic history search will be part of the normal history
search functionality, so it doesn't need a separate pref.
Also add some checks to avoid unnecessary work in unrelated search modes.

Differential Revision: https://phabricator.services.mozilla.com/D248925
2025-05-16 08:57:10 +00:00
Ed Lee
ed576b67c8 Bug 1962297 - [Link Previews] The keyboard shortcut Shift + Alt should be changed, at least on Windows r=txia,firefox-ai-ml-reviewers
Support both shift and shift-alt switching default to just shift.

Differential Revision: https://phabricator.services.mozilla.com/D249213
2025-05-16 03:59:48 +00:00
Sandor Molnar
0d52118bbf Revert "Bug 1965948 - Add feature flag for card layout refinements. r=home-newtab-reviewers,nbarrett" for causing assertion failures
This reverts commit d57ce60261.
2025-05-15 02:33:38 +00:00
Amy Churchwell
c5d6767733 Bug 1966388 – newtab Contextual Ads pref and region controls. r=home-newtab-reviewers,thecount
Differential Revision: https://phabricator.services.mozilla.com/D249437
2025-05-14 21:36:52 +00:00
William Durand
b64515be3e Bug 1960273 - Enable data collection permissions on all channels. r=rpl
Differential Revision: https://phabricator.services.mozilla.com/D247916
2025-05-14 21:15:08 +00:00
Reem H
d57ce60261 Bug 1965948 - Add feature flag for card layout refinements. r=home-newtab-reviewers,nbarrett
Differential Revision: https://phabricator.services.mozilla.com/D249020
2025-05-14 21:13:52 +00:00
Cristina Horotan
5eb9f3d59f Revert "Bug 1965948 - Add feature flag for card layout refinements. r=home-newtab-reviewers,nbarrett" for causing multiple failures
This reverts commit 094f24d66f.
2025-05-14 05:32:20 +00:00
Nina Pypchenko
b0fed0975d Bug 1902921 - Consolidate New Tab wallpaper preferences r=home-newtab-reviewers,webdriver-reviewers,whimboo,thecount,reemhamz
- Updated New Tab wallpaper code to only use `browser.newtabpage.activity-stream.newtabWallpapers.enabled` pref for turning the wallpapers on and off.

- Removed usage of `browser.newtabpage.activity-stream.newtabWallpapers.v2.enabled` everywhere except for Marionette setup so that testing older versions of Firefox is not affected.

Differential Revision: https://phabricator.services.mozilla.com/D248376
2025-05-14 04:17:03 +00:00
Reem H
094f24d66f Bug 1965948 - Add feature flag for card layout refinements. r=home-newtab-reviewers,nbarrett
Differential Revision: https://phabricator.services.mozilla.com/D249020
2025-05-14 04:16:36 +00:00
Nathan Barrett
5c0508a661 Bug 1965569 - Turn on private ping pref in nightly r=home-newtab-reviewers,npypchenko
Differential Revision: https://phabricator.services.mozilla.com/D248665
2025-05-12 17:14:35 +00:00
Sandor Molnar
2f524c9988 Revert "Bug 1965569 - Turn on private ping pref in nightly r=home-newtab-reviewers,npypchenko" for causing xpc failures @ test_TelemetryFeed.js
This reverts commit 1623d5bf37.
2025-05-12 15:12:49 +00:00
Nathan Barrett
1623d5bf37 Bug 1965569 - Turn on private ping pref in nightly r=home-newtab-reviewers,npypchenko
Differential Revision: https://phabricator.services.mozilla.com/D248665
2025-05-12 14:02:57 +00:00
Rebecca King
65219be51d Bug 1964091 - Clean up RC migration prefs - r=shopping-reviewers,kpatenio
Differential Revision: https://phabricator.services.mozilla.com/D247651
2025-05-09 18:16:32 +00:00
Greg Stoll
91dce4674b Bug 1965032 - let "Unload Tab" feature ride the trains r=haik
Differential Revision: https://phabricator.services.mozilla.com/D248425
2025-05-08 23:37:06 +00:00
Nathan Barrett
850053dc49 Bug 1962231 - Allow MARS request to be made over OHTTP r=home-newtab-reviewers,maxx
Differential Revision: https://phabricator.services.mozilla.com/D246515
2025-05-08 02:53:21 +00:00
Nathan Barrett
95a6ac0884 Bug 1961931 - Allow merino curated-recommendation request to be made over OHTTP r=home-newtab-reviewers,maxx
Differential Revision: https://phabricator.services.mozilla.com/D246331
2025-05-08 02:53:18 +00:00
Meg Viar
41167a68ba Bug 1964180 - Temporarily turn off ToS enrollment for new Linux users r=omc-reviewers,mimi
Differential Revision: https://phabricator.services.mozilla.com/D247777
2025-05-08 01:21:18 +00:00