58 Commits
Author SHA1 Message Date
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
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 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
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
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
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
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
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
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
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
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
Mark Banner 4782daaf58 Bug 2009689 - Update to Prettier 3.7.4. r=frontend-codestyle-reviewers,mkennedy,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D278649
2026-01-13 09:31:18 +00:00
Mark Banner 32474de169 Bug 1993543 - Change XPCOMUtils.defineLazyServiceGetter(s) calls to pass an nsIID rather than a string. r=firefox-desktop-core-reviewers ,mtigley,joschmidt,perftest-reviewers,home-newtab-reviewers,nbarrett,Gijs,sparky
This is all automated changes apart from ShellService.sys.mjs.

Differential Revision: https://phabricator.services.mozilla.com/D268194
2025-10-17 22:13:14 +00:00
Atila Butkovits 091d1f53bd Revert "Bug 1993543 - Simplify XPCOMUtils.defineLazyServiceGetter to require the interface parameter as an nsIID. r=spidermonkey-reviewers,frontend-codestyle-reviewers,Gijs,arai" for causing Reftest failures.
This reverts commit d96e9bd92c.

Revert "Bug 1993543 - Change XPCOMUtils.defineLazyServiceGetter(s) calls to pass an nsIID rather than a string. r=firefox-desktop-core-reviewers ,mtigley,joschmidt,perftest-reviewers,home-newtab-reviewers,nbarrett,Gijs,sparky"

This reverts commit 024c584172.
2025-10-17 12:51:54 +00:00
Mark Banner fde74f7d41 Bug 1994217 - Enable ESLint rule jsdoc/no-bad-blocks. r=frontend-codestyle-reviewers,webdriver-reviewers,credential-management-reviewers,search-reviewers,fxview-reviewers,places-reviewers,whimboo,nsharpley,scunnane,Gijs,mtigley,daisuke
Mainly manual fixes to fix issues found in the jsdoc comments now that they're recognised correctly.

Also removes some configuration that is no longer needed as it is now the default.

Differential Revision: https://phabricator.services.mozilla.com/D268569
2025-10-17 11:18:43 +00:00
Mark Banner 024c584172 Bug 1993543 - Change XPCOMUtils.defineLazyServiceGetter(s) calls to pass an nsIID rather than a string. r=firefox-desktop-core-reviewers ,mtigley,joschmidt,perftest-reviewers,home-newtab-reviewers,nbarrett,Gijs,sparky
This is all automated changes apart from ShellService.sys.mjs.

Differential Revision: https://phabricator.services.mozilla.com/D268194
2025-10-17 11:16:12 +00:00
Narcis Beleuzu 89c0ffec7c Revert "Bug 1994217 - Enable ESLint rule jsdoc/no-bad-blocks on the rest of the tree. r=frontend-codestyle-reviewers,Gijs" for causing Documentation opt failure
This reverts commit 987c3ad130.

This reverts commit 1c5b20a293.

This reverts commit 0a9a458465.
2025-10-16 21:32:01 +00:00
Mark Banner 1c5b20a293 Bug 1994217 - Enable ESLint rule jsdoc/no-bad-blocks. r=frontend-codestyle-reviewers,webdriver-reviewers,credential-management-reviewers,search-reviewers,fxview-reviewers,places-reviewers,whimboo,nsharpley,scunnane,Gijs,mtigley,daisuke
Mainly manual fixes to fix issues found in the jsdoc comments now that they're recognised correctly.

Also removes some configuration that is no longer needed as it is now the default.

