Граф коммитов

436 Коммитов

Автор SHA1 Сообщение Дата
Geoff Lankow 4ca5dc8689 Bug 1779660 - Fix ephemeral background tasks tests on Thunderbird. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D151887
2022-07-15 03:42:14 +00:00
Nick Alexander ffc393b56c Bug 1775132 - Part 2: Allow background tasks to have non-ephemeral persistent profiles. r=mossop
This is a little tricky since some behaviour must be in the profile
service while some is more naturally in the background tasks mechanism.
Essentially, some background tasks will have a consistent profile
location determined by their "profile prefix", which includes vendor,
installation hash, and background task name.  Right now, those tasks are
determined by their task name, but in the future we could make this more
flexible.

A few technical notes:

1.  I elected to not assume (or provide) a directory service provider
    in the relevant helper, mostly to ease future commits that might
    pull this functionality forward in the startup process.
2.  These background task profiles are placed in "Background Tasks
    Profiles" on relevant platforms (non-Unix and macOS), sibling to
    "Profiles".
3.  To avoid any possible vulnerability with predictable profile
    directories, these non-ephemeral background task profiles are
    salted.  An entry is placed in the `BackgroundTasksProfiles` section
    of `profiles.ini` mapping the profile prefix to the relative salted
    path.

Differential Revision: https://phabricator.services.mozilla.com/D149919
2022-07-13 20:12:12 +00:00
Nick Alexander cf7750a206 Bug 1775132 - Part 1: Make profile service select background task profile directory. r=mossop
This allows the profile service to handle `XRE_PROFILE_PATH`,
`--profile`, etc as normal before choosing a "default" background task
profile directory.

