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
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
Stanca Serban
865f99f379
Backed out 42 changesets (bug 1751995
) for causing bp-nu failures in PTestDataStructuresSubChild.cpp. CLOSED TREE
...
Backed out changeset 5c26a10bf169 (bug 1751995
)
Backed out changeset 02a074f96ccd (bug 1751995
)
Backed out changeset f92cf21f54f5 (bug 1751995
)
Backed out changeset e705865cf95f (bug 1751995
)
Backed out changeset a3e4d1d2d709 (bug 1751995
)
Backed out changeset 7384f5e7c454 (bug 1751995
)
Backed out changeset d4ca13c89783 (bug 1751995
)
Backed out changeset 96b164a065d4 (bug 1751995
)
Backed out changeset c5a817f91355 (bug 1751995
)
Backed out changeset 07dd40554527 (bug 1751995
)
Backed out changeset ad9de08d7d4a (bug 1751995
)
Backed out changeset 2d6b7a804db6 (bug 1751995
)
Backed out changeset 52df9813a7a2 (bug 1751995
)
Backed out changeset ca02c22179f1 (bug 1751995
)
Backed out changeset 9543f729a08a (bug 1751995
)
Backed out changeset b21677448d49 (bug 1751995
)
Backed out changeset 66ca72b00da6 (bug 1751995
)
Backed out changeset ece2f3b3e8b8 (bug 1751995
)
Backed out changeset 913a95850424 (bug 1751995
)
Backed out changeset 37aec76598c8 (bug 1751995
)
Backed out changeset 64612f9a6dfe (bug 1751995
)
Backed out changeset b3010b0f7b54 (bug 1751995
)
Backed out changeset 534d39c27249 (bug 1751995
)
Backed out changeset 4eade6ed42ae (bug 1751995
)
Backed out changeset 88fee9cbf094 (bug 1751995
)
Backed out changeset 943649ddc765 (bug 1751995
)
Backed out changeset 6f5df39ac299 (bug 1751995
)
Backed out changeset ee06381e3e1b (bug 1751995
)
Backed out changeset 72caae243596 (bug 1751995
)
Backed out changeset 9fce3d8543f4 (bug 1751995
)
Backed out changeset a979771464dc (bug 1751995
)
Backed out changeset 280122d631c0 (bug 1751995
)
Backed out changeset 164df42eab65 (bug 1751995
)
Backed out changeset 13f5be69033e (bug 1751995
)
Backed out changeset 5e7f7bdd2743 (bug 1751995
)
Backed out changeset 04d16fbe2bab (bug 1751995
)
Backed out changeset 7184b5bfe2d2 (bug 1751995
)
Backed out changeset bb0dda055124 (bug 1751995
)
Backed out changeset fc3107b98ec6 (bug 1751995
)
Backed out changeset 56233032dd1a (bug 1751995
)
Backed out changeset c104ceccb708 (bug 1751995
)
Backed out changeset 2412e5735361 (bug 1751995
)
2024-03-12 18:17:27 +02:00
Alex Franchuk
3edd390dcc
Bug 1751995
- Remove TestUrgentHangs r=ipc-reviewers,nika
...
This seemed like a lot of effort to port with little gain, since it's testing sync/cpow message
things.
Differential Revision: https://phabricator.services.mozilla.com/D202265
2024-03-12 14:07:43 +00:00
Alex Franchuk
48219a4db5
Bug 1751995
- Migrate TestUrgency r=ipc-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D202264
2024-03-12 14:07:42 +00:00
Alex Franchuk
de4ca358c0
Bug 1751995
- Migrate TestUniquePtrIPC r=ipc-reviewers,nika
...
Some of the assertions were changed because the message arguments are passed by const reference.
`MoveOnly` is applied to specific types, and UniquePtr is a built-in so we can't adjust that.
Differential Revision: https://phabricator.services.mozilla.com/D202263
2024-03-12 14:07:42 +00:00
Alex Franchuk
9f7a8cefbe
Bug 1751995
- Remove TestSyncWakeup r=ipc-reviewers,nika
...
This relies on interrupt messages.
Differential Revision: https://phabricator.services.mozilla.com/D202262
2024-03-12 14:07:41 +00:00
Alex Franchuk
8f798b3fbf
Bug 1751995
- Remove TestSyncHang r=ipc-reviewers,nika
...
This relies on launching additional child processes.
Differential Revision: https://phabricator.services.mozilla.com/D202261
2024-03-12 14:07:41 +00:00
Alex Franchuk
bd47871b8b
Bug 1751995
- Migrate TestSyncError r=ipc-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D202260
2024-03-12 14:07:41 +00:00
Alex Franchuk
ef028e63f9
Bug 1751995
- Remove TestStackHooks r=ipc-reviewers,nika
...
This tests how interrupt calls occur relative to others.
Differential Revision: https://phabricator.services.mozilla.com/D202259
2024-03-12 14:07:40 +00:00
Alex Franchuk
05ea39a5b6
Bug 1751995
- Remove TestShutdown r=ipc-reviewers,nika
...
This relies on crashing (exiting) the child actor, so it isn't suitable for gtest.
Differential Revision: https://phabricator.services.mozilla.com/D202258
2024-03-12 14:07:40 +00:00
Alex Franchuk
80f061b578
Bug 1751995
- Migrate TestShmem r=ipc-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D202257
2024-03-12 14:07:39 +00:00
Alex Franchuk
a8475caec3
Bug 1751995
- Migrate TestSelfManage r=ipc-reviewers,nika
...
Previously named TestSelfManageRoot (based on the initial actor name), but I though the test is
better named "SelfManage".
Differential Revision: https://phabricator.services.mozilla.com/D202062
2024-03-12 14:07:39 +00:00
Alex Franchuk
95a8a6842e
Bug 1751995
- Remove TestSanity r=ipc-reviewers,nika
...
Tests such as TestJSON and TestDataStructures more thoroughly exercise what this is testing.
Differential Revision: https://phabricator.services.mozilla.com/D202061
2024-03-12 14:07:38 +00:00
Alex Franchuk
b01816eda2
Bug 1751995
- Remove TestRPC r=ipc-reviewers,nika
...
If I understand the test correctly, this doesn't really test anything that other tests don't cover
already.
Differential Revision: https://phabricator.services.mozilla.com/D202060
2024-03-12 14:07:37 +00:00
Alex Franchuk
f6b5a4875a
Bug 1751995
- Remove TestRacyUndefer r=ipc-reviewers,nika
...
This relies on interrupt race behavior.
Differential Revision: https://phabricator.services.mozilla.com/D202059
2024-03-12 14:07:36 +00:00
Alex Franchuk
c0c872d36e
Bug 1751995
- Remove TestRacyReentry r=ipc-reviewers,nika
...
This relies on interrupt race behavior.
Differential Revision: https://phabricator.services.mozilla.com/D202058
2024-03-12 14:07:35 +00:00
Alex Franchuk
5b0b66f4a8
Bug 1751995
- Remove TestRacyInterruptReplies r=ipc-reviewers,nika
...
This tests interrupt race behavior.
Differential Revision: https://phabricator.services.mozilla.com/D202057
2024-03-12 14:07:34 +00:00
Alex Franchuk
58551b0be1
Bug 1751995
- Remove TestRaceDeferral r=ipc-reviewers,nika
...
This relies on interrupt race behavior.
Differential Revision: https://phabricator.services.mozilla.com/D202056
2024-03-12 14:07:33 +00:00
Alex Franchuk
d7c7d95862
Bug 1751995
- Remove TestRaceDeadlock r=ipc-reviewers,nika
...
This tests interrupt-specific race mediation.
Differential Revision: https://phabricator.services.mozilla.com/D202055
2024-03-12 14:07:32 +00:00
Alex Franchuk
2decfd48e2
Bug 1751995
- Remove TestNestedLoops r=ipc-reviewers,nika
...
This test relies on/tests `intr` behavior.
Differential Revision: https://phabricator.services.mozilla.com/D202054
2024-03-12 14:07:32 +00:00
Alex Franchuk
6ca8f42259
Bug 1751995
- Migrate TestMultiMgrs r=ipc-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D201751
2024-03-12 14:07:31 +00:00
Alex Franchuk
d9cdf7b138
Bug 1751995
- Migrate TestManyChildAllocs r=ipc-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D201736
2024-03-12 14:07:30 +00:00
Alex Franchuk
4d013d84cd
Bug 1751995
- Remove TestLatency r=ipc-reviewers,nika
...
It's more of a benchmark than a test.
Differential Revision: https://phabricator.services.mozilla.com/D201735
2024-03-12 14:07:30 +00:00
Alex Franchuk
6c90be34e6
Bug 1751995
- Migrate TestJSON r=ipc-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D201727
2024-03-12 14:07:29 +00:00
Alex Franchuk
8c70cb0361
Bug 1751995
- Remove TestInterruptShutdownRace r=ipc-reviewers,nika
...
Interrupt messages are no longer supported.
Differential Revision: https://phabricator.services.mozilla.com/D201587
2024-03-12 14:07:29 +00:00
Alex Franchuk
be9aaf9670
Bug 1751995
- Remove TestInterruptRaces r=ipc-reviewers,nika
...
Interrupt messages are no longer supported.
Differential Revision: https://phabricator.services.mozilla.com/D201586
2024-03-12 14:07:28 +00:00
Alex Franchuk
ba40aa5ea9
Bug 1751995
- Remove TestInterruptErrorCleanup r=ipc-reviewers,nika
...
Interrupt messages are no longer used.
Differential Revision: https://phabricator.services.mozilla.com/D201585
2024-03-12 14:07:28 +00:00
Alex Franchuk
87246e5b88
Bug 1751995
- Migrate TestMostNested r=ipc-reviewers,nika
...
Previously called TestHighestPrio.
Differential Revision: https://phabricator.services.mozilla.com/D201584
2024-03-12 14:07:28 +00:00
Alex Franchuk
65ed1ec12a
Bug 1751995
- Migrate TestHangs r=ipc-reviewers,nika
...
A small bit of refactoring involved for this.
Differential Revision: https://phabricator.services.mozilla.com/D200976
2024-03-12 14:07:27 +00:00
Alex Franchuk
bcd68af30d
Bug 1751995
- Add TestOnlyWaitForTransactionCompletion to MessageChannel r=ipc-reviewers,nika
...
This method (intended to be used only in tests) blocks until the current transaction stack is
complete, and is used by TestHangs to determine when to continue in the HangButReceive subtest.
Differential Revision: https://phabricator.services.mozilla.com/D203964
2024-03-12 14:07:27 +00:00
Alex Franchuk
fe858399a8
Bug 1751995
- Remove TestFailedCtor r=ipc-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D201161
2024-03-12 14:07:27 +00:00
Alex Franchuk
b2deb3a013
Bug 1751995
- Migrate TestEndpointOpens r=ipc-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D201160
2024-03-12 14:07:26 +00:00
Alex Franchuk
5010dd8733
Bug 1751995
- Remove TestEndpointBridge r=ipc-reviewers,nika
...
This test creates a subprocess from a subprocess, which is not supported.
Differential Revision: https://phabricator.services.mozilla.com/D200975
2024-03-12 14:07:26 +00:00
Alex Franchuk
327c3c2f28
Bug 1751995
- Migrate TestDescendant r=ipc-reviewers,nika
...
Previously named TestDesc, which, based on the test, I can only assume stands for `descendant`.
Differential Revision: https://phabricator.services.mozilla.com/D200966
2024-03-12 14:07:25 +00:00
Alex Franchuk
a47217704a
Bug 1751995
- Remove TestDemon r=ipc-reviewers,nika
...
There are fuzzing tests which better accomplish what this test tries to check.
Differential Revision: https://phabricator.services.mozilla.com/D200965
2024-03-12 14:07:25 +00:00
Alex Franchuk
1445df18b8
Bug 1751995
- Migrate TestDataStructures r=ipc-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D200964
2024-03-12 14:07:24 +00:00
Alex Franchuk
7f4cd8ede8
Bug 1751995
- Remove TestCrashCleanup r=ipc-reviewers,nika
...
Crash cleanup in this manner (racing a sync response) is not possible to test with the gtest setup.
It's also a very unlikely scenario as sync messages are used so infrequently.
Differential Revision: https://phabricator.services.mozilla.com/D200963
2024-03-12 14:07:23 +00:00
Alex Franchuk
bb18bf9922
Bug 1751995
- Migrate TestCancel r=ipc-reviewers,nika
...
Updated assertions for how things work now:
* cancelling now prevents followup nested messages
Differential Revision: https://phabricator.services.mozilla.com/D200962
2024-03-12 14:07:22 +00:00
Alex Franchuk
6e581f3b75
Bug 1751995
- Remove TestBadActor r=ipc-reviewers,nika
...
You can't race deletion.
Differential Revision: https://phabricator.services.mozilla.com/D200961
2024-03-12 14:07:22 +00:00
Alex Franchuk
d98a78cfe3
Bug 1751995
- Migrate TestAsyncReturns r=ipc-reviewers,nika
...
Differential Revision: https://phabricator.services.mozilla.com/D200960
2024-03-12 14:07:21 +00:00
Alex Franchuk
e45004c167
Bug 1751995
- Remove TestActorPunning r=ipc-reviewers,nika
...
It's no longer possible to pun actors in this way.
Differential Revision: https://phabricator.services.mozilla.com/D200958
2024-03-12 14:07:20 +00:00
Alex Franchuk
2bb092351b
Bug 1751995
- Add IPC_TEST_FAIL() and IPCResult::FailForTesting. r=ipc-reviewers,nika
...
The macro and function are meant to only be used in test circumstances, where we want the failure to
be returned. Normally in `DEBUG` builds the failure causes an immediate crash.
Differential Revision: https://phabricator.services.mozilla.com/D201158
2024-03-12 14:07:20 +00:00
Alex Franchuk
cece976684
Bug 1751995
- Fix genipdl function in the ipdl compiler. r=ipc-reviewers,nika
...
I was debugging some unexpected generated code (which ended up being fine) and fixed the genipdl
function in the process.
Differential Revision: https://phabricator.services.mozilla.com/D200957
2024-03-12 14:07:19 +00:00
Alex Franchuk
a2e43a3b6a
Bug 1751995
- Improve the gtest IPDL unit test features. r=ipc-reviewers,nika
...
This adds an optional testname to IPDL_TEST, so that you can have multiple tests for a single
protocol.
This kind of takes advantage of hackiness in the c preprocessor where you can do `XYZ##__VA_ARGS__`
and it'll work for exactly 0 or 1 var args (but will error with more). Since this is just for
tests, I thought it was an acceptable level of hackiness to avoid the need to make up additional
nonsense test names for interfaces which only define one test.
This also adds support for IPDL tests that run only cross-process or cross-thread (using
`IPDL_TEST_ON`).
Differential Revision: https://phabricator.services.mozilla.com/D200956
2024-03-12 14:07:19 +00:00
alwu
e085c179d6
Bug 1884209 - part3 : add 'media.wmf.media-engine.channel-decoder.enabled=false' r=gerard-majax
...
When disabling the audio utility pref, there are some tests testing the
fallback mechanism, which means the audio decoding would happen either
on the RDD process or the content process.
However, on wmfme, the pref `media.wmf.media-engine.channel-decoder.enabled`
is enabled [1] in order to run non-mse playback on the MFCDM process,
that causes failure for those tests.
As that pref is a test-only pref and won't be used on the production, we
should simply disable that pref for those tests in order to get the
expected behavior.
[1] https://searchfox.org/mozilla-central/rev/b55a24116575b1b6c17f1aa56a0b142d86dfa41c/taskcluster/ci/test/variants.yml#343
Depends on D203953
Differential Revision: https://phabricator.services.mozilla.com/D203954
2024-03-08 22:39:47 +00:00