Commit Graph
1030 Commits
Author SHA1 Message Date
Nicolò Ribaudo 1e0a1c8c0b Bug 2042820 - Add 'Set Image as Desktop Background' context menu action for <canvas> elements. r=kcochrane
Differential Revision: https://phabricator.services.mozilla.com/D302459
2026-06-02 10:57:27 +00:00
Duncan McIntosh 67defd4dcf Bug 2019113 - Part 2: Add tests for DynamicLauncher portal usage from the browser. r=emilio,extension-reviewers,robwu,gerard-majax,Thinker,ahal
Differential Revision: https://phabricator.services.mozilla.com/D289371
2026-05-28 23:47:05 +00:00
Duncan McIntosh 932a9290b3 Bug 2019113 - Part 1: Use the DynamicLauncher portal from createLinuxDesktopEntry and deleteLinuxDesktopEntry. r=emilio,nrishel
Differential Revision: https://phabricator.services.mozilla.com/D285828
2026-05-28 23:47:02 +00:00
Vincent Hilla 7100dcfb7b Bug 2003265 - Avoid initial about:blank race in HeadlessShell. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D302815
2026-05-28 15:51:43 +00:00
David Rubino c060d32ef9 Bug 2038097 - Decouple default Windows launch-on-login from stub-installer first-startup path. r=iholmes,mossop,tgiles
The "default Windows launch on login" feature was registered as a
first-startup-new-profile task, which only runs from the stub
installer's --first-startup path. Full installer, MSI, MSIX, and zip
installs never hit it, leaving the new-install default silently off
for those users.

This change introduces a default-true pref
(browser.startup.windowsLaunchOnLogin.defaultEnabled) and moves the
registry write into StartupOSIntegration.onStartupIdle(), gated on:

  - profileService.isFirstRun (new getter exposed from
    nsToolkitProfileService.cpp via nsIToolkitProfileService.idl)
  - browser.startup.windowsLaunchOnLogin.defaultEnabled
  - WindowsLaunchOnLogin.getLaunchOnLoginApproved() (Windows policy)

DefaultWindowsLaunchOnLogin still runs from first-startup-new-profile
but now writes the pref bidirectionally based on Nimbus rather than
calling createLaunchOnLogin() itself, preserving the ability to opt
experiment branches in or out via Nimbus.

Differential Revision: https://phabricator.services.mozilla.com/D299301
2026-05-22 18:59:07 +00:00
Nika Layzell d147446fc7 Bug 2011326 - Part 2: Predict remote types with ProcessIsolation, r=whimboo,geckoview-reviewers,extension-reviewers,tabbrowser-reviewers,omc-reviewers,layout-reviewers,tcampbell,robwu,sthompson,emilio,mimi
This replaces the existing remote type prediction backend, which has been
implemented in E10SUtils.sys.mjs. This completes the transition which was
started when process selection decisions started being made in C++ for Fission
by removing the core logic completely from E10SUtils.sys.mjs.

Differential Revision: https://phabricator.services.mozilla.com/D282083
2026-05-21 19:23:54 +00:00
agoloman b2d4fa38c5 Revert "Bug 1729352, Bug 2011326, Bug 2011307 - Isolate standard web processes by OA, r=smaug,tabbrowser-reviewers,dom-worker-reviewers,asuth,sthompson,dao,sfoster" for causing bc failures @browser_aboutURLs.js.
This reverts commit ba92fe5024.

Revert "Bug 2011326 - Part 4: Switch test_sitepolicies to a data URI, r=mossop"

This reverts commit 8eab4714b1.

Revert "Bug 2011326 - Part 3: Remove the test-only canLoadURIInRemoteType function, r=firefox-desktop-core-reviewers ,tabbrowser-reviewers,mossop,sthompson"

This reverts commit 8ce4078eed.

Revert "Bug 2011326 - Part 2: Predict remote types with ProcessIsolation, r=whimboo,geckoview-reviewers,extension-reviewers,tabbrowser-reviewers,omc-reviewers,layout-reviewers,tcampbell,robwu,sthompson,emilio,mimi"

This reverts commit df59bd116e.

Revert "Bug 2011326 - Part 1: Remove test for separatePrivilegedContentProcess=false, r=firefox-desktop-core-reviewers ,tabbrowser-reviewers,mossop,sthompson"

This reverts commit 879157d4f7.

