Commit Graph

546 Commits

Author SHA1 Message Date
Alex Kontos
0dcefccb1a feat: PGO changes for github actions 2025-11-06 14:13:44 +00:00
Alex Kontos
6d4862fcc8 feat: add session restore checkbox when quitting the browser
(cherry picked from commit 25890584ab485be765a2e4eff47e38f903a0ae24)
2025-11-06 14:13:37 +00:00
Alex Kontos
bf8f043095 refactor: esm waterfox glue 2025-11-06 14:13:33 +00:00
Alex Kontos
666987e4ec refactor: bootstrapped extensions 2025-11-06 14:13:28 +00:00
Alex Kontos
af76ea0665 refactor: move WaterfoxGlue initialization earlier in startup 2025-11-06 14:13:10 +00:00
Alex Kontos
23b36cc3df feat: add WaterfoxGlue to handle Waterfox specific code
(cherry picked from commit 64e891c226dc7a28b490779c6e75101349ff3f7b)
2025-11-06 14:12:58 +00:00
Alex Kontos
777c551a0a feat: add update check disabling
(cherry picked from commit d97ab048aaea261d6f78640b62290a53815042f5)
2025-11-06 14:12:56 +00:00
Alex Kontos
e7824895ad refactor: rename Firefox related references to their relevant counterparts 2025-11-03 16:04:55 +00:00
Alex Kontos
8252e45d0f feat: implement privileged extension support
Also includes:

* feat: improve support for bootstrapped extensions
Added support for custom preference pages.
* fix: incorrect loading order for bootstrap loader
* fix: BootstrapLoader

(cherry picked from commit eb40811e464688c7d2fc58a4330272dde1ec7937)
2025-11-03 16:04:54 +00:00
Gijs Kruitbosch
b31d9f0790 Bug 1962056 - use the category manager for first window ready initialization, r=firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D244429
2025-05-22 07:23:16 +00:00
Sandor Molnar
9b669b5846 Revert "Bug 1962056 - use the category manager for first window ready initialization, r=firefox-desktop-core-reviewers ,mossop" for causing xpc/bc related failures.
This reverts commit d8dcab1023.
2025-05-22 05:43:14 +00:00
Gijs Kruitbosch
d8dcab1023 Bug 1962056 - use the category manager for first window ready initialization, r=firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D244429
2025-05-22 02:05:46 +00:00
Dave Townsend
8dd59e9654 Bug 1965072: Migrate ProfilesDatastoreService to toolkit. r=profiles-reviewers,firefox-desktop-core-reviewers ,mconley,jhirsch
Differential Revision: https://phabricator.services.mozilla.com/D249739
2025-05-21 15:20:53 +00:00
Gijs Kruitbosch
78ebe33ed8 Bug 1962056 - move places initialization out of BrowserGlue, r=places-reviewers,migration-reviewers,firefox-desktop-core-reviewers ,mossop,mak,mconley
Places frontend initialization is surprisingly complex, and disentangling it
from the rest of startup by moving it to its own file helps make some of the
logic a little more obvious, and makes unit-testing a bit easier.

This also removes BrowserGlue from the indirection mechanism used between
MigatorBase instances and Places, by switching to category-manager-based
invocation - this way, migrator code does not need to directly
call places code to tell it it's done, but we don't need BrowserGlue to play
messenger between them.

It would be nice to do the same thing for `places-init-complete` but
that is notified from C++ code so unfortunately that is not easily possible.

Differential Revision: https://phabricator.services.mozilla.com/D244428
2025-05-21 13:54:58 +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
vinhle000
fcdab9d38b Bug 1950165 - Remove unused _showPreOnboardingModal from BrowserGlue and related test. r=mviar,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D249497
2025-05-16 19:21:35 +00:00
Jonathan Sudiaman
0905650fec Bug 1963549 - Add profile migration to remove outdated sidebar attrs from XULStore. r=Gijs,sidebar-reviewers,firefox-desktop-core-reviewers ,sessionstore-reviewers,sthompson
There was some discussion on whether the XULStore data should be written back into Session Store or Prefs. My concern there is that since we no longer *write* to XULStore, there is a good chance that this data is outdated anyways, and we'd be overwriting data in other places that *are* up-to-date. My vote is to simply discard this data, it seems that users were already comfortable with clearing their xulstore.json, so it doesn't seem like an issue to do the same programmatically.

