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

3709 Коммитов

Автор SHA1 Сообщение Дата
Yulia Startsev 4916e53611 Bug 1247687 - Implement csp for Module Workers; r=evilpie,asuth,rpl,ckerschb
Depends on D155691

Differential Revision: https://phabricator.services.mozilla.com/D156102
2022-12-14 14:55:38 +00:00
Sebastian Hengst 9bc20993bc Backed out 3 changesets (bug 1790872) on request of nika for causing regressions. CLOSED TREE
Backed out changeset 6b72e6c8e3bc (bug 1790872)
Backed out changeset 3e53a1922022 (bug 1790872)
Backed out changeset 862b578d462e (bug 1790872)
2022-12-08 23:17:57 +01:00
Manuel Bucher 6f5875ad8c Bug 1771867 - Early Hints Phase 2 - Part 1: Add ongoing early hint preloads to http IPC channel args r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D161172
2022-12-02 16:15:53 +00:00
Csoregi Natalia 5a260d61a4 Backed out 13 changesets (bug 1771867) for causing CanonicalBrowsingContext crashes. CLOSED TREE
Backed out changeset 120838b58449 (bug 1771867)
Backed out changeset aea7ca0bbd17 (bug 1771867)
Backed out changeset 2fe2afdee09d (bug 1771867)
Backed out changeset 8bdb1f682d22 (bug 1771867)
Backed out changeset a9f3158ed688 (bug 1771867)
Backed out changeset 1177913e1edf (bug 1771867)
Backed out changeset d33ccbbf407d (bug 1771867)
Backed out changeset 110ac12e16f5 (bug 1771867)
Backed out changeset 7f20525f5e94 (bug 1771867)
Backed out changeset b3d65b1aa872 (bug 1771867)
Backed out changeset 7cdf3cef2773 (bug 1771867)
Backed out changeset 5090eae24a5c (bug 1771867)
Backed out changeset f8a03d226c73 (bug 1771867)
2022-12-02 13:44:55 +02:00
Manuel Bucher a61c8650f9 Bug 1771867 - Early Hints Phase 2 - Part 1: Add ongoing early hint preloads to http IPC channel args r=necko-reviewers,valentin
Differential Revision: https://phabricator.services.mozilla.com/D161172
2022-12-02 09:45:23 +00:00
Nika Layzell c6fde75b19 Bug 1443925 - Part 6: Allow specifying Domain when creating content principals, r=ckerschb,bholley
This is required for deserializing nsIPrincipal instances from PrincipalInfo to
be threadsafe, as setting domain with `SetDomain()` is only safe on the main
thread, due to it enumerating and updating JS wrappers.

Differential Revision: https://phabricator.services.mozilla.com/D163036
2022-12-02 00:53:51 +00:00
Alexandre Lissy 5d0257721a Bug 1798711 - Remove duplication of DisableCrashReporter on gtest r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D162972
2022-11-30 14:41:42 +00:00
Alexandre Lissy 239ea2a241 Bug 1802513 - Augment utility audio tests with ffmpeg/ffvpx r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D163228
2022-11-30 10:10:23 +00:00
Nika Layzell b40577784e Bug 1790872 - Part 1: Report glean telemetry about which IPC messages are being sent, r=florian,ipc-reviewers,mccr8
This will provide us with more information with which to discover what
IPC messages are being sent extremely frequently, especially from
background processes, and what we can do to avoid unnecessary wakeups.

This is intended for power usage work, and is being tracked in a similar
way to the thread wakeups work, based on process types, such that the
data can be compared between the two.

Differential Revision: https://phabricator.services.mozilla.com/D157855
2022-11-29 22:24:31 +00:00
Nika Layzell f001853338 Bug 1799692 - Part 1: Introduce ThreadsafeContentParentHandle, r=asuth
This introduces a new type to ContentParent which acts as a weak handle to the
actor and is safe to hold and manipulate from any thread.

This replaces accesses of the `ContentParent` type from the background thread,
as they were error-prone due to ContentParent not being threadsafe-refcounted.

The bulk of this patch is piping the new type through to the places it is
required, and removing now-unecessary extra complexity.

Differential Revision: https://phabricator.services.mozilla.com/D162346
2022-11-29 20:41:46 +00:00
Nika Layzell 34e62a0d9c Bug 1538028 - Part 2: Track TriggeringRemoteType through nsDocShellLoadState and LoadInfo, r=smaug,ckerschb,necko-reviewers,valentin
This is done using slightly different mechanisms for each of LoadInfo and
nsDocShellLoadState, and will be used in the next part to validate document
loads based on the RemoteType responsible for the load.

For subresource loads, the TriggeringRemoteType is fairly straightforward - it
is the process which created the channel. We can handle this by getting the
current remote type when creating the channel, and then using the remote type
of the sending process when receiving the LoadInfo over IPC to either replace
the triggering remote type, or validate it.

