Commit Graph

1955 Commits

Author SHA1 Message Date
Gabriele Svelto
15785ab3b7 Bug 1806410 - Allow sending crash pings for all processes except for testing-only ones r=chutten
Differential Revision: https://phabricator.services.mozilla.com/D167155
2023-01-24 13:19:10 +00:00
Sylvestre Ledru
11543ba854 Bug 1802290 - Remove +x permissions on more files r=linter-reviewers,andi
Differential Revision: https://phabricator.services.mozilla.com/D165841
2023-01-03 08:17:50 +00:00
Chris Martin
cfcb9fcb81 Bug 1799470 - Merge old embedding logic into ContentChild r=nika
Differential Revision: https://phabricator.services.mozilla.com/D164596
2022-12-15 03:06:22 +00:00
Chris Martin
9f2950c821 Bug 1799470 - Remove dead startup code r=nika
Differential Revision: https://phabricator.services.mozilla.com/D164595
2022-12-15 03:06:22 +00:00
Jens Stutte
f933869f5f Bug 1768581 - Part 4: Postpone main nsThread destruction after full XPCOM shutdown. r=xpcom-reviewers,nika
Some debug infrastructure like MOZ_WEAKPTR_INIT_THREAD_SAFETY_CHECK  that can apparently be triggered by nsComponentManagerImpl::gComponentManager->FreeService() seem to rely on the existence of a serial event target even if they do not post any events. So it seems sound to keep a representation of the main thread as nsThread object until after final XPCOM shutdown.
But nsThreadManager::ShutdownMainThread() does more, it processes the last round of events, removes the thread's observer  and closes down the background event target. We do not want to move these operations to happen later than before, such that we split the nsThread release into a separate function and move that together with AbstractThread::ShutdownMainThread() behind FreeService().

Depends on D160628

Differential Revision: https://phabricator.services.mozilla.com/D162497
2022-12-12 15:21:28 +00:00
Jens Stutte
1a706a942e Bug 1709184 - Part 1: Process pending MT events before advancing the shutdown phase. r=xpcom-reviewers,nika,kmag
Differential Revision: https://phabricator.services.mozilla.com/D160176
2022-12-12 15:21:26 +00:00
Nika Layzell
bca0a6965b Bug 1793463 - Part 4: Generate static components entries for protocols, r=necko-reviewers,xpcom-reviewers,valentin,kmag
This adds a new set of options to static components.conf files to allow
specifying the protocol flags and default ports of a protocol handler, and
generates a separate table just for this purpose.

This will be used in the next part as part of replacing the existing protocol
handler lookup infrastructure.

Differential Revision: https://phabricator.services.mozilla.com/D162803
2022-12-01 15:43:19 +00:00
Marian-Vasile Laza
7492025127 Backed out 7 changesets (bug 1793463) for causing bustages on nsIOService.cpp. CLOSED TREE
Backed out changeset 47c3acb30de2 (bug 1793463)
Backed out changeset 71afe900eb17 (bug 1793463)
Backed out changeset d168599a269e (bug 1793463)
Backed out changeset d0f18d300818 (bug 1793463)
Backed out changeset a116e6f089f2 (bug 1793463)
Backed out changeset eba1123c8b56 (bug 1793463)
Backed out changeset 68a3eb8a3057 (bug 1793463)
2022-12-01 02:30:02 +02:00
Nika Layzell
90f7562d95 Bug 1793463 - Part 4: Generate static components entries for protocols, r=necko-reviewers,xpcom-reviewers,valentin,kmag
This adds a new set of options to static components.conf files to allow
specifying the protocol flags and default ports of a protocol handler, and
generates a separate table just for this purpose.

This will be used in the next part as part of replacing the existing protocol
handler lookup infrastructure.

