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

7504 Коммитов

Автор SHA1 Сообщение Дата
Sean Feng 83a8ef5280 Bug 1809518 - Use stencil parsing to do the Javascript check for ORB in Utility Process r=farre,smaug,tcampbell
This patch allows JS Validator to parse the incoming data into
stencil to verify if its a Javascript file.

Differential Revision: https://phabricator.services.mozilla.com/D166484
2023-02-22 20:17:00 +00:00
Cristian Tuns ef9fa152c1 Backed out 8 changesets (bug 1809518) for causing build bustages on JSOracleChild.h CLOSED TREE
Backed out changeset 1057c5d5a0a5 (bug 1809518)
Backed out changeset 1ddffd079624 (bug 1809518)
Backed out changeset 3f43f1cd3e8b (bug 1809518)
Backed out changeset 16bd31105745 (bug 1809518)
Backed out changeset d86c04497104 (bug 1809518)
Backed out changeset 25a5bf657f5c (bug 1809518)
Backed out changeset bf67b8c14aa0 (bug 1809518)
Backed out changeset 5cc0653b2072 (bug 1809518)
2023-02-22 12:20:40 -05:00
Sean Feng 561a15fdc2 Bug 1809518 - Use stencil parsing to do the Javascript check for ORB in Utility Process r=farre,smaug,tcampbell
This patch allows JS Validator to parse the incoming data into
stencil to verify if its a Javascript file.

Differential Revision: https://phabricator.services.mozilla.com/D166484
2023-02-22 14:07:46 +00:00
Olli Pettay 4698724ff7 Bug 1816088 - use highest priority message for SHMEM_CREATED_MESSAGE_TYPE, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D169566
2023-02-14 01:29:03 +00:00
Olli Pettay 18492c2d55 Bug 1815983 - Add support for ReplyPriority annotation, r=mccr8
The actual code is, except one line, from nika.

Differential Revision: https://phabricator.services.mozilla.com/D169380
2023-02-14 01:29:02 +00:00
Andi-Bogdan Postelnicu d7e8a09c21 Bug 1519636 - Reformat recent changes to the Google coding style. r=glandium
Updated with clang-format version 15.0.5 (taskcluster-MKK8dHUpQkGfPLA793lizg)
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D168658
2023-02-13 15:02:07 +00:00
Jed Davis e38f0ca71d Bug 1814551 - Try waiting for child processes directly when the fork server is in use. r=nika
When the fork server is enabled, not all IPC child processes are children of
the fork server; currently, process types other than content processes
are still spawned directly.  This means that we need to `waitid` or
`waitpid` them when they exit in order to not leak zombie processes.

Specifically, we can just try to `waitid` the process, and then if that
fails with `ECHILD` we can assume it was a fork server child and fall
back to the previous `kill(pid, 0)` workaround.  This patch does that,
but only if the fork server is active; otherwise we maintain the current
behavior of only waiting for child processes directly.

Differential Revision: https://phabricator.services.mozilla.com/D168756
2023-02-09 01:48:13 +00:00
Norisz Fay 2d8b8927fe Backed out changeset 4096c0b1871e (bug 1814551) for causing build bustages CLOSED TREE 2023-02-07 06:34:05 +02:00
Jed Davis 3e83500597 Bug 1814551 - Try waiting for child processes directly when the fork server is in use. r=nika
When the fork server is enabled, not all IPC child processes are children of
the fork server; currently, process types other than content processes
are still spawned directly.  This means that we need to `waitid` or
`waitpid` them when they exit in order to not leak zombie processes.

Specifically, we can just try to `waitid` the process, and then if that
fails with `ECHILD` we can assume it was a fork server child and fall
back to the previous `kill(pid, 0)` workaround.  This patch does that,
but only if the fork server is active; otherwise we maintain the current
behavior of only waiting for child processes directly.

Differential Revision: https://phabricator.services.mozilla.com/D168756
2023-02-07 04:12:26 +00:00
Andreas Farre 47c5c3cc00 Bug 1812275 - Handle more than one utility process in test. r=jld
Depends on D167662