For document loads, the situation is a bit more complex, as there are at least
3 (potentially-)different processes responsible for different parts of the
navigation:

 1. The "Triggering Process" is the process which provided the URI to load.
    This is also the process which provides the Triggering Principal. This is
    the process being tracked in this patch.

 2. The "Loading Process" is the process which actually creates the channel and
    starts the load. This may be the same as the triggering process, or may be
    a different process starting the navigation on behalf of the triggering
    process. In general this is the process hosting the current docshell,
    though it may be the parent process in the case of parent-initiated loads.

 3. The "Final Process" is the process which receives the response and renders
    the final document. This isn't known at channel creation time, and is
    determined by the result principal and process isolation policy.

This change uses a serializer and special field on nsDocShellLoadState to track
the "Triggering Process" for the load, even as the load state is serialized
between processes by tracking which loads were sent into which content
processes, and matching them up when the parent process sees them again. The
information is then copied into the LoadInfo before configuring the real
channel, so it can be used for security checks.

The "Triggering Process" is overridden to be the parent process for history
loads, as history loads are often started in processes which wouldn't normally
be able to navigate to those pages. This is OK thanks to the changes in part 1
which validate history loads against the real session history when SHIP is
enabled.

Differential Revision: https://phabricator.services.mozilla.com/D161198
2022-11-29 20:41:45 +00:00
Kelsey Gilbert 7671a9d5a4 Bug 1801021 - Use BigBuffer for DispatchCommands. r=gfx-reviewers,lsalzman
Using ipc::Shmem causes unbounded shmem use growth until e.g. a Worker
yields to the event loop. If a Worker never yields, Shmems sent to WebGLParent
are never released.

Specifically the manager (PCanvasManager) for WebGLParent calls
DestroySharedMemory, which sends/enqueues for WebGLChild's manager a
matching call to ShmemDestroyed. However, while WebGLChild refuses to spin its
event loop (such as a no-return WASM Worker), the ShmemDestroyed events
will just pile up. Closing e.g. the tab frees the shmems, but they accumulate
unbounded until the Worker yields to the event loop.

This is true for other users of ipc::Shmem (or RaiiShmem) as well, but
entrypoints other than DispatchCommands are rarer and can be handled
later similarly.

Differential Revision: https://phabricator.services.mozilla.com/D162946
2022-11-25 22:20:38 +00:00
Marian-Vasile Laza 04d15c479b Backed out changeset fa04ef087c24 (bug 1801021) for causing bustages on WebGLChild.cpp. CLOSED TREE 2022-11-25 20:38:32 +02:00
Kelsey Gilbert cfebc1bd3c Bug 1801021 - Use BigBuffer for DispatchCommands. r=gfx-reviewers,lsalzman
Using ipc::Shmem causes unbounded shmem use growth until e.g. a Worker
yields to the event loop. If a Worker never yields, Shmems sent to WebGLParent
are never released.

Specifically the manager (PCanvasManager) for WebGLParent calls
DestroySharedMemory, which sends/enqueues for WebGLChild's manager a
matching call to ShmemDestroyed. However, while WebGLChild refuses to spin its
event loop (such as a no-return WASM Worker), the ShmemDestroyed events
will just pile up. Closing e.g. the tab frees the shmems, but they accumulate
unbounded until the Worker yields to the event loop.

This is true for other users of ipc::Shmem (or RaiiShmem) as well, but
entrypoints other than DispatchCommands are rarer and can be handled
later similarly.

Differential Revision: https://phabricator.services.mozilla.com/D162946
2022-11-25 15:46:53 +00:00
Magnus Melin 14fc57b869 Bug 1800033 - mozavcodec and mozavutil should be ifdef MOZ_FFPVX. r=gerard-majax
Differential Revision: https://phabricator.services.mozilla.com/D162654
2022-11-24 09:18:55 +00:00
Noemi Erli 83e66b2826 Backed out changeset 41bebff09700 (bug 1800033) for causing failures in browser_utility_audioDecodeCrash.js CLOSED TREE 2022-11-23 14:31:14 +02:00
Magnus Melin 2ff302c8fa Bug 1800033 - mozavcodec and mozavutil should be ifdef MOZ_FFPVX. r=gerard-majax DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D162654
2022-11-23 09:15:45 +00:00
Dana Keeler 1a2ff46b6e Bug 1791633 - separate nsITLSSocketControl from nsITransportSecurityInfo r=necko-reviewers,kershaw,jschanck
Depends on D160311