Differential Revision: https://phabricator.services.mozilla.com/D248476
2025-05-09 20:35:47 +00:00
Sean
d28c742595 Bug 1949038 - Add a boolean value to the PageloadEvent to store user hard disk info (SSD/HDD) r=acreskey,sekim,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D238807
2025-04-25 07:40:16 +00:00
Niklas Baumgardner
7276800327 Bug 1953884 - Eagerly create the profiles shared database. r=profiles-reviewers,mossop,jhirsch,firefox-desktop-core-reviewers ,omc-reviewers,emcminn
Differential Revision: https://phabricator.services.mozilla.com/D244621
2025-04-23 15:20:14 +00:00
Gijs Kruitbosch
6e00b6ddab Bug 1958070 - move misc taskbar and other shell integration bits out of BrowserGlue, r=application-update-reviewers,firefox-desktop-core-reviewers ,bytesized,frontend-codestyle-reviewers,mossop
Doing this helps with code organization and keeping related things together,
further shrinking the list of custom component-specific code in
BrowserGlue.sys.mjs .

Differential Revision: https://phabricator.services.mozilla.com/D244427
2025-04-23 08:28:41 +00:00
Valentin Gosu
b135ff02bf Bug 1955579 - move browser/components/doh to toolkit/components/doh to be used on Android r=necko-reviewers,settings-reviewers,firefox-desktop-core-reviewers ,Gijs,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D242531
2025-04-22 17:59:45 +00:00
Gijs Kruitbosch
36492c3033 Bug 1958070 - move profile data migration (most of migrateUI) to its own file, r=firefox-desktop-core-reviewers ,mossop
This almost-ever-growing list of items makes BrowserGlue hard to scan, and
moving it to its own file both makes it easier to find, test independently
(without reaching into BrowserGlue code), and lets us avoid loading it
entirely if we don't need to migrate anything.

Differential Revision: https://phabricator.services.mozilla.com/D244426
2025-04-14 14:04:34 +00:00
Gijs Kruitbosch
4f048a8b56 Bug 1958070 - move content blocking prefs handling out of BrowserGlue, r=anti-tracking-reviewers,emz
Differential Revision: https://phabricator.services.mozilla.com/D244425
2025-04-14 14:04:34 +00:00
Gijs Kruitbosch
35393df8e1 Bug 1958070 - create components dir for permissions handling and move ContentPermissionPrompt out there, r=emz,firefox-desktop-core-reviewers ,mossop
This isn't particularly big but it has lived in BrowserGlue for a surprisingly
long time, and doesn't really belong there. There wasn't a _great_ home for
this, so I created a new directory.

SitePermissions.sys.mjs and other bits probably want to live in this directory
too, but one thing at a time.

Differential Revision: https://phabricator.services.mozilla.com/D244424
2025-04-14 14:04:34 +00:00
Gijs Kruitbosch
ca42ad6f57 Bug 1958070 - move giant actor list out of BrowserGlue into a dedicated file, r=firefox-desktop-core-reviewers ,mossop
What it says on the tin, really.

This mostly makes it easier to find this list due to naming, and helps contain
startup logic to BrowserGlue proper. A giant definition list of actors is not
really logic - if there weren't some `onPreferenceChanged` handlers, we could
consider moving it all to a yaml file or other mechanism and compile it in...

Differential Revision: https://phabricator.services.mozilla.com/D244423
2025-04-14 14:04:33 +00:00
Gijs Kruitbosch
75052d346a Bug 1958070 - move DefaultBrowserCheck to its own file, r=omc-reviewers,firefox-desktop-core-reviewers ,mossop,hanna_a
Differential Revision: https://phabricator.services.mozilla.com/D244422
2025-04-14 14:04:33 +00:00
Gijs Kruitbosch
e66aa47674 Bug 1958070 - unify scheduling of telemetry-related startup tasks,r=firefox-desktop-core-reviewers ,mossop
This moves a handful of things to run slightly later, but primarily it makes
sure that the scheduling and conditions under which each bit of telemetry is
collected is clear and in one place, instead of spread around.

Differential Revision: https://phabricator.services.mozilla.com/D244421
2025-04-14 14:04:33 +00:00
Gijs Kruitbosch
36a74c46e8 Bug 1958070 - move telemetry handling out of BrowserGlue.sys.mjs, r=firefox-desktop-core-reviewers ,mossop
This moves all startup telemetry gathering into a separate file, to prepare
for some minor scheduling changes and avoid all the direct dependencies from
BrowserGlue.sys.mjs.