Differential Revision: https://phabricator.services.mozilla.com/D167785
2023-02-06 15:52:28 +00:00
Andreas Farre e5afaa84ab Bug 1812035 - Fix broken about:memory tests. r=smaug
Tests for about:memory doesn't know about utility processes. Make sure
to hide the utility process reporter when needed.

Differential Revision: https://phabricator.services.mozilla.com/D167662
2023-02-06 15:52:28 +00:00
Emilio Cobos Álvarez 3d092ba60e Bug 1775062 - Implement ipdl reads without needing default ctors. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D149743
2023-02-04 11:12:36 +00:00
Nika Layzell ab4c8c50d9 Bug 1814751 - Treat UniquePtr as a normal IPDL type, r=ipc-reviewers,mccr8
Previously it was a property that all types could have, which was
incorrect, as only the UniquePtrType IPDLType could ever be a UniquePtr.
This changes that logic to make it more consistent with other IPDL
Types.

This also removes the check for a UniquePtr type attached to a `using`
statement, as the type can never be an IPDL type in that situation.

Differential Revision: https://phabricator.services.mozilla.com/D168746
2023-02-04 00:01:44 +00:00
Stephen A Pohl 84829b4b98 Bug 1812567: Change the activation policy for plugin-container to NSApplicationActivationPolicyProhibited to make it clear that it cannot itself be activated and should continue to not appear in the Dock. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D167944
2023-02-02 14:55:09 +00:00
David Parks b8c57fd02d Bug 1704500: Test Windows geolocation utility process restart on crash r=gerard-majax
Make sure that the geolocation utility process restarts for georequests that arrive after a crash. This tests process behavior regardless of whether or not the OS is set to allow geolocation (and in automation, it is not).

Depends on D162944

Differential Revision: https://phabricator.services.mozilla.com/D162945
2023-01-31 21:10:28 +00:00
David Parks 81a6335233 Bug 1704500: Add utility process test helpers r=gerard-majax
Also makes the existing utility process test functions a bit more general.

Depends on D162943

Differential Revision: https://phabricator.services.mozilla.com/D162944
2023-01-31 21:10:28 +00:00
David Parks 39b290be77 Bug 1704500: Make UtilityActorName an alias for WebIDLUtilityActorName r=gerard-majax
This eliminates a redundant enum that we had to keep synchronized with another.

Depends on D155020

Differential Revision: https://phabricator.services.mozilla.com/D162943
2023-01-31 21:10:28 +00:00
David Parks 2e959c2130 Bug 1704500: Add WindowsUtils kind of utility process on Windows r=gerard-majax,ipc-reviewers,nika
Adds a new type of utility process that is set up to handle Windows OS objects.  We are adding this process type to run Windows geolocation APIs but more services are expected to be included in it.  The ILocation APIs have a race condition that would otherwise crash the main process.  The ILocation work is in a later patch in the series.

Depends on D155017

Differential Revision: https://phabricator.services.mozilla.com/D155018
2023-01-31 21:10:26 +00:00
David Parks 04713ddc93 Bug 1704500: Add logging to UtilityProcessHost/Manager r=gerard-majax
Adds a "utilityproc" log to trace utility process launch and shutdown steps.

Differential Revision: https://phabricator.services.mozilla.com/D155017
2023-01-31 21:10:26 +00:00
Andrew Osmond b87e7bad97 Bug 1811981 - Add ability to run both x86 and ARM Widevine plugins on Windows ARM. r=jld
This patch adds the ability for Windows on ARM to launch either x86 or
ARM Widevine plugins. It also adds the ability for Windows on x86 to
refuse ARM binaries in case, for example, a profile is transferred
between machines.

Overall this should be a non-functional change for users at the time of
landing. It does however allow us to ship the ARM Widevine plugin to
Windows ARM users to workaround a plugin crash with the x86 Widevine
plugin. This only affects Windows 10 users (Windows 11 works fine).

