Commit graph

3338 commits

Author SHA1 Message Date
Nika Layzell
524e4f032a Bug 1681457 - Allow non-auxiliary BrowsingContexts created by script to close themselves, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D211792
2024-06-05 00:06:48 +00:00
Jens Stutte
448dee9132 Bug 1711734 - Add a more explicit IPC_FAIL case for discarded parent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D212112
2024-05-30 16:55:19 +00:00
Cristian Tuns
fc392b89ab Backed out changeset 9b708a1dc402 (bug 1890748) for causing bc failures in browser_permission_delegate_geo.js CLOSED TREE 2024-05-27 12:25:10 -04:00
Andreas Farre
ec8d5be38a Bug 1890748 - Move responsibility of FeaturePolicy initialization to nsILoadInfo. r=freddyb,necko-reviewers,jesup,dom-core,sefeng
Differential Revision: https://phabricator.services.mozilla.com/D207140
2024-05-27 10:06:58 +00:00
Butkovits Atila
f967675ec8 Backed out changeset a710fd347db2 (bug 1890748) for causing bustages at Document.cpp. CLOSED TREE 2024-05-24 18:06:30 +03:00
Andreas Farre
031a90d97c Bug 1890748 - Move responsibility of FeaturePolicy initialization to nsILoadInfo. r=freddyb,necko-reviewers,jesup,dom-core,sefeng
Differential Revision: https://phabricator.services.mozilla.com/D207140
2024-05-24 14:28:47 +00:00
Paul Bone
532849a1b0 Bug 1897060 - Gather process lifetime telemetry r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D210751
2024-05-18 02:05:50 +00:00
Jamie Nicol
0056a7ee56 Bug 1880503 - Generate paired minidump when GPU process is killed following IPC timeout. r=aosmond,gsvelto
When sync IPC under the top-level PCompositorManager protocol does not
reply within a certain time threshold we purposefully kill the GPU
process. While this allows the user to recover from a stuck GPU
process, we have little visibility about the underlying cause.

This patch makes it so that we generate a paired minidump for the GPU
and parent processes prior to killing the GPU process in
GPUProcessHost::KillHard(). The implementation roughly follows the
equivalent for content processes in ContentParent::KillHard().

As the GPU process can be purposefully killed during normal operation,
and because generating minidumps can be expensive, we are careful to
only do so when the new argument aGenerateMinidump is true. We
additionally remove the aReason argument as it is unused (and
currently innacurate in some places).

As these minidumps may not automatically submitted we limit the
minidumps generation to twice per session in order to avoid
accumulating a large number of unsubmitted minidumps on disk.

Differential Revision: https://phabricator.services.mozilla.com/D202166
2024-05-14 12:58:35 +00:00
Stanca Serban
ad459e5cb0 Backed out 3 changesets (bug 1880503) for causing build bustages in nsCOMPtr.h. CLOSED TREE
Backed out changeset 437063345a7b (bug 1880503)
Backed out changeset 9665aa5e821d (bug 1880503)
Backed out changeset 44d08ce97ae6 (bug 1880503)
2024-05-13 21:08:49 +03:00
Jamie Nicol
6e07140f91 Bug 1880503 - Generate paired minidump when GPU process is killed following IPC timeout. r=aosmond,gsvelto
When sync IPC under the top-level PCompositorManager protocol does not
reply within a certain time threshold we purposefully kill the GPU
process. While this allows the user to recover from a stuck GPU
process, we have little visibility about the underlying cause.

This patch makes it so that we generate a paired minidump for the GPU
and parent processes prior to killing the GPU process in
GPUProcessHost::KillHard(). The implementation roughly follows the
equivalent for content processes in ContentParent::KillHard().

As the GPU process can be purposefully killed during normal operation,
and because generating minidumps can be expensive, we are careful to
only do so when the new argument aGenerateMinidump is true. We
additionally remove the aReason argument as it is unused (and
currently innacurate in some places).

