Commit Graph

2337 Commits

Author SHA1 Message Date
Fatih Kilic
73f4f01465 Bug 1939881: Implement RFPTargetBits and replace appropriate uses. r=tjr
This is a huge patch, but it is only really refactoring of RFPTarget enum. We used to use RFPTarget as a bitset and now we ran out of bits, so now we need a workaround.

Differential Revision: https://phabricator.services.mozilla.com/D233182
2025-01-23 14:49:44 +00:00
Jens Stutte
706548fa4f Bug 1745056 - Make PermissionManager lifecycle truely thread safe. r=asuth,cookie-reviewers,anti-tracking-reviewers,permissions-reviewers,valentin,timhuang
This patch makes PermissionManager::GetInstance do the instantiation
work and GetXPCOMSingleton just uses it.
We always acquire the creation mutex and return an already_AddRefed to
avoid any possible race. We count on callers of GetInstance to
(shortly) keep a local reference if they have more work to do.
On async shutdown in the parent process, we first mark our singleton
dead, then close all our resources async and finally null our instance
holder only after the async shutdown has finished.

Differential Revision: https://phabricator.services.mozilla.com/D233816
2025-01-15 17:00:25 +00:00
Jonathan Kew
94e6ecd618 Bug 1935149 - Streamline IPC messaging related to font-list updates. r=layout-reviewers,emilio
Differential Revision: https://phabricator.services.mozilla.com/D232151
2025-01-13 11:36:26 +00:00
Nika Layzell
ac4b55ed1e Bug 1936917 - Reduce severity of error returned for sync IPC to a dead actor, r=ipc-reviewers,mccr8,media-playback-reviewers,win-reviewers,decoder,aosmond,rkraesig
This patch changes the error returned when dispatching sync IPC to a
dead actor from a `MsgRouteError` error (which is handled as fatal in
most error handlers) to a `MsgDropped` error (which is generally
non-fatal).

This is intended to reflect the effective outcome of the change, which
is that the message is dropped due to the peer actor being dead.

This also removes the `MsgRouteError` error type as it has been fully
replaced by `MsgDropped`. The final use-case of `MsgRouteError` has been
replaced by a normal assertion, as it cannot be triggered by the IPC
layer.

Differential Revision: https://phabricator.services.mozilla.com/D232114
2024-12-18 18:28:24 +00:00
Cristina Horotan
f276b6c87f Backed out changeset e1a2b6301950 (bug 1935149) for causing multiple mochitest failures. CLOSED TREE 2024-12-18 01:19:27 +02:00
Jonathan Kew
cb05ddd7b6 Bug 1935149 - Streamline IPC messaging related to font-list updates. r=layout-reviewers,emilio
Merge the FontListChanged message sent by the parent when the list is updated
with the more general ForceGlobalReflow. Avoid forcing an update from the
InitOtherFamilyNames task if there is also a LoadCmaps operation in progress;
just ensure it will include the NeedsReframe flag in its message instead.

This should not change observable behavior, but aims to reduce the risk of
font data updates resulting in redundant multiple reflows.

Differential Revision: https://phabricator.services.mozilla.com/D232151
2024-12-17 15:23:56 +00:00
Paul Bone
afdf8c6f12 Bug 1928237 - Don't assert mozjemalloc read the env in ubsan builds r=gerard-majax
Differential Revision: https://phabricator.services.mozilla.com/D230219
2024-12-15 23:01:15 +00:00
Andrew McCreight
b3623f30a2 Bug 1931877, part 2 - Replace 2 arg MOZ_DIAGNOSTIC_ASSERT(false) with MOZ_DIAGNOSTIC_CRASH. r=necko-reviewers,win-reviewers,glandium,rkraesig,valentin
Differential Revision: https://phabricator.services.mozilla.com/D229361
2024-11-20 16:37:50 +00:00
Kagami Sascha Rosylight
98932aaeea Bug 1931497 - Part 8: Remove parent process ping in PContent and nsAlertsService r=asuth
This should now go through PNotification. The whole cookie thing can now go away which will be done in a followup.