Differential Revision: https://phabricator.services.mozilla.com/D167634
2023-01-31 20:57:11 +00:00
Jens Stutte b53d904e7c Bug 1813559 - Do not bail out on shutdown in BackgroundParentImpl::AllocPRemoteWorkerControllerParent but let RemoteWorkerManager::LaunchNewContentProcess do the error handling. r=dom-worker-reviewers,asuth
Differential Revision: https://phabricator.services.mozilla.com/D168264
2023-01-30 17:57:46 +00:00
Andrew McCreight 5528ac12d7 Bug 1808598, part 1 - Clean up send semantics IPDL types. r=ipc-reviewers,nika
This patch implements a number of cleanups for how send semantics are
represented in IPDL types.

1. needsMoreJuiceThan is inlined.
2. convertsTo is renamed to sendSemanticsSatisfiedBy to be more descriptive,
   and is no longer a class method.
3. nestedRange, sendSemantics and the methods that operate on them
   are moved from IPDLType to a new class, which MessageType and
   ProtocolType now inherit from.
4. IPDLType.hasReply has been inlined into MessageType.hasReply.

Differential Revision: https://phabricator.services.mozilla.com/D167836
2023-01-30 15:41:14 +00:00
Iulian Moraru fb1e6d6e57 Backed out 7 changesets (bug 1704500) for causing bc failures on browser_utility_geolocation_crashed.js. CLOSED TREE
Backed out changeset afcc1e8b5ad7 (bug 1704500)
Backed out changeset 1c27f9c36fda (bug 1704500)
Backed out changeset c0f0a280aaea (bug 1704500)
Backed out changeset 4be2d58ddf54 (bug 1704500)
Backed out changeset 1386732459ce (bug 1704500)
Backed out changeset 88e8015e1ec4 (bug 1704500)
Backed out changeset d96e810e20ec (bug 1704500)
2023-01-29 03:17:48 +02:00
David Parks 6c0bec1169 Bug 1704500: Test Windows geolocation utility process restart on crash r=gerard-majax
Make sure that the geolocation utility process restarts for georequests that arrive after a crash. This tests process behavior regardless of whether or not the OS is set to allow geolocation (and in automation, it is not).

Depends on D162944

Differential Revision: https://phabricator.services.mozilla.com/D162945
2023-01-28 21:00:50 +00:00
David Parks 1a3ddd6ba2 Bug 1704500: Add utility process test helpers r=gerard-majax
Also makes the existing utility process test functions a bit more general.

Depends on D162943

Differential Revision: https://phabricator.services.mozilla.com/D162944
2023-01-28 21:00:50 +00:00
David Parks 7e4c5e8fba Bug 1704500: Make UtilityActorName an alias for WebIDLUtilityActorName r=gerard-majax
This eliminates a redundant enum that we had to keep synchronized with another.

Depends on D155020

Differential Revision: https://phabricator.services.mozilla.com/D162943
2023-01-28 21:00:50 +00:00
David Parks 6161ee57c1 Bug 1704500: Add WindowsUtils kind of utility process on Windows r=gerard-majax,ipc-reviewers,nika
Adds a new type of utility process that is set up to handle Windows OS objects.  We are adding this process type to run Windows geolocation APIs but more services are expected to be included in it.  The ILocation APIs have a race condition that would otherwise crash the main process.  The ILocation work is in a later patch in the series.

Depends on D155017

Differential Revision: https://phabricator.services.mozilla.com/D155018
2023-01-28 21:00:48 +00:00
David Parks b2d24d88ba Bug 1704500: Add logging to UtilityProcessHost/Manager r=gerard-majax
Adds a "utilityproc" log to trace utility process launch and shutdown steps.

Differential Revision: https://phabricator.services.mozilla.com/D155017
2023-01-28 21:00:48 +00:00
Narcis Beleuzu 9e96e91239 Backed out 3 changesets (bug 1812275, bug 1812035, bug 1806501) for bc failures on browser_aboutprocesses_default_options.js .
Backed out changeset 4f13d8470d97 (bug 1806501)
Backed out changeset a276a2939cee (bug 1812275)
Backed out changeset 67775732c1a8 (bug 1812035)
2023-01-27 17:14:57 +02:00
Andreas Farre 57f0f27922 Bug 1812275 - Handle more than one utility process in test. r=jld
Depends on D167662