Note that the status quo in terms of scheduling (which this patch is not
changing, and the next patch in the stack only changes a tiny bit) suggests that
some of the scheduling of this startup telemetry is... somewhat haphazard.

We may wish to invest in better primitives to both avoid data collection taking
valuable resources/time on startup, but also offer better guarantees that the
eventual collection contains the data we need. Especially the "best effort"
scheduled items currently do not satisfy the second criteria. Either way this
should be easier with all the relevant code in one place and scheduled in the
same way.

Differential Revision: https://phabricator.services.mozilla.com/D244420
2025-04-14 14:04:33 +00:00
Gijs Kruitbosch
b49069e69f Bug 1955497 - remove mibbit from existing profiles as it no longer exists, r=mak,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D243661
2025-04-08 19:35:31 +00:00
Narcis Beleuzu
cc33cd20bb Backed out 4 changesets (bug 1955579) for causing XPC failures on test_TRRRacer.js
Backed out changeset 820d70c9c0a3 (bug 1955579)
Backed out changeset b3c4ae7bc073 (bug 1955579)
Backed out changeset 7a78799b24a0 (bug 1955579)
Backed out changeset b3ec267e42e0 (bug 1955579)
2025-04-03 20:35:53 +03:00
Valentin Gosu
cffebc7146 Bug 1955579 - move browser/components/doh to toolkit/components/doh to be used on Android r=necko-reviewers,settings-reviewers,firefox-desktop-core-reviewers ,Gijs,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D242531
2025-04-03 16:17:45 +00:00
Florian Quèze
4b88e75c19 Bug 1956726 - Migrate histograms to use Glean APIs in gfx/, r=chutten,jgilbert,firefox-desktop-core-reviewers ,mconley.
Differential Revision: https://phabricator.services.mozilla.com/D242765
2025-04-03 13:42:51 +00:00
Eric Chen
20e7393503 Bug 1955045 - add a custom command line handler for launching web app shortcuts r=mossop,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D242815
2025-04-03 01:09:25 +00:00
William Wen
63dd1f440d Bug 1956556 - Add consent manager prefs to ETP strict settings. r=timhuang,settings-reviewers,firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D243127
2025-04-01 20:02:42 +00:00
Tom Schuster
a7fe44620b Bug 1883387 - Suppress NS_ERROR_NOT_IMPLEMENTED from nsIAppStartup.secondsSinceLastOSRestart. r=firefox-desktop-core-reviewers ,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D243669
2025-03-31 14:23:49 +00:00
Ted Campbell
8728df611b Bug 1956093 - DAPVisitCounter should track Nimbus feature r=simonf,beth,firefox-desktop-core-reviewers ,mconley
Register Nimbus callback on startup, and ensure we unregister hooks when not
enrolled in experiment.

Differential Revision: https://phabricator.services.mozilla.com/D243248
2025-03-27 19:44:09 +00:00
Ted Campbell
1639b734e1 Bug 1956093 - Make DAPTelemetrySender toggle without restart r=simonf,firefox-desktop-core-reviewers ,mconley,chutten
Move the data upload pref check into each `sendReport` call instead of checking
only at startup. Also fixup various things in test_dap.js.

Differential Revision: https://phabricator.services.mozilla.com/D243247
2025-03-27 19:44:09 +00:00
Fred Chasen
8fa2242721 Bug 1938392 - Add integratedSidebar pref to Nimbus. r=shopping-reviewers,firefox-desktop-core-reviewers ,sidebar-reviewers,mossop,Gijs,rking
Adds the integratedSidebar pref to the `shopping2023` Nimbus feature and separates the enabling prefs for the migrated Review Checker in the main sidebar and the Shopping sidebar.

- Updates `browser.shopping.experience2023.integratedSidebar` to be the only enabling pref for the migrated Review Checker sidebar.
- Prevents `browser.shopping.experience2023.enabled` from disabling the migrate sidebar and uses it as the pref for the ShoppingSidebar actors.
- Removes the `browser.shopping.experience2023.shoppingSidebar` pref as it is no longer needed.
- Updates any tests the used these prefs to the new use.
- Init's the two sidebar differently in `ShoppingUtils` based on the Nimbus prefs.
- Unset the `SidebarController._state.command` when a sidebar tool pref sets it to `visible=false` otherwise it will try to re-open when the sidebar is opened again.