As these minidumps may not automatically submitted we limit the
minidumps generation to twice per session in order to avoid
accumulating a large number of unsubmitted minidumps on disk.

Differential Revision: https://phabricator.services.mozilla.com/D202166
2024-05-13 16:52:12 +00:00
Denis Palmeiro
2eabcf1774 Bug 1892231: Add a flag to the page load event indicating whether a webdriver is running. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D207992
2024-05-09 14:42:16 +00:00
Emilio Cobos Álvarez
8bb4e85b36 Bug 1848899 - Remove widget.non-native-theme.enabled. r=desktop-theme-reviewers,dao,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D209537
2024-05-07 08:32:14 +00:00
Norisz Fay
388713c6ce Backed out changeset 9500b79c1ab4 (bug 1848899) for causing failures on test_bug869314.html CLOSED TREE 2024-05-07 06:13:38 +03:00
Emilio Cobos Álvarez
e3d5cf0e8e Bug 1848899 - Remove widget.non-native-theme.enabled. r=desktop-theme-reviewers,dao,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D209537
2024-05-06 20:44:34 +00:00
az
9634338bbc Bug 1889129 - Remove Android codec support probe from content process initialization r=jolin
Differential Revision: https://phabricator.services.mozilla.com/D209177
2024-05-06 19:30:28 +00:00
Edgar Chen
5686155143 Bug 1892976 - Propagate the error returned by nsIClipboard::GetData() over IPC; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D208127
2024-05-01 20:49:09 +00:00
Nerixyz
b171576313 Bug 1887128 - Guess position state from media elements. r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D204691
2024-04-29 17:41:10 +00:00
Michael van Straten
6630085965 Bug 1891804 - Fix clang-tidy lints in /dom/ipc/ContentParent.{h,cpp} r=nika
Differential Revision: https://phabricator.services.mozilla.com/D207699
2024-04-25 15:30:46 +00:00
Michael van Straten
4e05b27bb0 Bug 1891802 - Fix naming inconsistencies in PContent r=nika
Differential Revision: https://phabricator.services.mozilla.com/D207625
2024-04-25 15:27:49 +00:00
Edgar Chen
2bcc67692b Bug 1781280 - Reuse IPCImage for IPCDataTransferImageContainer; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D208074
2024-04-22 19:09:47 +00:00
Nika Layzell
f79948a5d0 Bug 1724083 - Part 2: Update Actor destruction checks for new manager list behaviour, r=ipc-reviewers,mccr8
After the changes in the previous part, actors are now removed from their
manager's managed list before invoking ActorDestroy. There were a few places in
tree which specifically checked for the old behaviour, due to calls from the
managed actor during ActorDestroy to potentially trigger clean-up.

This patch adjusts these checks to instead expect a count of `0` as the actor
will now already have been removed at that point.