Differential Revision: https://phabricator.services.mozilla.com/D268569
2025-10-16 10:58:11 +00:00
Max Christian Pohle b54f6c5be7 Bug 1968710 - Add telemetry: Age of the user profile, r=nrishel
Differential Revision: https://phabricator.services.mozilla.com/D251379
2025-06-15 15:01:42 +00:00
Florian Quèze b412ac1d8d Bug 1944631 - Migrate histograms to use Glean APIs for BROWSER_*, r=mconley.
Differential Revision: https://phabricator.services.mozilla.com/D238788
2025-02-20 19:34:10 +00:00
Florian Quèze 1ee252004d Bug 1935420 - rewrite JS code storing histograms in local variables to make automatic glean migration easier, r=chutten,fxview-reviewers,sync-reviewers,anti-tracking-reviewers,places-reviewers,markh,nsharpley.
Differential Revision: https://phabricator.services.mozilla.com/D234008
2025-01-24 16:18:32 +00:00
Logan Rosen d24c9d9ff4 Bug 1857834 - auto-formatting with Prettier v3 r=linter-reviewers,webdriver-reviewers,perftest-reviewers,search-reviewers,devtools-reviewers,sync-reviewers,reusable-components-reviewers,profiler-reviewers,dom-storage-reviewers,android-reviewers,firefox-ai-ml-reviewers,hjones,mcheang,mstange,sparky,janv,nchevobbe,tarek,Standard8,markh
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D230598
2024-11-29 15:18:25 +00:00
Nicholas Rishel fa92b82d1a Bug 1917674 - Part 2: Ensure shell service native interface members are present on ShellService. r=nalexander
A quirk of the JavaScript implementation of XPCOM's QueryInterface is that it loads the interface's functions onto the queried object. For Services like `ShellService` this creates situations where the interface can be initialized at a distance, causing races depending on how Firefox is run - e.g. Desktop vs Background Task. To ensure consistent behavior this patch forces `ShellService` initialization of the native interface so that the native functions are always present.

To accomplish this, `nsIWindowsShellService` has been modified to inherit from `nsIShellService` to match other platforms and ensure that querying it also loads the `nsIShellService` members into `shellService`.

Differential Revision: https://phabricator.services.mozilla.com/D222154
2024-09-13 17:38:50 +00:00
Nicholas Rishel 303dbaa6f5 Bug 1917674 - Part 1: Fix set to default throwing exception from ShellService in Firefox Background Tasks. r=nalexander,mossop
This succeeds in normal Firefox due to `QueryInterface(Ci.nsIWindowsShellService)` having likely been called on the `nsIShellService` prior to this call, which populates the root `nsIShellService` JavaScript object with the queried interface methods. In Firefox Background Tasks the relevant `QueryInterface` is unlikely to be called ahead of time, resulting in an exception.

Differential Revision: https://phabricator.services.mozilla.com/D221540
2024-09-13 17:38:49 +00:00
Nicholas Rishel 08191d01a4 Bug 1917373 - Check that method is present for shellService to prevent exception and dead logging code. r=mpohle
Differential Revision: https://phabricator.services.mozilla.com/D221537
2024-09-10 18:57:00 +00:00
Butkovits Atila 491ec7019a Backed out changeset b469fb3f8d08 (bug 1917373) for causing failures at browser_setDefaultBrowser.js. CLOSED TREE 2024-09-10 03:52:37 +03:00
Nicholas Rishel 5375fe8d3c Bug 1917373 - Check that method is present for shellService to prevent exception and dead logging code. r=mpohle
Differential Revision: https://phabricator.services.mozilla.com/D221537
2024-09-09 21:40:47 +00:00
Nipun Shukla 9044371423 Bug 1794159 - Part 3: Enable MSIX pinning in nsWindowsShellService r=nrishel,nalexander,firefox-desktop-core-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D217763
2024-08-12 17:05:48 +00:00
Nipun Shukla 93c6531ceb Bug 1900035 - Added Windows start menu pinning to MSIX set-to-default and taskbar pinning scenarios r=omc-reviewers,firefox-desktop-core-reviewers ,Gijs,mpohle,aminomancer,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D212461
2024-07-24 21:13:35 +00:00
Meg 8f07351683 Bug 1905379 - Clean up set default guidance notification check and update tests r=nrishel,negin
- Remove redundant check for `regRename` pref when deciding whether to show set default guidance notification
- Update guidance notification test helper to set `setDefaultBrowserUserChoice` to the same value as `...regRename` to make tests that include one-click being enabled more accurate.

These updates should not change the user experience.

Differential Revision: https://phabricator.services.mozilla.com/D215218
2024-07-03 14:41:46 +00:00
Tamas Szentpeteri 93f27874e0 Backed out changeset 50043205a8aa (bug 1905379) for causing mochitest failures on browser_download_preferred_action.js. CLOSED TREE 2024-07-02 19:20:10 +03:00
Meg 4c468ff89d Bug 1905379 - Clean up set default guidance notification check and update tests r=nrishel
- Remove redundant check for `regRename` pref when deciding whether to show set default guidance notification
- Update guidance notification test helper to set `setDefaultBrowserUserChoice` to the same value as `...regRename` to make tests that include one-click being enabled more accurate.

These updates should not change the user experience.

Differential Revision: https://phabricator.services.mozilla.com/D215218
2024-07-02 12:57:53 +00:00
Meg Viar 212619a587 Bug 1903416 - Add a pref to control the display of set default guidance notification r=nrishel,negin
Add a pref and nimbus variable to control whether users see set to default guidance notifications when one-click set to default is disabled. Windows only.