Differential Revision: https://phabricator.services.mozilla.com/D242053
2025-03-27 00:05:15 +00:00
Sarah Clements
3435c4b131 Bug 1947997 - Make sidebar.main.tools user customized r=sidebar-reviewers,firefox-desktop-core-reviewers ,mossop
* Update sidebar.main.tools default values and include a migration
* Modify updateDefaultTools in SidebarManager
* Update tests

Differential Revision: https://phabricator.services.mozilla.com/D240903
2025-03-24 18:32:29 +00:00
Gijs Kruitbosch
e9de12e4df Bug 1954435 - switch uitour to use moz-src, r=omc-reviewers,firefox-desktop-core-reviewers ,aminomancer,mconley
Differential Revision: https://phabricator.services.mozilla.com/D241795
2025-03-17 22:26:21 +00:00
Gijs Kruitbosch
f536d37c73 Bug 1954435 - tidy up UITour pref handling and remove requireSecure pref (enforce https), r=firefox-desktop-core-reviewers ,omc-reviewers,aminomancer,mconley
Differential Revision: https://phabricator.services.mozilla.com/D241794
2025-03-17 22:26:20 +00:00
Tooru Fujisawa
eba211428c Bug 1952714 - Stop using defineLazyPreferenceGetter in actors. r=mossop,firefox-desktop-core-reviewers ,mconley
There's no need to use weak reference while relying on something to keep the
prefs object alive.
Use plain prefs API with strong references.

Differential Revision: https://phabricator.services.mozilla.com/D240792
2025-03-12 02:24:44 +00:00
Beth Rennie
91d6531c40 Bug 1942694 - Remove toolkit/components/featuregates r=settings-reviewers,firefox-desktop-core-reviewers ,frontend-codestyle-reviewers,Gijs,android-reviewers,Roger
Differential Revision: https://phabricator.services.mozilla.com/D239672
2025-03-11 18:16:50 +00:00
Gijs Kruitbosch
b80542ddf9 Bug 1946121 - avoid needing primary password to collect OS auth telemetry, r=mtigley,firefox-desktop-core-reviewers ,mossop
Differential Revision: https://phabricator.services.mozilla.com/D240899
2025-03-11 17:25:47 +00:00
Tim Xia
736aabff21 Bug 1952011 - Implement fetch for Link Preview - r=Mardak,firefox-desktop-core-reviewers ,firefox-ai-ml-reviewers,mconley
- add fetch in child process
- DOM parsing only once
- check content-type to be text/html before fetching content
- add custom request header x-firefox-ai so publisher has option to allow/disallow the fetch request
- more fetch safeguards(max content-length) may come in the near future

Differential Revision: https://phabricator.services.mozilla.com/D240654
2025-03-11 05:15:02 +00:00
Luca Greco
9b62e7c434 Bug 1948364 - part 3: Adjust BrowserGlue _monitorScreenshotsPref. r=sfoster
Differential Revision: https://phabricator.services.mozilla.com/D238315
2025-03-06 16:24:02 +00:00
Mark Banner
878a5d5415 Bug 1951652 - Convert browser/components/search/ modules to use moz-src uris. r=search-reviewers,scunnane
Differential Revision: https://phabricator.services.mozilla.com/D240333
2025-03-05 09:24:37 +00:00
Julien Wajsberg
279bcb34e5 Bug 1950884 - Clean up calls with unused parameters r=canaltinova,profiler-reviewers,firefox-desktop-core-reviewers ,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D239600
2025-03-04 17:36:01 +00:00
Goloman Adrian
ace44e54c1 Backed out 4 changesets (bug 1950884, bug 1562082) for causing bc failures @browser_914138_widget_API_overflowable_toolbar.js. CLOSED TREE
Backed out changeset 7eb738540ace (bug 1562082)
Backed out changeset 9249743a9e0e (bug 1950884)
Backed out changeset 5531e172434d (bug 1950884)
Backed out changeset 2177f7ba56e3 (bug 1950884)
2025-03-04 16:06:35 +02:00
Andrea Marchesini
1c4205a4eb Bug 1938155 - System to BuiltIn addons - part 2 - Cleanup the search-detection addon startup, r=rpl,firefox-desktop-core-reviewers ,mconley
Differential Revision: https://phabricator.services.mozilla.com/D236225
2025-03-04 12:19:55 +00:00