Differential Revision: https://phabricator.services.mozilla.com/D162803
2022-11-30 18:13:42 +00:00
Butkovits Atila
65e34f4628 Backed out 4 changesets (bug 1768581, bug 1709184) for causing high frequency Xpcshell failures at test_bug1274685_unowned_list.js. CLOSED TREE
Backed out changeset 6bae0f16eae9 (bug 1768581)
Backed out changeset 1f111f5b8baf (bug 1768581)
Backed out changeset a3d89b2ef44a (bug 1709184)
Backed out changeset 98f1dc6f0123 (bug 1709184)
2022-11-23 22:09:33 +02:00
Jens Stutte
218fbd6c78 Bug 1768581 - Part 13: Postpone main nsThread destruction after full XPCOM shutdown. r=xpcom-reviewers,nika
Some debug infrastructure like MOZ_WEAKPTR_INIT_THREAD_SAFETY_CHECK  that can apparently be triggered by nsComponentManagerImpl::gComponentManager->FreeService() seem to rely on the existence of a serial event target even if they do not post any events. So it seems sound to keep a representation of the main thread as nsThread object until after final XPCOM shutdown.
But nsThreadManager::ShutdownMainThread() does more, it processes the last round of events, removes the thread's observer  and closes down the background event target. We do not want to move these operations to happen later than before, such that we split the nsThread release into a separate function and move that together with AbstractThread::ShutdownMainThread() behind FreeService().

Depends on D160628

Differential Revision: https://phabricator.services.mozilla.com/D162497
2022-11-23 16:03:18 +00:00
Jens Stutte
b2a17869b6 Bug 1709184 - Part 10: Process pending MT events before advancing the shutdown phase. r=xpcom-reviewers,nika,kmag
Differential Revision: https://phabricator.services.mozilla.com/D160176
2022-11-23 16:03:17 +00:00
Cristian Tuns
c8caa32fbd Backed out 3 changesets (bug 1709184, bug 1768581) for causing xpcshell failures CLOSED TREE
Backed out changeset bd3bc1478107 (bug 1768581)
Backed out changeset c7465ec6154e (bug 1709184)
Backed out changeset 032bf39acabb (bug 1709184)
2022-11-19 06:31:59 -05:00
Jens Stutte
d30ecf51ea Bug 1709184 - Part 10: Process pending MT events before advancing the shutdown phase. r=xpcom-reviewers,nika,kmag
Depends on D160627

Differential Revision: https://phabricator.services.mozilla.com/D160176
2022-11-19 10:15:31 +00:00
Marian-Vasile Laza
1b3edb2b0b Backed out 3 changesets (bug 1768581, bug 1709184) for causing mochitest failures on LateWriteChecks.cpp. CLOSED TREE
Backed out changeset c49173f72e0d (bug 1768581)
Backed out changeset a4c2b2d0b63a (bug 1709184)
Backed out changeset 1181bdcde598 (bug 1709184)
2022-11-18 12:34:22 +02:00
Jens Stutte
1d3931be05 Bug 1709184 - Part 10: Process pending MT events before advancing the shutdown phase. r=xpcom-reviewers,nika,kmag
Depends on D160627

Differential Revision: https://phabricator.services.mozilla.com/D160176
2022-11-18 09:22:25 +00:00
Csoregi Natalia
66dbc65ccb Backed out 2 changesets (bug 1709184) for xpcshell failures. CLOSED TREE
Backed out changeset 46d7864a45df (bug 1709184)
Backed out changeset ac48b4d61b39 (bug 1709184)
2022-11-17 16:43:59 +02:00
Jens Stutte
b4bf71a425 Bug 1709184 - Part 10: Process pending MT events before advancing the shutdown phase. r=xpcom-reviewers,nika,kmag
Depends on D160627

Differential Revision: https://phabricator.services.mozilla.com/D160176
2022-11-17 10:07:13 +00:00
Jens Stutte
941061692d Bug 1797688 - Part 9: Make gXPCOMThreadsShutDown DEBUG only. r=xpcom-reviewers,mccr8
`gXPCOMThreadsShutDown` is needed for the assertion in `ThreadEventTarget::Dispatch` but we do not want other shutdown checks to rely on it, as it is too specific for this case. If we ever would really need this checkpoint in time during runtime in release we should consider to make it become a new `ShutdownPhase` in between.