Differential Revision: https://phabricator.services.mozilla.com/D218627
2024-11-19 15:32:20 +00:00
edgul
85ec4b2f71 Bug 1889988 - Added remote settings input to defaultUri bypass list r=necko-reviewers,valentin,nika,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D207810
2024-10-23 18:30:26 +00:00
Cosmin Sabou
fb8ed59785 Backed out 2 changesets (bug 1889988) for xpcshell failures on test_getPasswordOrigin. CLOSED TREE
Backed out changeset db199aeaafd8 (bug 1889988)
Backed out changeset 360a3d2b1200 (bug 1889988)
2024-10-23 04:10:04 +03:00
edgul
ff53f4b320 Bug 1889988 - Added remote settings input to defaultUri bypass list r=necko-reviewers,valentin,nika,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D207810
2024-10-22 20:31:40 +00:00
Emilio Cobos Álvarez
15773198c4 Bug 1925409 - Allow creating windows for printing even with coop. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D226466
2024-10-22 19:00:49 +00:00
Alex Franchuk
028c64fb69 Bug 1454816 - Replace uses of base::SharedMemory r=ipc-reviewers,media-playback-reviewers,padenot,nika
Differential Revision: https://phabricator.services.mozilla.com/D224153
2024-10-21 18:43:25 +00:00
Sandor Molnar
abe7f841ca Backed out 4 changesets (bug 1454816) for causing build bustages. CLOSED TREE
Backed out changeset 3e8d2c47138c (bug 1454816)
Backed out changeset 80ff20241831 (bug 1454816)
Backed out changeset 28c2d6d2a683 (bug 1454816)
Backed out changeset 236943ab4142 (bug 1454816)
2024-10-21 20:15:13 +03:00
Alex Franchuk
d60af44cea Bug 1454816 - Replace uses of base::SharedMemory r=ipc-reviewers,media-playback-reviewers,padenot,nika
Differential Revision: https://phabricator.services.mozilla.com/D224153
2024-10-21 13:08:44 +00:00
Alexandre Lissy
57c41b8c56 Bug 1925181 - Properly set small alloc randomization on Android content processes as well r=jld
Differential Revision: https://phabricator.services.mozilla.com/D226135
2024-10-21 06:05:44 +00:00
Alexandre Lissy
46eb50856f Bug 1917844 - Assert correct jemalloc randomization state on Content and non Content processes r=jld,glandium
Differential Revision: https://phabricator.services.mozilla.com/D221971
2024-10-21 06:05:43 +00:00
Butkovits Atila
0f3a88d758 Backed out 8 changesets (bug 1918596, bug 1917575, bug 1874689, bug 1925181, bug 1917844, bug 1925274, bug 1915152) for causing failures at Sandbox.cpp. CLOSED TREE
Backed out changeset ce2138248319 (bug 1874689)
Backed out changeset fbe9fbb6ae72 (bug 1925181)
Backed out changeset c9896c8962cb (bug 1925274)
Backed out changeset 6eddbad5949c (bug 1918596)
Backed out changeset b9bf86fa1c74 (bug 1917844)
Backed out changeset 1d4cd83d1a39 (bug 1917844)
Backed out changeset 264a5140fbcb (bug 1917575)
Backed out changeset 87b8512c67c9 (bug 1915152)
2024-10-19 23:27:56 +03:00
Alexandre Lissy
9b90aefd0f Bug 1925181 - Properly set small alloc randomization on Android content processes as well r=jld
Differential Revision: https://phabricator.services.mozilla.com/D226135
2024-10-19 08:55:34 +00:00
Alexandre Lissy
ddc8726c88 Bug 1917844 - Assert correct jemalloc randomization state on Content and non Content processes r=jld,glandium
Differential Revision: https://phabricator.services.mozilla.com/D221971
2024-10-19 08:55:32 +00:00
Cristina Horotan
9b33881471 Backed out 4 changesets (bug 1454816) for causing build bustages at nsIStringBundle.h CLOSED TREE
Backed out changeset bed340babebd (bug 1454816)
Backed out changeset f7499fb49eb0 (bug 1454816)
Backed out changeset 9a82c5828c53 (bug 1454816)
Backed out changeset efe7bc48a16d (bug 1454816)
2024-10-18 23:41:27 +03:00
Alex Franchuk
a8de347355 Bug 1454816 - Replace uses of base::SharedMemory r=ipc-reviewers,media-playback-reviewers,padenot,nika
Differential Revision: https://phabricator.services.mozilla.com/D224153
2024-10-18 16:58:45 +00:00
Adi
b9802f791a Backed out 6 changesets (bug 1918596, bug 1915152, bug 1917844, bug 1917575, bug 1874689) for causing valgrind bustages. CLOSED TREE
Backed out changeset b7f977ce6ea0 (bug 1874689)
Backed out changeset e9ccbb43f903 (bug 1918596)
Backed out changeset 39bf07957c07 (bug 1917844)
Backed out changeset 61d1c38cc516 (bug 1917844)
Backed out changeset 2a9a2bca99ce (bug 1917575)
Backed out changeset dab1b77688b2 (bug 1915152)
2024-10-17 14:56:41 +03:00
Alexandre Lissy
0031fe397d Bug 1917844 - Assert correct jemalloc randomization state on Content and non Content processes r=jld,glandium
Differential Revision: https://phabricator.services.mozilla.com/D221971
2024-10-17 06:29:54 +00:00
Cosmin Sabou
d1b22b68ad Backed out 6 changesets (bug 1917575, bug 1917844, bug 1874689, bug 1918596, bug 1915152) for causing ContentChild crashes. CLOSED TREE
Backed out changeset d6dc6d8085b5 (bug 1874689)
Backed out changeset 8c3916995be2 (bug 1918596)
Backed out changeset f77e369d1e0f (bug 1917844)
Backed out changeset 3bee9479316a (bug 1917844)
Backed out changeset 5c72e4a84a2c (bug 1917575)
Backed out changeset af3350e58b0a (bug 1915152)
2024-10-17 00:51:07 +03:00
Alexandre Lissy
7af8ad1bff Bug 1917844 - Assert correct jemalloc randomization state on Content and non Content processes r=jld,glandium
Differential Revision: https://phabricator.services.mozilla.com/D221971
2024-10-16 20:10:55 +00:00
Paul Zuehlcke
40853e1550 Bug 1915419 - ImageCacheCleaner support for OriginAttributesPattern. r=tnikkel,anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D221322
2024-09-24 09:18:00 +00:00
Paul Zuehlcke
6b444aace4 Bug 1915419 - CSSCacheCleaner, JSCacheCleaner support for OriginAttributesPattern. r=emilio,anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220713
2024-09-24 09:17:59 +00:00
Butkovits Atila
d779b4bd81 Backed out 12 changesets (bug 1915419) for causing failures at test_bouncetracking_purge.js. CLOSED TREE
Backed out changeset e5c32a502e0f (bug 1915419)
Backed out changeset 8cbcbb25fc99 (bug 1915419)
Backed out changeset 947379a2f167 (bug 1915419)
Backed out changeset 4cfe3a954ade (bug 1915419)
Backed out changeset 94fba1a2786b (bug 1915419)
Backed out changeset 477b4f7c2760 (bug 1915419)
Backed out changeset ed6c8d9d39d4 (bug 1915419)
Backed out changeset e534c390101c (bug 1915419)
Backed out changeset bc3fe74a8b03 (bug 1915419)
Backed out changeset afefdce605f9 (bug 1915419)
Backed out changeset e58887b90d39 (bug 1915419)
Backed out changeset 114298b7b855 (bug 1915419)
2024-09-18 17:49:45 +03:00
Paul Zuehlcke
e89f3d5de3 Bug 1915419 - ImageCacheCleaner support for OriginAttributesPattern. r=tnikkel,anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D221322
2024-09-18 12:50:45 +00:00
Paul Zuehlcke
8e4cb9c9fe Bug 1915419 - CSSCacheCleaner, JSCacheCleaner support for OriginAttributesPattern. r=emilio,anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220713
2024-09-18 12:50:45 +00:00
Norisz Fay
d2360aaab4 Backed out 12 changesets (bug 1915419) for causing clearDataFromBaseDomain related gv-junit failures CLOSED TREE
Backed out changeset 6baf34e653ef (bug 1915419)
Backed out changeset 3015863afd5d (bug 1915419)
Backed out changeset 90558f317a75 (bug 1915419)
Backed out changeset 5f07cb9268dd (bug 1915419)
Backed out changeset aedba16d4af7 (bug 1915419)
Backed out changeset d9a2d5c2ba53 (bug 1915419)
Backed out changeset 4a250c451004 (bug 1915419)
Backed out changeset c6da2e632da6 (bug 1915419)
Backed out changeset 9256540ed21a (bug 1915419)
Backed out changeset 7621d766d6a4 (bug 1915419)
Backed out changeset 16d6589ba330 (bug 1915419)
Backed out changeset b3eebd764439 (bug 1915419)
2024-09-16 18:29:55 +03:00
Paul Zuehlcke
815ddcfaa6 Bug 1915419 - ImageCacheCleaner support for OriginAttributesPattern. r=tnikkel,anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D221322
2024-09-16 13:25:32 +00:00
Paul Zuehlcke
2ac59307af Bug 1915419 - CSSCacheCleaner, JSCacheCleaner support for OriginAttributesPattern. r=emilio,anti-tracking-reviewers,timhuang
Differential Revision: https://phabricator.services.mozilla.com/D220713
2024-09-16 13:25:32 +00:00
Nathan LaPre
85ad293bff Bug 1794974: Part 2: Add ability to query and send individual cache domains, r=Jamie
This revision adds the capability of querying and sending information about
individual cache domains. It introduces the concept of active cache domains to
the accessibility service: cache domains that we think clients need. Conversely,
cache domains that clients don't need are inactive, and we avoid doing any work
to push information about those domains. This revision adds an IPC mechanism for
setting cache domains. It adds a way for content process documents to enable,
gather, and send to the parent process information from all of their accessibles
that's newly needed. It adds a way to instantiate new accessibility services
with a predetermined set of cache domains. It adds a mechanism for local accs to
use in BundleFieldsForCache, but doesn't implement it yet (see next revision).