This patch supports the [[ https://experimenter.services.mozilla.com/nimbus/one-click-set-to-default-new-users/summary | one-click set to default guidance experiment ]].

Differential Revision: https://phabricator.services.mozilla.com/D214700
2024-06-24 20:50:38 +00:00
Barret Rennie 66225d624b Bug 1883686 - Migrate shellService to use setPref for setDefaultBrowserUserChoice r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D204526
2024-05-21 20:04:53 +00:00
Stanca Serban 736584d690 Backed out changeset bb686c6fb6c1 (bug 1883686) for causing mochitests failures in browser_setDefaultBrowser.js. 2024-05-09 00:48:58 +03:00
Barret Rennie b43bca5b24 Bug 1883686 - Migrate shellService to use setPref for setDefaultBrowserUserChoice r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D204526
2024-05-08 16:20:21 +00:00
Sandor Molnar 1206986d67 Backed out changeset 778d4c789ab7 (bug 1883686) for causing build bustages @ deps/AccessibleText.h CLOSED TREE 2024-05-08 17:24:49 +03:00
Barret Rennie 6d07cab913 Bug 1883686 - Migrate shellService to use setPref for setDefaultBrowserUserChoice r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D204526
2024-05-08 14:08:38 +00:00
Nicholas Rishel f1a859cab6 Bug 1890066 - Show notification when users need to finish setting Firefox as the default in Windows Settings. r=nalexander,omc-reviewers,fluent-reviewers,flod,pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D206828
2024-04-11 17:13:02 +00:00
Robin Steuber 43c63ecec5 Bug 1858729 - Add Edge identifier AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723 r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D190982
2023-12-13 03:11:33 +00:00
Michael Hughes 5ea9a03802 Bug 1863980 - [msix] Make ShellService.setDefaultBrowser async. r=nalexander,mconley,dmose,omc-reviewers
This commit includes the changes to call into the new asynchronous code to set the browser as default, using powershell.

While here, we add more logging to this interaction to allow easier
debugging with QA.

Differential Revision: https://phabricator.services.mozilla.com/D194949
2023-12-01 20:07:08 +00:00
Cosmin Sabou e276c6b6b9 Backed out 2 changesets (bug 1801954, bug 1863980) for bc failures on browser_setDefaultBrowser.js. CLOSED TREE
Backed out changeset b96506a6d950 (bug 1801954)
Backed out changeset 306a649fcc00 (bug 1863980)
2023-12-01 02:34:26 +02:00
Michael Hughes 9cc9c079f5 Bug 1863980 - [msix] Make ShellService.setDefaultBrowser async. r=nalexander,mconley,dmose,omc-reviewers
This commit includes the changes to call into the new asynchronous code to set the browser as default, using powershell.

While here, we add more logging to this interaction to allow easier
debugging with QA.

Differential Revision: https://phabricator.services.mozilla.com/D194949
2023-11-30 22:22:16 +00:00
Masatoshi Kimura 8262afb8c6 Bug 1856104 - Remove useless version checks from JavaScript code. r=Gijs,webcompat-reviewers,settings-reviewers,search-reviewers,Standard8,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D189696
2023-10-02 19:00:07 +00:00
Noemi Erli 8561f7ec9a Backed out 3 changesets (bug 1856187, bug 1856100, bug 1856104) for causing newtab failures
Backed out changeset db28784a1734 (bug 1856187)
Backed out changeset bd11e14dca63 (bug 1856104)
Backed out changeset 2741311b6055 (bug 1856100)
2023-10-02 21:16:25 +03:00
Masatoshi Kimura 89e9a36583 Bug 1856104 - Remove useless version checks from JavaScript code. r=Gijs,webcompat-reviewers,settings-reviewers,search-reviewers,Standard8,twisniewski
Differential Revision: https://phabricator.services.mozilla.com/D189696
2023-10-02 17:36:27 +00:00
Masatoshi Kimura c2dc436126 Bug 1845057 - Remove aClaimAllTypes from setDefaultBrowser. r=nrishel,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D189678
2023-10-02 16:56:42 +00:00
Masatoshi Kimura d8eea9e97a Bug 1850631 - Call nsIDefaultAgent directly to set default. r=nrishel,nalexander
Differential Revision: https://phabricator.services.mozilla.com/D187853
2023-09-13 03:18:46 +00:00