We move the state to `ThreadEventTarget` and have a `DEBUG` only method to prime that assertion over there.

Differential Revision: https://phabricator.services.mozilla.com/D160627
2022-11-01 14:08:46 +00:00
Nika Layzell
f8e46f7fb5 Bug 1797354 - Allow specifying capability type in thread-safety macros, r=jesup,media-playback-reviewers,alwu
It is possible to specify full names for capabilities when using the clang
thread-safety analysis which will be used in error messages. We should use that
form of the attribute rather than the legacy lockable attribute.

Differential Revision: https://phabricator.services.mozilla.com/D160531
2022-10-28 19:55:30 +00:00
Mike Hommey
056763e84d Bug 1776463 - Use C++17 inline variable for CountingAllocatorBase::sAmount. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D159360
2022-10-17 21:54:12 +00:00
Andrew McCreight
bb892be228 Bug 1792567, part 1 - deCOM and remove unused methods in nsMacUtilsImpl. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D158203
2022-10-14 14:34:30 +00:00
Cristian Tuns
b867230c54 Backed out 2 changesets (bug 1792567) for causing build bustages on GMPParent.cpp CLOSED TREE
Backed out changeset 83c15124953e (bug 1792567)
Backed out changeset 63e7210c153a (bug 1792567)
2022-10-12 14:51:46 -04:00
Andrew McCreight
ce7e07c3a0 Bug 1792567, part 1 - deCOM and remove unused methods in nsMacUtilsImpl. r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D158203
2022-10-12 16:19:00 +00:00
Landry Breuil
e74a412ef2 Bug 1790419 - cache BinaryPath value on OpenBSD r=gcp
Differential Revision: https://phabricator.services.mozilla.com/D157554
2022-10-06 12:08:57 +00:00
Alexandre Poirot
8d2a615b2d Bug 1790383 - [devtools] Allow loading ESMs in a distinct loader specific to DevTools. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D157618
2022-10-03 07:28:09 +00:00
Andrew McCreight
91ed81b760 Bug 1792574, part 4 - deCOM nsIMemory. r=xpcom-reviewers,nika
I left the implementation in nsMemoryImpl.cpp so that the
diff looks reasonable.

I also got rid of the weird singleton runnable and replaced
it with NS_NewRunnableFunction.

Differential Revision: https://phabricator.services.mozilla.com/D158214
2022-09-28 15:17:47 +00:00
Andrew McCreight
2da84b8ac4 Bug 1792574, part 3 - Don't include nsMemory where it isn't needed. r=xpcom-reviewers,necko-reviewers,valentin,nika
There are only 3 places where nsMemory.h is still needed (image/RasterImage.cpp,
gfx/thebes/gfxFT2FontList.cpp, and nsMemory.cpp). Remove the rest.

Differential Revision: https://phabricator.services.mozilla.com/D158213
2022-09-28 15:17:46 +00:00
Andrew McCreight
cc63625045 Bug 1792437, part 2 - Remove nsIModule. r=xpcom-reviewers,nika
I think some prior XPCOM component work removed the uses of this.

Differential Revision: https://phabricator.services.mozilla.com/D158210
2022-09-27 22:16:29 +00:00
Andrew McCreight
e626a91a81 Bug 1792354, part 2 - Remove nsErrorService and nsIErrorService. r=xpcom-reviewers,necko-reviewers,nika,valentin
Nika pointed out that there are only two places that register
something, and only one place that uses it, so this entire module
can be turned into a couple of lines of a switch statement.

Differential Revision: https://phabricator.services.mozilla.com/D158132
2022-09-27 21:27:17 +00:00
Nika Layzell
3202b3d09e Bug 1789902 - Part 3: Stop generating rust bindings for Services.py, r=xpcom-reviewers,barret
Differential Revision: https://phabricator.services.mozilla.com/D156892
2022-09-13 13:47:14 +00:00
Bob Owen
3d2f6719a8 Bug 1788233: Remove PermissionsService from process Windows sandboxing code. r=handyman
Depends on D156069