Differential Revision: https://phabricator.services.mozilla.com/D198841
2024-04-22 17:31:06 +00:00
Nika Layzell
9ee77f6ae1 Bug 1724083 - Part 1: Rework ActorDestroy logic to be more resilient to nested event loops, r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D198840
2024-04-22 17:31:06 +00:00
Edgar Chen
77d9d637a6 Bug 1867636 - Rename nsITransferable::requestingPrincipal; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D207272
2024-04-18 10:06:07 +00:00
Greg Stoll
37d28f9cf5 Bug 1869868 part 2 - do not consult DLP when copy/pasting items in the same tab r=edgar,dlp-reviewers,credential-management-reviewers,handyman,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D205744
2024-04-15 12:10:46 +00:00
Sean Feng
e97d5f8a3e Bug 1884870: Clear ancestors' focus when child document loses the focus r=hsivonen,dom-core
Differential Revision: https://phabricator.services.mozilla.com/D205135
2024-03-27 20:48:28 +00:00
Gregory Pappas
8a0d018662 Bug 1887230 - Remove unused child-process-shutdown message r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D205509
2024-03-25 15:46:32 +00:00
unknown
c2f36e9b38 Bug 1885246 - Replace PlainOldDataSerializer with ParamTraits_TiedFields, except for gfx/vr and gfx/layers/wr. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D204567
2024-03-23 01:06:45 +00:00
Cristian Tuns
ddbddee3ca Backed out changeset ebc075fd132d (bug 1885246) for causing bc failures in /EnumSerializer.h CLOSED TREE 2024-03-23 02:08:24 -04:00
unknown
941fa870d7 Bug 1885246 - Replace PlainOldDataSerializer with ParamTraits_TiedFields, except for gfx/vr and gfx/layers/wr. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D204567
2024-03-23 01:06:45 +00:00
Tom Ritter
06692a4fe7 Bug 1886922: Do not dereference a Maybe if it is not Some r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D205409
2024-03-22 15:32:39 +00:00
Iulian Moraru
2099cdafe7 Backed out changeset 1e8b7f3addc7 (bug 1885246) for causing non-unified build bustages on TCPSocket.cpp. CLOSED TREE 2024-03-21 17:53:50 +02:00
unknown
0bb02f8f0f Bug 1885246 - Replace PlainOldDataSerializer with ParamTraits_TiedFields, except for gfx/vr and gfx/layers/wr. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D204567
2024-03-21 14:04:04 +00:00
Narcis Beleuzu
4c5db927ba Backed out changeset 98564ffc07ca (bug 1885246) for bustages on WebGLIpdl.h 2024-03-20 04:26:20 +02:00
unknown
44a0c5fe34 Bug 1885246 - Replace PlainOldDataSerializer with ParamTraits_TiedFields, except for gfx/vr and gfx/layers/wr. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D204567
2024-03-20 01:56:09 +00:00
Tom Ritter
21cca9c7c4 Bug 1884732: Log JSActor messages with MMPrinter r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D204677
2024-03-19 18:58:16 +00:00
Mika Valkealahti
b3a7aa69b7 Bug 1879304 - Renaming functions and renaming comments mentions related to them r=necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D204850
2024-03-18 08:36:33 +00:00
Edgar Chen
fdaf5ca11a Bug 1858627 - Update DataTransfer to utilize GetDataSnapshotSync() for retrieving clipboard formats; r=nika,ipc-reviewers
The actual data retrieval continues to use the original method.

Differential Revision: https://phabricator.services.mozilla.com/D202351
2024-03-13 20:44:06 +00:00
Edgar Chen
239696f93b Bug 1858627 - Add nsIClipboard API to return nsIAsyncSetClipboardData synchrously; r=ipc-reviewers,nika
This is a sync version of `nsIClipboard.asyncGetData`, which can be used for
synchronous clipboard APIs, e.g. DataTransfer, to support the clipboard seqence
number concept, see bug 1879401.

Differential Revision: https://phabricator.services.mozilla.com/D201364
2024-03-13 20:44:06 +00:00
Edgar Chen
671c3b21b5 Bug 1858627 - Use ManagedEndpoint for PClipboardReadRequest construction; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D201657
2024-03-13 20:44:06 +00:00
Cristian Tuns
6169ac57de Backed out 8 changesets (bug 1081542) for causing Bug 1885050
Backed out changeset 38614c34e575 (bug 1081542)
Backed out changeset 7571e95ed78c (bug 1081542)
Backed out changeset 29f139450ccc (bug 1081542)
Backed out changeset 058d5712354b (bug 1081542)
Backed out changeset 7f46e8820023 (bug 1081542)
Backed out changeset d29d7e9c38bd (bug 1081542)
Backed out changeset 0a6b3d90e636 (bug 1081542)
Backed out changeset 27dae926668f (bug 1081542)
2024-03-13 06:15:27 -04:00
Cristian Tuns
d5255e21a3 Backed out 4 changesets (bug 1858627) for causing build bustages with "-p style --lib" CLOSED TREE
Backed out changeset 7f3f50c77406 (bug 1858627)
Backed out changeset 96327aab8126 (bug 1858627)
Backed out changeset 0655d0feb163 (bug 1858627)
Backed out changeset d3a1b3ac7611 (bug 1858627)
2024-03-13 05:23:51 -04:00
Edgar Chen
bd32efe14b Bug 1858627 - Update DataTransfer to utilize GetDataSnapshotSync() for retrieving clipboard formats; r=nika,ipc-reviewers
The actual data retrieval continues to use the original method.