Revert "Bug 2011307 - Remove test-only support for marking chrome:// URI as needing to be loaded remotely, r=smaug,tabbrowser-reviewers,nsharpley"

This reverts commit 2d20aa53d9.
2026-05-20 23:54:13 +00:00
Nika Layzell df59bd116e Bug 2011326 - Part 2: Predict remote types with ProcessIsolation, r=whimboo,geckoview-reviewers,extension-reviewers,tabbrowser-reviewers,omc-reviewers,layout-reviewers,tcampbell,robwu,sthompson,emilio,mimi
This replaces the existing remote type prediction backend, which has been
implemented in E10SUtils.sys.mjs. This completes the transition which was
started when process selection decisions started being made in C++ for Fission
by removing the core logic completely from E10SUtils.sys.mjs.

Differential Revision: https://phabricator.services.mozilla.com/D282083
2026-05-20 22:45:29 +00:00
Duncan McIntosh 7837ad3c93 Bug 2039681 - Add nsGNOMEShellService.getGlibPrgname and use it from StartupTelemetry. r=emilio
The telemetry previously only looked at remotingName, which isn't
accurate if --name is used. Prefer g_get_prgname here since it's used as
the default wmclass, so it better matches what we want to measure.

Differential Revision: https://phabricator.services.mozilla.com/D300629
2026-05-19 16:15:55 +00:00
iulian moraru 806660fa25 Revert "Bug 2019113 - Post: Display the page action on Flatpak and Snap installations. r=nrishel" for causing ThreadSanitizer failures on nsCharTraits.h.
This reverts commit bde4bcc89a.

Revert "Bug 2019113 - Part 3: Provide the window to createLinuxDesktopEntry when pinning. r=nrishel"

This reverts commit f38b471713.

Revert "Bug 2019113 - Part 2: Add tests for DynamicLauncher portal usage from the browser. r=emilio,extension-reviewers,robwu,gerard-majax,Thinker,ahal"

This reverts commit 89a81eb63b.

Revert "Bug 2019113 - Part 1: Use the DynamicLauncher portal from createLinuxDesktopEntry and deleteLinuxDesktopEntry. r=emilio,nrishel"

This reverts commit b6b202794e.
2026-05-15 02:36:09 +00:00
Duncan McIntosh 89a81eb63b Bug 2019113 - Part 2: Add tests for DynamicLauncher portal usage from the browser. r=emilio,extension-reviewers,robwu,gerard-majax,Thinker,ahal
Differential Revision: https://phabricator.services.mozilla.com/D289371
2026-05-14 21:15:40 +00:00
Duncan McIntosh b6b202794e Bug 2019113 - Part 1: Use the DynamicLauncher portal from createLinuxDesktopEntry and deleteLinuxDesktopEntry. r=emilio,nrishel
Differential Revision: https://phabricator.services.mozilla.com/D285828
2026-05-14 21:15:36 +00:00
Atila Butkovits 0b9fe08512 Revert "Bug 2038097 - Decouple default Windows launch-on-login from stub-installer first-startup path. r=iholmes,profiles-reviewers,mossop" for causing failures at browser_windows_launch_on_login_msix.js.
This reverts commit 08afc06f03.
2026-05-12 19:33:35 +00:00
Harshit 2d9f4c7089 Bug 2038805 - schedule telemetry ping to inform us if firefox was set as default pdf handler successfully. r=cdupuis
Differential Revision: https://phabricator.services.mozilla.com/D299860
2026-05-12 18:08:04 +00:00
David Rubino 08afc06f03 Bug 2038097 - Decouple default Windows launch-on-login from stub-installer first-startup path. r=iholmes,profiles-reviewers,mossop
The "default Windows launch on login" feature was registered as a
first-startup-new-profile task, which only runs from the stub
installer's --first-startup path. Full installer, MSI, MSIX, and zip
installs never hit it, leaving the new-install default silently off
for those users.

This change introduces a default-true pref
(browser.startup.windowsLaunchOnLogin.defaultEnabled) and moves the
registry write into StartupOSIntegration.onStartupIdle(), gated on:

  - profileService.isFirstRun (new getter exposed from
    nsToolkitProfileService.cpp via nsIToolkitProfileService.idl)
  - browser.startup.windowsLaunchOnLogin.defaultEnabled
  - WindowsLaunchOnLogin.getLaunchOnLoginApproved() (Windows policy)