Differential Revision: https://phabricator.services.mozilla.com/D160313
2022-11-16 16:37:29 +00:00
Marian-Vasile Laza 9c44d165bb Backed out 3 changesets (bug 1791633) for causing bustages on TransportSecurityInfo.cpp. CLOSED TREE
Backed out changeset 23b864e14db0 (bug 1791633)
Backed out changeset 0bcba3375ec0 (bug 1791633)
Backed out changeset ab0ea0d68f5c (bug 1791633)
2022-11-15 23:51:58 +02:00
Dana Keeler 0a13b94a8f Bug 1791633 - separate nsITLSSocketControl from nsITransportSecurityInfo r=necko-reviewers,kershaw,jschanck
Depends on D160311

Differential Revision: https://phabricator.services.mozilla.com/D160313
2022-11-15 20:03:29 +00:00
Jan Varga 7390297678 Bug 1790207 - Fix the function for comparing storage keys; r=dom-storage-reviewers,jesup,asuth
Differential Revision: https://phabricator.services.mozilla.com/D162089
2022-11-15 17:13:02 +00:00
Jan Varga f40ce49b02 Bug 1790207 - Forward declaration of mozilla::Result in nsIGlobalObject.h and other cleanup; r=dom-storage-reviewers,jesup
Depends on D162087

Differential Revision: https://phabricator.services.mozilla.com/D162088
2022-11-15 17:13:02 +00:00
Randell Jesup 229303901a Bug 1790207: Provide cross-origin security checks for OPFS r=nika,asuth
Differential Revision: https://phabricator.services.mozilla.com/D157892
2022-11-15 17:13:01 +00:00
Butkovits Atila f3f66bf7e5 Backed out 3 changesets (bug 1791633) for causing build bustages at nsHttpConnectionMgr.cpp:. CLOSED TREE
Backed out changeset ee9744982673 (bug 1791633)
Backed out changeset f5a4bfdaba40 (bug 1791633)
Backed out changeset f57131b9cfe2 (bug 1791633)
2022-11-15 08:07:16 +02:00
Dana Keeler a7fbd7a3a0 Bug 1791633 - separate nsITLSSocketControl from nsITransportSecurityInfo r=necko-reviewers,kershaw,jschanck
Depends on D160311

Differential Revision: https://phabricator.services.mozilla.com/D160313
2022-11-15 05:34:40 +00:00
Alexandre Lissy 47ba0361d4 Bug 1800226 - Force enable gtest DisableCrashReporter() on XP_WIN r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D161930
2022-11-14 11:17:09 +00:00
Nicolas Silva a1971c2e74 Bug 1795311 - A new shared memory class with more flexible memory management. r=nika,jld
Differential Revision: https://phabricator.services.mozilla.com/D159398
2022-11-10 15:52:31 +00:00
Cristian Tuns 239d775bde Backed out 2 changesets (bug 1795311) for causing build bustages on WebGPUParent.cpp CLOSED TREE
Backed out changeset 71697f876d88 (bug 1795311)
Backed out changeset 60b9bfda2e8b (bug 1795311)
2022-11-09 11:17:43 -05:00
Nicolas Silva 29b09614fe Bug 1795311 - A new shared memory class with more flexible memory management. r=nika,jld
Differential Revision: https://phabricator.services.mozilla.com/D159398
2022-11-09 14:30:14 +00:00
Alexandre Lissy 12d9aae669 Bug 1797301 - Rework preloading for WMF r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D161440
2022-11-08 18:41:57 +00:00
Alexandre Lissy 7d5a6e7545 Bug 1797301 - Move Utility process to check preloading failures r=nika
Differential Revision: https://phabricator.services.mozilla.com/D160686
2022-11-08 18:41:56 +00:00
Alexandre Lissy 5b97fe29cd Bug 1797301 - Add lib with failure handling r=nika
Differential Revision: https://phabricator.services.mozilla.com/D160685
2022-11-08 18:41:56 +00:00
Cosmin Sabou 0b1543e85d Backed out 3 changesets (bug 1790872) for causing linux build timeouts. CLOSED TREE
Backed out changeset e4a4e7668efb (bug 1790872)
Backed out changeset 99c09dfae9a7 (bug 1790872)
Backed out changeset 15a5a67c1cee (bug 1790872)
2022-11-08 07:34:48 +02:00
Nika Layzell 40c26a2ea0 Bug 1790872 - Part 1: Report glean telemetry about which IPC messages are being sent, r=florian,ipc-reviewers,mccr8
This will provide us with more information with which to discover what
IPC messages are being sent extremely frequently, especially from
background processes, and what we can do to avoid unnecessary wakeups.

This is intended for power usage work, and is being tracked in a similar
way to the thread wakeups work, based on process types, such that the
data can be compared between the two.