Depends on D201364

Differential Revision: https://phabricator.services.mozilla.com/D202351
2024-03-13 01:07:17 +00:00
Edgar Chen
a14b5b8d7f Bug 1858627 - Add nsIClipboard API to return nsIAsyncSetClipboardData synchrously; r=ipc-reviewers,nika
This is a sync version of `nsIClipboard.asyncGetData`, which can be used for
synchronous clipboard APIs, e.g. DataTransfer, to support the clipboard seqence
number concept, see bug 1879401.

Depends on D201657

Differential Revision: https://phabricator.services.mozilla.com/D201364
2024-03-13 01:07:17 +00:00
Edgar Chen
5c139ae15f Bug 1858627 - Use ManagedEndpoint for PClipboardReadRequest construction; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D201657
2024-03-13 01:07:16 +00:00
Norisz Fay
cb12fbf3c2 Backed out 4 changesets (bug 1858627) for causing build bustage CLOSED TREE
Backed out changeset eaf5e6b7ddd4 (bug 1858627)
Backed out changeset 9efc1874ac78 (bug 1858627)
Backed out changeset 8f4ca2ab875b (bug 1858627)
Backed out changeset 02f94f12c3ef (bug 1858627)
2024-03-13 01:47:31 +02:00
Edgar Chen
66690f5f98 Bug 1858627 - Update DataTransfer to utilize GetDataSnapshotSync() for retrieving clipboard formats; r=nika,ipc-reviewers
The actual data retrieval continues to use the original method.

Depends on D201364

Differential Revision: https://phabricator.services.mozilla.com/D202351
2024-03-12 21:51:53 +00:00
Edgar Chen
daca613d2e Bug 1858627 - Add nsIClipboard API to return nsIAsyncSetClipboardData synchrously; r=ipc-reviewers,nika
This is a sync version of `nsIClipboard.asyncGetData`, which can be used for
synchronous clipboard APIs, e.g. DataTransfer, to support the clipboard seqence
number concept, see bug 1879401.

Depends on D201657

Differential Revision: https://phabricator.services.mozilla.com/D201364
2024-03-12 21:51:53 +00:00
Edgar Chen
095c6aa3f6 Bug 1858627 - Use ManagedEndpoint for PClipboardReadRequest construction; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D201657
2024-03-12 21:51:52 +00:00
kriswright
177b0c2154 Bug 1876306 - Signal to content processes shutting down to raise the QoS priority of their main thread, then ignore all other QoS changes. r=nika
This patch introduces QOS_PRIORITY_SHUTDOWN, which exists exclusively to signal to QoS managing code that we want to raise the priority and accept no other changes. I decided to make this modification directly in `ContentParent` since all QoS changes come through here, and then we can use it while sending a shutdown signal. That way when we actually reach SendShutdown(), we've already warmed up the main thread.

This patch also introduces an assertion in case we somehow don't get a QoS override to catch any potential edge cases where this might be happening.

Differential Revision: https://phabricator.services.mozilla.com/D199497
2024-03-08 17:25:24 +00:00
Artur Iunusov
3a0843a675 Bug 1770944 - Remove nsIMozBrowserFrame. r=smaug
Depends on D155254

Differential Revision: https://phabricator.services.mozilla.com/D170397
2024-03-07 13:04:21 +00:00