DefaultWindowsLaunchOnLogin still runs from first-startup-new-profile
but now writes the pref bidirectionally based on Nimbus rather than
calling createLaunchOnLogin() itself, preserving the ability to opt
experiment branches in or out via Nimbus.

Differential Revision: https://phabricator.services.mozilla.com/D299301
2026-05-12 18:05:37 +00:00
Duncan McIntosh 16c1164351 Bug 2038426 - Update MinGW stub prototype for IsCurrentAppPinnedToTaskbarWin11 to match non-MinGW version. r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D299811
2026-05-12 16:24:42 +00:00
Duncan McIntosh 02813eca77 Bug 2038377 - Initialize nsGNOMEShellService even if headless. r=emilio
Originally this check was added in bug 1368211 due to GConf error
messages when running headless. We no longer use GConf, so that
shouldn't (crosses fingers) be a problem.

This also removes the comment about checking for GIO and GSettings---it
looks like those used to have checks, but now just the comment remains.

Differential Revision: https://phabricator.services.mozilla.com/D299817
2026-05-11 21:54:17 +00:00
Duncan McIntosh cd38c2d35f Bug 2032619 - Part 2: Add a telemetry metric determining whether the user has a desktop entry for the browser. r=mossop,emilio
Differential Revision: https://phabricator.services.mozilla.com/D294800
2026-05-08 22:28:54 +00:00
Duncan McIntosh f1eee99f1d Bug 2035732 - Don't check whether pinning is allowed before checking if the browser is pinned. r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D298355
2026-05-08 16:20:46 +00:00
rperta c2c6c88166 Revert "Bug 2011326, Bug 2011307 - Part 3: Remove the test-only canLoadURIInRemoteType function, r=firefox-desktop-core-reviewers ,tabbrowser-reviewers,mossop,sthompson" for causing xpc failures at test_sitepolicies.js
This reverts commit b0ff387a8b.

This reverts commit b0d8bab446.

This reverts commit c1a0f5aee3.

This reverts commit 7a352d2480.
2026-05-07 13:48:30 +00:00
Nika Layzell b0d8bab446 Bug 2011326 - Part 2: Predict remote types with ProcessIsolation, r=whimboo,geckoview-reviewers,extension-reviewers,tabbrowser-reviewers,omc-reviewers,layout-reviewers,tcampbell,robwu,sthompson,emilio,mimi
This replaces the existing remote type prediction backend, which has been
implemented in E10SUtils.sys.mjs. This completes the transition which was
started when process selection decisions started being made in C++ for Fission
by removing the core logic completely from E10SUtils.sys.mjs.

Differential Revision: https://phabricator.services.mozilla.com/D282083
2026-05-06 17:36:35 +00:00
Harshit 75c6fdd3e5 Bug 2035660 - Condition the IOpenWith api flag based on windows versions. r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D297956
2026-05-05 00:56:26 +00:00
Vincent Hilla 38eed9f622 Bug 1610528 - Replace about:logo usages. r=dom-core,tabbrowser-reviewers,urlbar-reviewers,sthompson,firefox-desktop-core-reviewers ,desktop-theme-reviewers,smaug,dao
Differential Revision: https://phabricator.services.mozilla.com/D292762
2026-05-04 07:42:00 +00:00
serge-sans-paille 398e702349 Bug 2034847 - Make browser/ headers compatible with current static analysis r=emilio
- use = default when relevant

This matches the clang-tidy rules:

- https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.html

That we already use on source files

Differential Revision: https://phabricator.services.mozilla.com/D296616
2026-04-28 16:15:22 +00:00
Sylvestre Ledru 3baa4071fd Bug 2023419 - Remove remaining Emacs/Vim modelines from the source tree r=emilio,necko-reviewers,geckoview-reviewers,media-playback-reviewers,webidl,webrtc-reviewers,devtools-reviewers,places-reviewers,win-reviewers,firefox-style-system-reviewers,layout-reviewers,mstriemer,dshin,nchevobbe,padenot,ohall,handyman,valentin,mjf
Follow-up to bbcc7547a3 which cleaned up browser/. This strips the
same modelines from the rest of the tree, excluding paths listed in
tools/rewriting/ThirdPartyPaths.txt.