Differential Revision: https://phabricator.services.mozilla.com/D149918
2022-07-13 20:12:12 +00:00
Tooru Fujisawa bf93d07148 Bug 1667455 - Part 5: Stop importing Services.jsm from chrome-priv JS code, top-level single-line cases. r=kmag,webdriver-reviewers,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,application-update-reviewers,pip-reviewers,twisniewski,m_kato,jdescottes,mconley,AlexandruIonescu,mossop
Differential Revision: https://phabricator.services.mozilla.com/D150894
2022-07-11 12:41:50 +00:00
Dave Townsend 0df4377cec Bug 1778082: Ensure nsToolkitProfileService is a singleton regardless of how it is accessed. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D151020
2022-07-05 14:49:53 +00:00
Kris Maglione 9746256032 Bug 1773770: Part 3 - Migrate XRE module to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149431
2022-06-30 09:12:16 +00:00
Noemi Erli ff26b8a5d0 Backed out 11 changesets (bug 1773770) because shouldn't have been landed during a soft freeze CLOSED TREE
Backed out changeset ede55d570d1e (bug 1773770)
Backed out changeset d5374ef362c2 (bug 1773770)
Backed out changeset 26e47956508b (bug 1773770)
Backed out changeset c78f0c4c8f3f (bug 1773770)
Backed out changeset 9089a97bcb26 (bug 1773770)
Backed out changeset 17894f5b3b41 (bug 1773770)
Backed out changeset 986a64a9e6b4 (bug 1773770)
Backed out changeset 7a63d8676bf0 (bug 1773770)
Backed out changeset 38e7b99ffbed (bug 1773770)
Backed out changeset e9ad07c96ab2 (bug 1773770)
Backed out changeset 2a8f65417b66 (bug 1773770)
2022-06-24 20:03:43 +03:00
Kris Maglione 29aac4ac21 Bug 1773770: Part 3 - Migrate XRE module to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149431
2022-06-24 07:10:16 +00:00
criss 6abc242b8d Backed out 11 changesets (bug 1773770) for causing mochitest failures on test_bug466599.xhtml. CLOSED TREE
Backed out changeset d35762c3242d (bug 1773770)
Backed out changeset 0501c85d3f58 (bug 1773770)
Backed out changeset cdd28e0e3434 (bug 1773770)
Backed out changeset a48829529dd0 (bug 1773770)
Backed out changeset c3fcdd7e88e5 (bug 1773770)
Backed out changeset 8f334c5dc0cd (bug 1773770)
Backed out changeset 337e76b67647 (bug 1773770)
Backed out changeset 71f539b482ba (bug 1773770)
Backed out changeset b996cbbbc2f5 (bug 1773770)
Backed out changeset a6ddc3cdc9ba (bug 1773770)
Backed out changeset c8d7da3cf2ac (bug 1773770)
2022-06-24 08:12:40 +03:00
Kris Maglione 27f3cba873 Bug 1773770: Part 3 - Migrate XRE module to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149431
2022-06-24 00:47:43 +00:00
Marian-Vasile Laza 7dd26a3f65 Backed out 11 changesets (bug 1773770) for causing bc failures on browser_xpcom_graph_wait.js. CLOSED TREE
Backed out changeset 72ace9ee39ae (bug 1773770)
Backed out changeset e8a3a040b4c4 (bug 1773770)
Backed out changeset 4ff5f4f0f5d1 (bug 1773770)
Backed out changeset f96e9664168d (bug 1773770)
Backed out changeset b6a696897ca8 (bug 1773770)
Backed out changeset 1b8ad6be2dce (bug 1773770)
Backed out changeset 7e3a1a32a88d (bug 1773770)
Backed out changeset 6dbe5fa1ad4f (bug 1773770)
Backed out changeset 86e09dcdadde (bug 1773770)
Backed out changeset 1ee8d852d9d5 (bug 1773770)
Backed out changeset c99e93023059 (bug 1773770)
2022-06-24 03:25:34 +03:00
Barret Rennie 0e8efb7786 Bug 1772944 - Remove osfile.jsm from toolkit/profile/ r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D149305
2022-06-23 23:41:20 +00:00
Kris Maglione f0384eb2c1 Bug 1773770: Part 3 - Migrate XRE module to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149431
2022-06-23 23:05:34 +00:00
Marian-Vasile Laza 969bcd8dfe Backed out 11 changesets (bug 1773770) for causing bustages on nsComponentManager.obj.
Backed out changeset 3538e99dd668 (bug 1773770)
Backed out changeset 0862b3275742 (bug 1773770)
Backed out changeset 45dbd95d94bb (bug 1773770)
Backed out changeset 1d079a6ae89c (bug 1773770)
Backed out changeset ac4c4a143ff7 (bug 1773770)
Backed out changeset 0e3233868101 (bug 1773770)
Backed out changeset ac727812fd06 (bug 1773770)
Backed out changeset fe46df06e31a (bug 1773770)
Backed out changeset 51b89b344d7f (bug 1773770)
Backed out changeset 62e49ca3f288 (bug 1773770)
Backed out changeset 6df39588ec9a (bug 1773770)
2022-06-24 01:16:58 +03:00
Kris Maglione 0c8c6bd04f Bug 1773770: Part 3 - Migrate XRE module to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149431
2022-06-23 20:13:08 +00:00
Andrew McCreight c8c5c819df Bug 1514936, part 1 - Remove the outer argument to nsIFactory::createInstance. r=xpcom-reviewers,preferences-reviewers,nika,Gijs
This patch won't actually build, because a few bits of code are used
for both nsIFactory::createInstance and static components, and static
components are not fixed until the next patch.

The first place is nsLoadGroupConstructor, which uses an nsIFactory
macro to create a static component constructor. (This could be worked
around by expanding the macro to the state before this patch.)

The other issue is that nsAppShellConstructor is used in an nsIFactory
on OSX, but as a static component on all other platforms. This could
be worked around by wrapping nsAppShellConstructor in an adaptor that
passes in the extra null argument to nsAppShellConstructor.

Differential Revision: https://phabricator.services.mozilla.com/D146456
2022-05-17 20:24:19 +00:00
Andrew McCreight 01913de302 Bug 1769442 - Remove nsIFactory::lockFactory, breaking compatibility with IClassFactory. r=xpcom-reviewers,Jamie,necko-reviewers,kershaw,nika
nsIFactory is binary compatible with Windows COM's IClassFactory,
but nothing seems to depend on it. This patch removes the test
for compatibility, TestCOM, and removes the lockFactory
method that isn't otherwise needed.

Differential Revision: https://phabricator.services.mozilla.com/D146386
2022-05-16 22:38:51 +00:00
Dave Townsend 63aea500ca Bug 1767421: Remove use of deprecated `GetProcessInformation` function. r=mstange
I'm going to assert that we no longer need to worry about someone running
something prior to mozilla 1.3 and so the easiest way to remove this compiler
warning is to just remove this check for the old-style locking entirely.