Differential Revision: https://phabricator.services.mozilla.com/D156087
2022-09-07 09:42:04 +00:00
Fabrice Desré
c50cb528fc Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-03 16:39:41 +00:00
Andreea Pavel
3ccd75af8d Backed out changeset b9d2965591b9 (bug 1761040) for landing with wrong author CLOSED TREE DONTBUILD 2022-08-03 18:55:00 +03:00
Andreea Pavel
fdb7cb2ecd Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-03 15:27:43 +00:00
Bob Owen
d6333678d8 Bug 1682520 p1: Move GeckoProcessType and implementation of get and set into mozglue. r=glandium
This means we can set and use the process type earlier in process startup.

Differential Revision: https://phabricator.services.mozilla.com/D152198
2022-08-02 10:41:14 +00:00
Andreea Pavel
89d63c91e6 Backed out changeset a907159a482f (bug 1761040) for causing build bustages on a CLOSED TREE 2022-08-02 04:59:08 +03:00
Fabrice Desré
0f4ac7ad97 Bug 1761040 - Prefix thread safety macros with MOZ_ r=geckoview-reviewers,media-playback-reviewers,alwu,jesup,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D152575
2022-08-02 00:49:41 +00:00
Cristian Tuns
85e845a6dc Backed out 2 changesets (bug 1682520) for causing build bustages on ProcessType.h CLOSED TREE
Backed out changeset 679e19334225 (bug 1682520)
Backed out changeset dad72c7e0d7b (bug 1682520)
2022-07-29 17:04:49 -04:00
Bob Owen
cf59d0973b Bug 1682520 p1: Move GeckoProcessType and implementation of get and set into separate files. r=glandium
This means we can include these files in other binaries when we need earlier
access to the process type and use consistent code.

Differential Revision: https://phabricator.services.mozilla.com/D152198
2022-07-29 18:10:53 +00:00
Tooru Fujisawa
af81b5300a Bug 1667455 - Part 20: Remove Services.jsm from comments. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D150911
2022-07-11 12:41:56 +00:00
Kris Maglione
12faebc6e9 Bug 1773770: Part 12 - Remove XPCOM Module infrastructure. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149439
2022-06-30 09:12:19 +00:00
Kris Maglione
a8a76125b8 Bug 1773770: Part 4 - Migrate INI parser factory to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149432
2022-06-30 09:12:16 +00:00
Gerald Squelart
c3f739da8e Bug 1777391 - Document that registered IOInterposeObserver's should be static and reusable - r=florian
Depends on D150698

Differential Revision: https://phabricator.services.mozilla.com/D150699
2022-06-30 07:30:08 +00:00
Gerald Squelart
700356529b Bug 1777391 - Constify the ObserverLists to ensure that they're never modified after construction - r=florian
Differential Revision: https://phabricator.services.mozilla.com/D150698
2022-06-30 07:30:07 +00:00
Nick Alexander
4170258b2e Bug 1163452 - Only register stderr if it differs from stdout. r=glandium
Under certain Windows shells, the handle for stderr may be the same as
the handle for stdout.  Avoid crashing in this case.

Differential Revision: https://phabricator.services.mozilla.com/D150517
2022-06-29 17:15:45 +00:00
Lee Salzman
1a73fcfa42 Bug 1774916 - Avoid opening temporary X display in error handler. r=aosmond,gfx-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D150401
2022-06-27 18:54:57 +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
2e6a978eec Bug 1773770: Part 12 - Remove XPCOM Module infrastructure. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149439
2022-06-24 07:10:19 +00:00
Kris Maglione
4bd7eb42a2 Bug 1773770: Part 4 - Migrate INI parser factory to static component registration. r=xpcom-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D149432
2022-06-24 07:10:16 +00:00