Differential Revision: https://phabricator.services.mozilla.com/D220036
2024-09-09 23:02:19 +00:00
Yannis Juglaret
46049955a2 Bug 1914602 - Stop preloading Mozilla DLLs for WMF software encoding in content process. r=bobowen
We currently preload these DLLs in all content processes, which
presumably has some performance impact. We did this in bug 1910861 to
mitigate the crashes with ESET from bug 1905690 - but ESET has since
then pushed new changes that perhaps will fix the crashes. If not, we
want to mitigate the crashes in another way that does not involve
preloading the DLLs in all content processes. Preloading is not required
even with sandbox level 8, because we already allow access to the bin
dir anyway.

Differential Revision: https://phabricator.services.mozilla.com/D219961
2024-08-23 14:10:37 +00:00
Bob Owen
49b42b0c4d Bug 1912481 p2: Give read access to the Windows system binary dir. r=handyman
This is to allow Windows DLLs that are not used in all content processes to load
later if they are required.

Differential Revision: https://phabricator.services.mozilla.com/D218964
2024-08-22 09:16:38 +00:00
Nika Layzell
112fcb23c7 Bug 1908725 - Part 4: Switch some basic uses of OtherPid over to OtherChildID, r=smaug
There are many other uses of OtherPid which could be switched over to
OtherChildID, but these were a couple of obvious low-hanging fruit use-cases
which will work better when using OtherChildID.