Differential Revision: https://phabricator.services.mozilla.com/D167785
2023-01-27 09:17:17 +00:00
Andreas Farre 9956dde6c8 Bug 1812035 - Fix broken about:memory tests. r=smaug
Tests for about:memory doesn't know about utility processes. Make sure
to hide the utility process reporter when needed, and count the number
of living processes, also when needed.

Differential Revision: https://phabricator.services.mozilla.com/D167662
2023-01-27 09:17:16 +00:00
Sandor Molnar ea48d05eba Backed out 7 changesets (bug 1704500) for causing multiple failures in browser_utility_geolocation_crashed/test_geolocation_reset_accuracy CLOSED TREE
Backed out changeset c3ae64389c26 (bug 1704500)
Backed out changeset 747d84ff17c7 (bug 1704500)
Backed out changeset 313b8770dc51 (bug 1704500)
Backed out changeset 30632246ee2b (bug 1704500)
Backed out changeset 90a8d51fc17c (bug 1704500)
Backed out changeset a1d1a97a2ffa (bug 1704500)
Backed out changeset 6bfb4d8de1e1 (bug 1704500)
2023-01-27 05:49:32 +02:00
David Parks 6598e4b0ba Bug 1704500: Test Windows geolocation utility process restart on crash r=gerard-majax
Make sure that the geolocation utility process restarts for georequests that arrive after a crash. This tests process behavior regardless of whether or not the OS is set to allow geolocation (and in automation, it is not).

Depends on D162944

Differential Revision: https://phabricator.services.mozilla.com/D162945
2023-01-26 20:15:08 +00:00
David Parks 4797695c17 Bug 1704500: Add utility process test helpers r=gerard-majax
Also makes the existing utility process test functions a bit more general.

Depends on D162943

Differential Revision: https://phabricator.services.mozilla.com/D162944
2023-01-26 20:15:08 +00:00
David Parks 85547a1272 Bug 1704500: Make UtilityActorName an alias for WebIDLUtilityActorName r=gerard-majax
This eliminates a redundant enum that we had to keep synchronized with another.

Depends on D155020

Differential Revision: https://phabricator.services.mozilla.com/D162943
2023-01-26 20:15:08 +00:00
David Parks f921985dfb Bug 1704500: Add WindowsUtils kind of utility process on Windows r=gerard-majax,ipc-reviewers,nika
Adds a new type of utility process that is set up to handle Windows OS objects.  We are adding this process type to run Windows geolocation APIs but more services are expected to be included in it.  The ILocation APIs have a race condition that would otherwise crash the main process.  The ILocation work is in a later patch in the series.

Depends on D155017

Differential Revision: https://phabricator.services.mozilla.com/D155018
2023-01-26 20:15:06 +00:00
David Parks 9ec7b795b8 Bug 1704500: Add logging to UtilityProcessHost/Manager r=gerard-majax
Adds a "utilityproc" log to trace utility process launch and shutdown steps.

Differential Revision: https://phabricator.services.mozilla.com/D155017
2023-01-26 20:15:06 +00:00
Cristian Tuns d1e6642127 Backed out 7 changesets (bug 1704500) for causing build bustages CLOSED TREE
Backed out changeset e48723d8d42e (bug 1704500)
Backed out changeset 897b985f9298 (bug 1704500)
Backed out changeset c2474d1c0046 (bug 1704500)
Backed out changeset d4508f8ba7df (bug 1704500)
Backed out changeset 241be693628d (bug 1704500)
Backed out changeset 341ec2465c7d (bug 1704500)
Backed out changeset 0d1c0dcd7645 (bug 1704500)
2023-01-25 15:33:33 -05:00
David Parks b27f3c0973 Bug 1704500: Test Windows geolocation utility process restart on crash r=gerard-majax
Make sure that the geolocation utility process restarts for georequests that arrive after a crash. This tests process behavior regardless of whether or not the OS is set to allow geolocation (and in automation, it is not).

Depends on D162944

Differential Revision: https://phabricator.services.mozilla.com/D162945
2023-01-25 19:58:47 +00:00
David Parks 459f7ad436 Bug 1704500: Add utility process test helpers r=gerard-majax
Also makes the existing utility process test functions a bit more general.