Differential Revision: https://phabricator.services.mozilla.com/D145321
2022-05-04 06:54:05 +00:00
Jan Rio Krause 057785b6d5 Bug 1519200 - Remove `NS_ERROR_FILE_TARGET_DOES_NOT_EXIST` in favor of `NS_ERROR_FILE_NOT_FOUND`. r=xpcom-reviewers,nika,dom-storage-reviewers,jstutte
Differential Revision: https://phabricator.services.mozilla.com/D77575
2022-04-05 15:17:03 +00:00
Marian-Vasile Laza acfb3e797d Merge autoland to mozilla-central. a=merge 2022-02-23 19:49:43 -08:00
Emilio Cobos Álvarez 0634f5b81c Bug 1756083 - Don't run snap tests in non-gtk platforms.
MANUAL PUSH: Trivial orange fix CLOSED TREE
2022-02-23 19:11:11 +01:00
Emilio Cobos Álvarez 0422925d7e Bug 1756083 - Cleanup snap name handling and enable portal when running under either flatpak or snap. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D139474
2022-02-23 13:59:33 +00:00
Nick Alexander 6cacac0089 Bug 1243603 - Post: Remove useless `-osint` checks. r=Gijs
[`EnsureCommandLineSafe`](https://searchfox.org/mozilla-central/rev/ead7da2d9c5400bc7034ff3f06a030531bd7e5b9/toolkit/xre/CmdLineAndEnvUtils.h#196)
doesn't allow `-p` with `-osint`, so these checks are useless.

Differential Revision: https://phabricator.services.mozilla.com/D132543
2021-12-11 00:00:55 +00:00
Mike Kaply 26d156d6b6 Bug 1737305 - Don't hardcode app name when checking LegacyProfiles policy. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D129315
2021-10-25 16:07:08 +00:00
Nick Alexander bf2b677248 Bug 1736876 - Stop migrating profiles into App Package builds. r=agashlin
The product experience migrating a profile when a non-MSIX Firefox is
running is not ideal, so we're going to always start with a fresh
profile for simplicity.

This is a straight backout of the "meat" of Bug 1709969 - Migrate from
an existing profile when running from an app package for the first
time, namely `hg backout -r 5136d2f684012dc3d586dcb10374f8c6eda8b6d7`.
The changes from follow-up Bug 1723298 (correcting test failures on
devedition), namely revision a4bca433c8f7003a90fda61248f38d9b389c394e,
were manually reverted and the test files deleted.

Differential Revision: https://phabricator.services.mozilla.com/D129066
2021-10-20 21:54:07 +00:00
Itiel c0094fa908 Bug 1733563 - Style the profile selection window's checkboxes as native ones r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D127256
2021-10-01 14:17:16 +00:00
Stephen A Pohl 002ae77528 Bug 1732969: Start prompting to install every time that we detect that we're running from a .dmg disk image on macOS, not only on first run. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D126829
2021-09-28 20:26:33 +00:00
Katherine Patenio d2129b2d30 Bug 1731381 - remove brandProductName properties for Fluent migration r=fluent-reviewers,flod,mtigley
Differential Revision: https://phabricator.services.mozilla.com/D126027
2021-09-22 19:55:57 +00:00
Geoff Lankow 70ced3d92d Bug 1728037 - Fix test_snap.js and test_snap_empty.js when run on Thunderbird. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D123906
2021-08-31 19:36:38 +00:00
Olivier Tilloy 27a83cc305 Bug 1726808 - Un-hardcode the snap name to check against in nsToolkitProfileService::IsSnapEnvironment(). r=stransky,mossop
Differential Revision: https://phabricator.services.mozilla.com/D123239
2021-08-27 18:51:41 +00:00
Jonathan Watt 3bb5899c2d Bug 1700795. Detect running from .dmg on macOS and report telemetry. r=mstange,mossop
Differential Revision: https://phabricator.services.mozilla.com/D121567
2021-08-05 09:39:16 +00:00
Sandor Molnar 90ad105d5d Backed out changeset c1de1d5f6beb (bug 1700795) for causing build bustages in nsAppRunner. CLOSED TREE 2021-08-05 05:25:41 +03:00
Jonathan Watt adf038b4a6 Bug 1700795. Detect running from .dmg on macOS and report telemetry. r=mstange,mossop
Differential Revision: https://phabricator.services.mozilla.com/D121567
2021-08-05 01:32:31 +00:00
Molly Howell e4aba3a688 Bug 1723298 - Use the correct default profile name, since it's different for dev edition. r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D121457
2021-08-03 15:19:22 +00:00
Molly Howell a0c6decba2 Bug 1709969 Part 3 - Migrate from an existing profile when creating the dedicated profile for a Windows app package. r=mossop,agashlin
Differential Revision: https://phabricator.services.mozilla.com/D117244
2021-07-30 19:09:47 +00:00
Sandor Molnar 1aa5913c7d Backed out 3 changesets (bug 1709969) for causing xpc failures in test_select_profile_package. CLOSED TREE
Backed out changeset 17ed7ca86998 (bug 1709969)
Backed out changeset a6b917838765 (bug 1709969)
Backed out changeset 6a80559a4055 (bug 1709969)
2021-07-30 21:26:09 +03:00
Molly Howell ba09a654e2 Bug 1709969 Part 3 - Migrate from an existing profile when creating the dedicated profile for a Windows app package. r=mossop,agashlin
Differential Revision: https://phabricator.services.mozilla.com/D117244
2021-07-30 17:34:26 +00:00
Jens Stutte fc2b0abf2a Bug 1714573: Ensure profile deletion takes place before the profile is unlocked. r=mossop,dom-storage-reviewers,janv
We want to make our best effort to delete all files we can before we unlock the profile. This includes a retry loop hoping that whoever else locked those files did so intermittently.
And once the profile is unlocked, we want to reduce as much as possible the possibility to interfere with a starting instance on the same profile directory.

Until bug 1716291 lands, we need to get back here to finish the work, but this patch is already supposed to mitigate some of the problems we might see in the wild.

Differential Revision: https://phabricator.services.mozilla.com/D116834
2021-06-15 06:28:04 +00:00
Brindusan Cristian 976ab8fe0c Backed out changeset eaa1eb96adbe (bug 1714573) for causing marionette failures in test_refresh_firefox.py.
CLOSED TREE
2021-06-10 16:19:14 +03:00
Jens Stutte 240030639e Bug 1714573: Ensure profile deletion takes place before the profile is unlocked. r=mossop,dom-storage-reviewers,janv
Differential Revision: https://phabricator.services.mozilla.com/D116834
2021-06-10 09:07:50 +00:00
Dave Townsend 30b4f94dd3 Bug 1700972: Remove profile-per-install onboarding UI. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D112292
2021-04-21 20:06:31 +00:00
Olivier Tilloy 17b5edfc93 Bug 1701182 - Prepend SNAP-specific prefix to shm path. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D110269
2021-04-09 14:41:31 +00:00
Butkovits Atila c6955ce4d0 Backed out changeset caf472555c8a (bug 1701182) for causing failure on test_snap_empty.js. CLOSED TREE 2021-04-08 05:26:26 +03:00
Olivier Tilloy 7b5c4d8ee0 Bug 1701182 - Prepend SNAP-specific prefix to shm path. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D110269
2021-04-07 20:55:42 +00:00
Andreea Pavel e86d10c304 Backed out changeset c83c9af968f8 (bug 1701182) for build bustages at system_wrappers/gdk/gdk.h on a CLOSED TREE 2021-03-31 19:33:47 +03:00
Olivier Tilloy 45068bf782 Bug 1701182 - Prepend SNAP-specific prefix to shm path. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D110269
2021-03-31 15:52:07 +00:00
Dorel Luca f0985635c0 Backed out changeset 627da64827ab (bug 1701182) for build bustages in gecko/browser/components/shell/nsGNOMEShellService.cpp. CLOSED TREE 2021-03-30 21:32:39 +03:00
Olivier Tilloy 24c53bd998 Bug 1701182 - Prepend SNAP-specific prefix to shm path. r=stransky
Differential Revision: https://phabricator.services.mozilla.com/D110269
2021-03-30 18:03:30 +00:00
Tim Nguyen 610315a33d Bug 1699072 - Remove information.svg and flatten toolkit/themes/shared/profile. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D109007
2021-03-18 23:48:14 +00:00
Agi Sferro 0ae24ebfa4 Bug 1697503 - Remove GeckoAppShell.KillAnyZombies. r=mossop,droeh
Before this patch, when the profile is locked on Android, we would call "ps",
parse the human-readable output and kill any other Gecko process that we could
find.

But this is completely unnecessary, as we know exactly that the PID of the
process holding the lock is.

In this patch we just kill the process holding the lock since this is
equivalent to the previous behavior.

Differential Revision: https://phabricator.services.mozilla.com/D106186
2021-03-15 17:04:41 +00:00