Differential Revision: https://phabricator.services.mozilla.com/D217120
2024-08-07 20:39:40 +00:00
Nika Layzell
2616e2f273 Bug 1908725 - Part 3: Use GeckoChildID as the value for ContentParentId, r=smaug,ipc-reviewers,mccr8
The type for ContentParentId is uint64_t, however only at most 22 bits
are allowed to be used (as it is used in the high bits of nsContentUtils
process-specific IDs, which need to fit within a JS double). Switching to use
the same existing ChildID reduces the risk of confusion, but this patch doesn't
attempt to update the types used for ContentParentId/ChildID to match
GeckoChildID.

In the future, we probably will want to align these types more closely, and
perhaps de-duplicate some code which currently passes around both.

Differential Revision: https://phabricator.services.mozilla.com/D217119
2024-08-07 20:39:40 +00:00
Emilio Cobos Álvarez
77c40caac6 Bug 1910698 - Remove nsIScriptError.sourceLine. r=smaug,devtools-reviewers,webdriver-reviewers,necko-reviewers,nchevobbe,kershaw,jdescottes,credential-management-reviewers,dimi
Afaict the source lines are not exposed anywhere in the UI.

Differential Revision: https://phabricator.services.mozilla.com/D218115
2024-08-01 17:12:48 +00:00
Yannis Juglaret
d93f30d30d Bug 1910861 - Preload Mozilla libraries in content processes again. r=gstoll,win-reviewers
This patch restores previous behavior where we were preloading
mozavcodec.dll and mozavutil.dll in content processes. This will allow
us to confirm the hypothesis that this preloading would let third-party
software to discover our DLLs earlier after an update, and thereby
mitigate the later crashes from bug 1905690.