Depends on D162943

Differential Revision: https://phabricator.services.mozilla.com/D162944
2023-01-25 19:58:47 +00:00
David Parks 5236e4720d Bug 1704500: Make UtilityActorName an alias for WebIDLUtilityActorName r=gerard-majax
This eliminates a redundant enum that we had to keep synchronized with another.

Depends on D155020

Differential Revision: https://phabricator.services.mozilla.com/D162943
2023-01-25 19:58:47 +00:00
David Parks 41fcb215d0 Bug 1704500: Add WindowsUtils kind of utility process on Windows r=gerard-majax,ipc-reviewers,nika
Adds a new type of utility process that is set up to handle Windows OS objects.  We are adding this process type to run Windows geolocation APIs but more services are expected to be included in it.  The ILocation APIs have a race condition that would otherwise crash the main process.  The ILocation work is in a later patch in the series.

Depends on D155017

Differential Revision: https://phabricator.services.mozilla.com/D155018
2023-01-25 19:58:45 +00:00
David Parks 6a29255196 Bug 1704500: Add logging to UtilityProcessHost/Manager r=gerard-majax
Adds a "utilityproc" log to trace utility process launch and shutdown steps.

Differential Revision: https://phabricator.services.mozilla.com/D155017
2023-01-25 19:58:45 +00:00
Emilio Cobos Álvarez af31750cc0 Bug 1775062 - Fix various using statements to use properly qualified names. r=nika,necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D167710
2023-01-25 10:52:10 +00:00
Marian-Vasile Laza a8db73b494 Backed out 8 changesets (bug 1704500) for causing build bustages on UtilityProcessHost.cpp. CLOSED TREE
Backed out changeset da69da68588d (bug 1704500)
Backed out changeset 8f1b73a96bb0 (bug 1704500)
Backed out changeset 817d104b3a3e (bug 1704500)
Backed out changeset 1c84f8f0796a (bug 1704500)
Backed out changeset 93e59d5488dc (bug 1704500)
Backed out changeset f85e8eed6fed (bug 1704500)
Backed out changeset e581bfdf0f8e (bug 1704500)
Backed out changeset 5d62d1a33cf8 (bug 1704500)
2023-01-25 05:18:00 +02:00
Otto Länd 97b7518d94 Bug 1704500, 1704500, 1704500, 1704500, 1704500, 1704500, 1704500: apply code formatting via Lando
# ignore-this-changeset
2023-01-25 02:52:24 +00:00
David Parks 620c02a682 Bug 1704500: Test Windows geolocation utility process restart on crash r=gerard-majax
Make sure that the geolocation utility process restarts for georequests that arrive after a crash. This tests process behavior regardless of whether or not the OS is set to allow geolocation (and in automation, it is not).

Depends on D162944

Differential Revision: https://phabricator.services.mozilla.com/D162945
2023-01-25 02:48:58 +00:00
David Parks 440a5789f6 Bug 1704500: Add utility process test helpers r=gerard-majax
Also makes the existing utility process test functions a bit more general.

Depends on D162943

Differential Revision: https://phabricator.services.mozilla.com/D162944
2023-01-25 02:48:57 +00:00
David Parks 3b5a94ae42 Bug 1704500: Make UtilityActorName an alias for WebIDLUtilityActorName r=gerard-majax
This eliminates a redundant enum that we had to keep synchronized with another.

Depends on D155020

Differential Revision: https://phabricator.services.mozilla.com/D162943
2023-01-25 02:48:57 +00:00
David Parks f0feadd478 Bug 1704500: Add WindowsUtils kind of utility process on Windows r=gerard-majax,ipc-reviewers,nika
Adds a new type of utility process that is set up to handle Windows OS objects.  We are adding this process type to run Windows geolocation APIs but more services are expected to be included in it.  The ILocation APIs have a race condition that would otherwise crash the main process.  The ILocation work is in a later patch in the series.

Depends on D155017

Differential Revision: https://phabricator.services.mozilla.com/D155018
2023-01-25 02:48:56 +00:00