Differential Revision: https://phabricator.services.mozilla.com/D157855
2022-11-08 01:11:11 +00:00
Iulian Moraru cf06f2778f Backed out 3 changesets (bug 1790872) for causing build bustages. CLOSED TREE
Backed out changeset 4f712ee19854 (bug 1790872)
Backed out changeset c7a5a591b885 (bug 1790872)
Backed out changeset 575d2e57ab31 (bug 1790872)
2022-11-05 00:18:49 +02:00
Nika Layzell c5f9bbfbdc Bug 1790872 - Part 1: Report glean telemetry about which IPC messages are being sent, r=florian,ipc-reviewers,mccr8
This will provide us with more information with which to discover what
IPC messages are being sent extremely frequently, especially from
background processes, and what we can do to avoid unnecessary wakeups.

This is intended for power usage work, and is being tracked in a similar
way to the thread wakeups work, based on process types, such that the
data can be compared between the two.

Differential Revision: https://phabricator.services.mozilla.com/D157855
2022-11-04 17:02:59 +00:00
Sandor Molnar bbf835c6d5 Backed out 2 changesets (bug 1797301) for causing windows build bustage in mozilla::wmf::MediaFoundationInitializer::HasInitialized() CLOSED TREE
Backed out changeset 2ad5f267bbf2 (bug 1797301)
Backed out changeset 4bb66adab63a (bug 1797301)
2022-11-03 01:13:48 +02:00
Alexandre Lissy c9ac344bd0 Bug 1797301 - Move Utility process to check preloading failures r=nika
Differential Revision: https://phabricator.services.mozilla.com/D160686
2022-11-02 21:29:36 +00:00
Alexandre Lissy 7dd24b84ab Bug 1797301 - Add lib with failure handling r=nika
Differential Revision: https://phabricator.services.mozilla.com/D160685
2022-11-02 21:29:35 +00:00
Jeff Muizelaar e63cdeb5e9 Bug 1798600 - Use Created() during creation instead of Mapped(). r=nika
This is less of lie and avoids calling Mapped() twice. Once during
SharedMemoryBasic::Create and once during SharedMemoryBasic::Map.

This fixes shmem-mapped giving the appearence of leaking because
of the double counting.

Differential Revision: https://phabricator.services.mozilla.com/D160990
2022-11-02 19:27:49 +00:00
Bobby Holley e8d791fac7 Bug 1797020 - Add an API to determine if there are any midi devices. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D160974
2022-11-02 17:35:51 +00:00
Sandor Molnar 9b37cccb99 Backed out 2 changesets (bug 1797301) for causing bp-hybrid bustages in ipc/glue/test/gtest/TestUtils.h
Backed out changeset 7268493e86bd (bug 1797301)
Backed out changeset 4f523653d387 (bug 1797301)
2022-11-02 21:04:14 +02:00
Alexandre Lissy 81d94ff7ed Bug 1797301 - Move Utility process to check preloading failures r=nika
Differential Revision: https://phabricator.services.mozilla.com/D160686
2022-11-02 16:06:37 +00:00
Alexandre Lissy 36a553ccd5 Bug 1797301 - Add lib with failure handling r=nika
Differential Revision: https://phabricator.services.mozilla.com/D160685
2022-11-02 16:06:37 +00:00
Stanca Serban 344193e4bd Backed out 2 changesets (bug 1797301) for causing Bp-Hybrid bustages. CLOSED TREE
Backed out changeset 2552990ed77e (bug 1797301)
Backed out changeset 147777c37f57 (bug 1797301)
2022-11-02 15:34:39 +02:00
Alexandre Lissy 994d8a149b Bug 1797301 - Move Utility process to check preloading failures r=nika
Differential Revision: https://phabricator.services.mozilla.com/D160686
2022-11-02 09:54:54 +00:00
Alexandre Lissy 5c49227af4 Bug 1797301 - Add lib with failure handling r=nika
Differential Revision: https://phabricator.services.mozilla.com/D160685
2022-11-02 09:54:53 +00:00
Jens Stutte 48c751b622 Bug 1797688 - Part 7: Substitute gXPCOMThreadsShutDown with InOrBeyond checks in IdleSchedulerParent. r=xpcom-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D160625
2022-11-01 14:08:45 +00:00
Valentin Gosu 00b54695c2 Bug 1793521 - Handle RHEntryInfoToRHEntry returning nullptr in BackgroundUtils.cpp r=ckerschb,freddyb
It seems RHEntryInfoToRHEntry may sometimes fail because deserializing the
principal fails. However, in this case `NS_ENSURE_SUCCESS(rv, rv);` does
nothing and is probably just a left-over from a refactoring.

If we don't bail early we may wind up with a nullptr in the redirectHistory
chain, which is most unexpected.

Differential Revision: https://phabricator.services.mozilla.com/D159373
2022-11-01 09:50:17 +00:00
Alexandre Lissy 2d00f7d25f Bug 1798017 - Only run AsyncBlockers death test on builds where MOZ_ASSERT crashes r=nika
Differential Revision: https://phabricator.services.mozilla.com/D160672
2022-10-29 10:48:08 +00:00