Differential Revision: https://phabricator.services.mozilla.com/D218186
2024-08-01 06:53:30 +00:00
Greg Stoll
453e8955fc Bug 1907466 - make some thread-safety changes for clipboard content analysis r=nika,dlp-reviewers,handyman
Differential Revision: https://phabricator.services.mozilla.com/D216608
2024-07-19 19:49:52 +00:00
Tooru Fujisawa
c16e6f797c Bug 1896709 - Part 11: Add PContent::ClearScriptCache. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D215880
2024-07-18 21:58:13 +00:00
Norisz Fay
471367226c Backed out 17 changesets (bug 1896709) for causing build bustage and mochitest failures CLOSED TREE
Backed out changeset 046f0f522ce7 (bug 1896709)
Backed out changeset 0271e50308e6 (bug 1896709)
Backed out changeset 26fac760de19 (bug 1896709)
Backed out changeset 6fa3424dfc40 (bug 1896709)
Backed out changeset b7bcb9904435 (bug 1896709)
Backed out changeset c6878c5fdde4 (bug 1896709)
Backed out changeset 8ca8a4082e44 (bug 1896709)
Backed out changeset 20ff83806cc6 (bug 1896709)
Backed out changeset 6c9338852a19 (bug 1896709)
Backed out changeset e8615b5d82ab (bug 1896709)
Backed out changeset 842f2047a4bd (bug 1896709)
Backed out changeset 54eea04a7342 (bug 1896709)
Backed out changeset 220b544127cb (bug 1896709)
Backed out changeset 52ce0ebfb29a (bug 1896709)
Backed out changeset 34fc79dc1ad7 (bug 1896709)
Backed out changeset 50b0f6a23e3c (bug 1896709)
Backed out changeset 89c4c6bb465a (bug 1896709)
2024-07-18 14:48:46 +03:00
Tooru Fujisawa
868639d538 Bug 1896709 - Part 11: Add PContent::ClearScriptCache. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D215880
2024-07-18 09:15:27 +00:00
Tarek Ziadé
e79c3b1bf8 Bug 1905599 - Add a new remote type inference r=smaug,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D215476
2024-07-08 06:44:32 +00:00
David P
c32e8a504a Bug 1893119: Part 16 - Make nsBaseDragService weakly remember PBrowsers instead of PContents r=nika,win-reviewers,rkraesig
nsBaseDragService keeps track of the processes that might need to cancel a drag with EndDragSession and this is technically correct since the drag session is a singleton in the child process, but this series of patches changes those sessions to be per-PuppetWidget/BrowserChild.  This allows content processes to distinguish which of its browsers is engaged in a drag.

Differential Revision: https://phabricator.services.mozilla.com/D211062
2024-07-04 07:48:09 +00:00
David Parks
f62a3a2577 Bug 1893119: Part 14 - Move SetDragEndPoint from nsBaseDragService to nsIDragSession r=gstoll,rkraesig,win-reviewers,geckoview-reviewers,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D211078
2024-07-04 07:48:08 +00:00
David P
805b8742ba Bug 1893119: Part 3 - Add widget to nsContentUtils::GetDragSession r=gstoll,rkraesig
Updates each client of the nsContentUtils method to get the right drag session -- the one for the widget that is currently the source or target of the drag session.
The change to nsDOMWindowUtils::DispatchDOMEventViaPresShellForTesting() supports the change to WidgetDragEvent::InitDropEffectForTests() and enabled a
large number of test fixes in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D211067
2024-07-04 07:48:04 +00:00