Differential Revision: https://phabricator.services.mozilla.com/D295577
2026-04-21 21:37:56 +00:00
Ryan VanderMeulen 5ac8e63564 Bug 2033190 - Update MinGW stub of PinCurrentAppToTaskbarWin11 to match new signature. r=cdupuis
Bug 2033172 added an aFireAndForget parameter to PinCurrentAppToTaskbarWin11
but did not update the MinGW fallback stub, causing MinGW link failures.

Differential Revision: https://phabricator.services.mozilla.com/D295164
2026-04-19 21:31:18 +00:00
Nicholas Rishel 5d6644eba8 Bug 2033172 - Add option to request pin to taskbar, without waiting for the request. r=cdupuis
Differential Revision: https://phabricator.services.mozilla.com/D295124
2026-04-18 02:30:40 +00:00
Sylvestre Ledru bbcc7547a3 Bug 2023419 - Remove Emacs/Vim modelines from browser/ r=emilio,mkaply,webcompat-reviewers,extension-reviewers,credential-management-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,desktop-theme-reviewers,win-reviewers,omc-reviewers,migration-reviewers,home-newtab-reviewers,ai-frontend-reviewers,browser-installer-reviewers,profiles-reviewers,ip-protection-reviewers,mconley,sfoster,twisniewski,thecount,flozia,gstoll,sthompson,mimi,kpatenio,rpl,dimi,mossop,akulyk,aborondo
Differential Revision: https://phabricator.services.mozilla.com/D287835
2026-04-17 22:55:57 +00:00
Duncan McIntosh 239c86055c Bug 2032098 - Don't look for argv[0] commands in the current directory if they don't seem to be paths. r=emilio
Worst part is, this is the obvious case! Wasn't caught because the tests
generally use an absolute path or empty string as argv[0], instead of
the more likely "firefox" etc.

Differential Revision: https://phabricator.services.mozilla.com/D294450
2026-04-15 21:31:41 +00:00
Antonio Borondo 27d957a99e Bug 2022767 - Focus the set default browser button in Windows Settings from Firefox r=cdupuis,Jamie,nika
Differential Revision: https://phabricator.services.mozilla.com/D290084
2026-04-10 06:52:12 +00:00
Antonio Borondo 8996c38afc Bug 2022767 - Use UIA to focus a UI element r=cdupuis,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D290083
2026-04-10 06:52:08 +00:00
Antonio Borondo 2b3326e9c1 Bug 2022767 - Use UIA to access the set default browser button in Windows Settings r=cdupuis,Gijs,accessibility-platform-reviewers,Jamie
Differential Revision: https://phabricator.services.mozilla.com/D288066
2026-04-10 06:52:04 +00:00
Duncan McIntosh dbcfc293e8 Bug 2021897 - Refer to Firefox by a relative path instead of an absolute path if possible when creating a desktop entry. r=nrishel,emilio
Differential Revision: https://phabricator.services.mozilla.com/D290515
2026-04-07 21:09:02 +00:00
serge-sans-paille 115d971353 Bug 2025273 - Activate modernize-loop-convert clang-tidy check r=media-playback-reviewers,webrtc-reviewers,profiler-reviewers,firefox-svg-reviewers,canaltinova,longsonr,mjf,alwu
This is mostly the result of running ./mach static-analysis check --fix
with the new linter activated, with the following caveats:

- use std::fill when it makes sense
- use appropriate names for the loop target variable
- fix constness
- use array default initialization instead of an explicit loop when it
  makes sense

Differential Revision: https://phabricator.services.mozilla.com/D289172
2026-03-26 12:27:13 +00:00
Nika Layzell 5f0f9dd22a Bug 2020817 - Part 4: Annotate & clean up nsACString callers of BeginReading/Data, r=xpcom-reviewers,media-playback-reviewers,webrtc-reviewers,cookie-reviewers,profiler-reviewers,win-reviewers,dom-storage-reviewers,permissions-reviewers,toolkit-telemetry-reviewers-rotation,layout-reviewers,dom-worker-reviewers,gfx-reviewers,webgpu-reviewers,necko-reviewers,dom-core,smaug,handyman,emilio,pehrsons,kershaw,timhuang,edenchuang,padenot,bradwerth
This is a large number of largely mechanical changes. When possible, the code
was called to directly call `.get()` instead, performing the assertions
manually. In many places PromiseFlatCString() calls were added to dynamically
copy the strings into null terminated buffers if the string was not null
terminated.

Differential Revision: https://phabricator.services.mozilla.com/D286158
2026-03-25 08:23:04 +00:00
Harshit Sohaney 748cd5e9ce Bug 2022617 - Add event telemetry for success and failure cases when setting default pdf. r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D289014
2026-03-24 21:42:49 +00:00
Duncan McIntosh a2f11422e5 Bug 1984762 - Add a new nsISecondaryTileService to manage secondary tiles on MSIX. r=nrishel,saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D285825
2026-03-21 00:25:38 +00:00
Duncan McIntosh c25f26471c Bug 1984762 - Pre: Rename 'LimitedAccessFeatureService.h' to 'WindowsShellServiceRust.h'. r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D287711
2026-03-21 00:25:36 +00:00
Harshit Sohaney 0270278573 Bug 2019409 - Provide an api to launch the open with dialog on windows with a fallback to ms-settings. r=nrishel,omc-reviewers,aminomancer,drubino
Differential Revision: https://phabricator.services.mozilla.com/D287228
2026-03-20 19:39:24 +00:00
rperta 93d1074012 Revert "Bug 2023419 - Remove Emacs/Vim modelines from browser/ r=emilio,mkaply,webcompat-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,desktop-theme-reviewers,win-reviewers,migration-reviewers,home-newtab-reviewers,ai-frontend-reviewers,mconley,twisniewski,thecount,flozia,gstoll,sthompson" for causing node related failures
This reverts commit 3ae5875024.
2026-03-16 20:46:05 +00:00
Sylvestre Ledru 3ae5875024 Bug 2023419 - Remove Emacs/Vim modelines from browser/ r=emilio,mkaply,webcompat-reviewers,fxview-reviewers,sessionstore-reviewers,tabbrowser-reviewers,desktop-theme-reviewers,win-reviewers,migration-reviewers,home-newtab-reviewers,ai-frontend-reviewers,mconley,twisniewski,thecount,flozia,gstoll,sthompson
replaced by .editorconfig
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D287835
2026-03-16 20:06:36 +00:00
Antonio Borondo 07d3102cfa Bug 1908298 - Fix IsDefaultBrowser for MSIX builds r=cdupuis
Differential Revision: https://phabricator.services.mozilla.com/D285970
2026-03-09 07:33:41 +00:00
Duncan McIntosh 48dd44a05e Bug 1982733 - Pre 1: Add ShellService.createLinuxDesktopEntry and matching ShellService.deleteLinuxShortcutEntry. r=nrishel,emilio,hsohaney
Differential Revision: https://phabricator.services.mozilla.com/D281292
2026-03-03 19:35:40 +00:00
Duncan McIntosh 1009483475 Bug 1985098 - Rename ShellService.createWindowsIcon to ShellService.writeShortcutIcon and add Linux compatibility. r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D275792
2026-03-03 19:35:34 +00:00
Nicholas Rishel 7a609fc168 Bug 2007035 - Migrate Windows Limited Access Feature code to Rust. r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D277134
2026-03-03 03:21:42 +00:00
Nicholas Rishel 80c9befad6 Bug 2016872 - Attempt to pin or check pin status even if unlocking the LAF fails on Windows 11. r=cdupuis
Differential Revision: https://phabricator.services.mozilla.com/D283395
2026-02-14 01:33:20 +00:00
Timothy Nikkel 884a9c4296 Bug 2009131. Use async_notify and bilinear filtering for image Draw/GetFrame calls. r=gfx-reviewers,aosmond
We always want to user aync notifications. The filtering controls how we draw if we use a pre-existing surface that has the wrong size, but in this case that is unlikely to happen due to the sync decode flag, but it would make the most sense if it did. We should update this to use best practices in case this code gets copied (which is exactly how this issue came up).

Differential Revision: https://phabricator.services.mozilla.com/D278253
2026-01-20 13:55:33 +00:00
Duncan McIntosh ef8dd2aa3e Bug 2003933 - Replace the C++ implementation of createWindowsIcon with a JavaScript implementation. r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D275002
2026-01-19 19:38:01 +00:00
Norisz Fay 6764d14984 Revert "Bug 2007035 - Migrate Windows Limited Access Feature code to Rust. r=saschanaz" as requested by developer for causing crash regression.
This reverts commit 9568a4fa8a.
2026-01-17 01:20:38 +00:00
Nicholas Rishel 9568a4fa8a Bug 2007035 - Migrate Windows Limited Access Feature code to Rust. r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D277134
2026-01-15 22:52:58 +00:00