Commit Graph

7708 Commits

Author SHA1 Message Date
Emilio Cobos Álvarez
cea323d30e Bug 1837816 - Make selector cache not tied to a document. r=media-playback-reviewers,karlt,mstange
It doesn't really need to.

Differential Revision: https://phabricator.services.mozilla.com/D180591
2023-06-16 17:20:42 +00:00
Alexandre Lissy
63186bc601 Bug 1835804 - Completely block from doing audio decoding on Content and RDD r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D179699
2023-06-16 15:38:55 +00:00
Stanca Serban
0c0327ae6a Backed out changeset f4f3e84e7e15 (bug 1835804) for win64-nightlyasrelease opt related Bpgo build bustages in PDMFactory.cpp. 2023-06-16 13:27:29 +03:00
Alexandre Lissy
ad0bf399e0 Bug 1835804 - Completely block from doing audio decoding on Content and RDD r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D179699
2023-06-16 08:24:23 +00:00
Cosmin Sabou
43ffe0d010 Backed out 2 changesets (bug 1798493) for causing wpt failures on partitioned-web-locks.tentative.https.html CLOSED TREE
Backed out changeset c8c8ab2aa130 (bug 1798493)
Backed out changeset f65876226f15 (bug 1798493)
2023-06-16 01:22:54 +03:00
Kagami Sascha Rosylight
60521aa51a Bug 1798493 - Part 1: Use nsIPrincipal instead of ContentPrincipalInfo for PLockManager r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D163337
2023-06-15 19:25:54 +00:00
Jan Grulich
4715b5a927 Bug 1724900: Add PipeWire camera support r=pehrsons,ipc-reviewers,nika
Adds a PipeWire based camera support that was recently merged into
WebRTC. This should be an experimental feature for now and therefore it
is kept behind a config option.

Differential Revision: https://phabricator.services.mozilla.com/D176625
2023-06-15 12:41:55 +00:00
Natalia Csoregi
eebccccb89 Backed out 4 changesets (bug 1724900) for causing crashes on getUserMedia-audio. CLOSED TREE
Backed out changeset b94558d76bd2 (bug 1724900)
Backed out changeset 8ac9e05de573 (bug 1724900)
Backed out changeset 8ebb0f9ec0ae (bug 1724900)
Backed out changeset 241d7632685a (bug 1724900)
2023-06-15 13:19:47 +03:00
Jan Grulich
527c5c1a21 Bug 1724900: Add PipeWire camera support r=pehrsons,ipc-reviewers,nika
Adds a PipeWire based camera support that was recently merged into
WebRTC. This should be an experimental feature for now and therefore it
is kept behind a config option.

Differential Revision: https://phabricator.services.mozilla.com/D176625
2023-06-15 09:13:27 +00:00
Cristian Tuns
2e0d92db58 Backed out changeset ebe58b0d7ffc (bug 1835804) for causing multiple failures on Android 7.0 with crash @ libxul.so CLOSED TREE 2023-06-14 18:20:08 -04:00
Alexandre Lissy
b355e9646c Bug 1835804 - Completely block from doing audio decoding on Content and RDD r=alwu
Differential Revision: https://phabricator.services.mozilla.com/D179699
2023-06-14 20:22:52 +00:00
Sylvestre Ledru
74418cbde1 no bug - doc: Fix some lexical issue r=marco,devtools-reviewers DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D179308
2023-06-12 14:54:49 +00:00
Tom Schuster
f8f27474c3 Bug 1409200 - Add integrityMetadata to nsILoadInfo. r=freddyb,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D179822
2023-06-09 18:39:59 +00:00
Norisz Fay
ceef84983b Backed out 3 changesets (bug 1409200) as requested by dev
Backed out changeset ea10214aa35f (bug 1409200)
Backed out changeset a66ea7d7f812 (bug 1409200)
Backed out changeset e8a83b1e7e08 (bug 1409200)
2023-06-09 15:11:48 +03:00
Tooru Fujisawa
b87b4a2527 Bug 1826106 - Use JS::FrontendContext in Utility Process. r=sefeng
Differential Revision: https://phabricator.services.mozilla.com/D179430
2023-06-09 11:08:58 +00:00
Bob Owen
18e588031f Bug 1821440: If process is in an app container, add the container SID to the COM ACL. r=handyman
Differential Revision: https://phabricator.services.mozilla.com/D180207
2023-06-09 10:41:07 +00:00
Tom Schuster
789a99b940 Bug 1409200 - Add integrityMetadata to nsILoadInfo. r=freddyb,necko-reviewers,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D179822
2023-06-09 07:52:49 +00:00
Nika Layzell
fb140add17 Bug 1835647 - Switch FatalError to asynchronously report channel errors under fuzzing, r=ipc-reviewers,mccr8
This should avoid potential fuzzing-only issues which would be caused by
the actor being torn down synchronously after a FatalError or KillHard.
Instead, the state is set to error synchronously, blocking all further
message sending/receiving, and the notification is made async, similar
to how it is handled for normal channel errors.

Differential Revision: https://phabricator.services.mozilla.com/D180254
2023-06-08 23:09:19 +00:00
Andrew McCreight
6869dc0a66 Bug 1836989 - Rename the hacky string conversion function in ipc/glue/StringUtil.cpp. r=ipc-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D180095
2023-06-07 13:20:08 +00:00
Gabriele Svelto
4b039f20f2 Bug 1776197 - Remove the old IPC channel used for retrieving annotations and all related machinery r=geckoview-reviewers,afranchuk,owlish
Depends on D173699

Differential Revision: https://phabricator.services.mozilla.com/D173700
2023-06-07 12:34:31 +00:00
Mike Hommey
c72ed0e448 Bug 1835185 - Adjust preprocessor conditions knowing that XP_WIN and XP_UNIX are mutually exclusive. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D180137
2023-06-06 21:05:37 +00:00
Mike Hommey
285d1dfbd8 Bug 1835185 - Stop setting OS_* macros from the build system. r=ipc-reviewers,mccr8
Now that the ipc code doesn't use the OS_* macros, we don't need to set
them for most everything.

Differential Revision: https://phabricator.services.mozilla.com/D180056
2023-06-06 21:05:36 +00:00
Mike Hommey
3a281b3787 Bug 1835185 - Remove build_config.h from ipc code. r=ipc-reviewers,mccr8
It is, in fact, pulled instead of security/sandbox/chromium's when
building the sandbox, because the ipc code is used virtually everywhere.
We're better off with one less copy of the file, especially in such
ubiquitous code.

Incidentally, the sandbox code also needed ipc's for its use of
EnvironmentMap.h, which now doesn't require it.

Differential Revision: https://phabricator.services.mozilla.com/D180055
2023-06-06 21:05:36 +00:00
Mike Hommey
75e6a18851 Bug 1835185 - Replace WCHAR_T_IS_UTF* with checks on XP_WIN in ipc code. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D180054
2023-06-06 21:05:36 +00:00
Mike Hommey
cf61902bf4 Bug 1835185 - Replace ARCH_CPU_ARM64 with __aarch64__ in ipc code. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D180053
2023-06-06 21:05:35 +00:00
Mike Hommey
d2da9c1907 Bug 1835185 - Replace ARCH_CPU_64_BITS with HAVE_64BIT_BUILD in ipc code. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D180052
2023-06-06 21:05:35 +00:00
Mike Hommey
a9b1e3bb63 Bug 1835185 - Replace COMPILER_* with equivalent macros in ipc code. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D180051
2023-06-06 21:05:34 +00:00
Mike Hommey
1cfa6935e2 Bug 1835185 - Remove NaCl support code. r=ipc-reviewers,mccr8
It's not a supported target.

Differential Revision: https://phabricator.services.mozilla.com/D180050
2023-06-06 21:05:34 +00:00
Mike Hommey
6195df0b79 Bug 1835185 - Replace OS_*BSD with equivalent macros in ipc code. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D180049
2023-06-06 21:05:34 +00:00
Mike Hommey
55ec63d832 Bug 1835185 - Replace OS_SOLARIS with XP_SOLARIS in ipc code. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D180048
2023-06-06 21:05:33 +00:00
Mike Hommey
ae2a3b3bff Bug 1835185 - Replace OS_ANDROID with ANDROID in ipc code. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D180047
2023-06-06 21:05:33 +00:00
Mike Hommey
177e38422c Bug 1835185 - Replace OS_LINUX with XP_LINUX in ipc code. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D180046
2023-06-06 21:05:32 +00:00
Mike Hommey
1a1da788c7 Bug 1835185 - Replace OS_MACOSX with XP_DARWIN in ipc code. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D180045
2023-06-06 21:05:32 +00:00
Mike Hommey
30c664bf9c Bug 1835185 - Replace OS_WIN with XP_WIN in ipc code. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D180044
2023-06-06 21:05:31 +00:00
Mike Hommey
eb02cb32ad Bug 1835185 - Replace OS_POSIX with XP_UNIX in ipc code. r=ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D180043
2023-06-06 21:05:31 +00:00
Haik Aftandilian
91fff12722 Bug 1827747 - Use a new executable for the macOS GMP process r=nika,glandium
Use a new executable for the GMP process named "<App Name> Media Plugin Helper" so that the content processes (using the plugin-container executable) and the GMP process can be signed with different entitlements allowing for the use of more secure entitlements.

In order for the new executable to load the Widevine plugin, a change is needed in the codesigning infrastructure repo to generate the .sig file for the new executable.

To get the security benefits of using a new executable for GMP, additional changes are needed in the codesigning infrastructure repo to enable signing plugin-container and the new executable with a reduced set of entitlements.

The executable is a copy of plugin-container renamed as "<App Name> Media Plugin Helper" so it appears with a user friendly name in Activity Monitor. For example, "Firefox Media Plugin Helper". (The GMP process runs with limited privileges preventing it from setting its own "nice" process name.)

Pref off the change until the .sig file change lands and media playback has been validated on production builds.

Differential Revision: https://phabricator.services.mozilla.com/D175796
2023-06-05 20:40:10 +00:00
Eitan Isaacson
4b8822a071 Bug 1826869 - Cache doc mime type and make available via DocAccessibleParent. r=morgan,ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D178887
2023-05-26 22:17:13 +00:00
Eitan Isaacson
63f60f5072 Bug 1826866 - DocAccessible::DocType and remote equivalents. r=Jamie,ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D178886
2023-05-26 22:17:13 +00:00
Eitan Isaacson
9b58fed3a9 Bug 1821965 - P2: Remove sync IPC extension messages for text operations. r=morgan,ipc-reviewers,mccr8
We can get rid the entire local HyperTextAccessible-based implementation as well!

Depends on D178717

Differential Revision: https://phabricator.services.mozilla.com/D178718
2023-05-26 22:17:13 +00:00
Eitan Isaacson
dbdf01888d Bug 1832353 - P3: Make editable text methods async and return void. r=Jamie,ipc-reviewers,mccr8
Depends on D178715

Differential Revision: https://phabricator.services.mozilla.com/D178724
2023-05-26 22:17:12 +00:00
Nika Layzell
2f2588cf4f Bug 1828389 - Ensure IPC channel is closed with error after KillHard, r=ipc-reviewers,mccr8
This patch changes KillHard() such that the IPC channel is immediately
shut down with an error after a KillHard() is performed. This is done by
fixing the previously-broken CLOSE_CHANNEL_WITH_ERROR support in
ShutDownProcess, and calling that method after KillHard().

This ensures that after the process has been killed, no further messages
will be delivered and processed, even if they were sent before the
process was killed.

In addition, the assertions and KillHard calls which are disabled for
fuzzing were changed to also shut down the channel, making fuzzing IPC
errors cause the connection to be terminated like it is in production
for these actors.

This change does not impact actors which ignore processing errors.

Differential Revision: https://phabricator.services.mozilla.com/D178383
2023-05-26 17:44:57 +00:00
Nika Layzell
759d19c6b9 Bug 1807049 - Refactor MessageChannel shutdown states, r=ipc-reviewers,mccr8
This refactoring cleans up some dead code, and makes some semantic
changes to how the MessageChannel lifecycle is handled.

These changes ensure that messages which were sent by a peer before the
GOODBYE message will be delivered, without allowing messages sent after
the GOODBYE message (e.g. by a misbehaving process) to be delivered.

The lifecycle and shutdown states were simplified, and moved to be
entirely in MessageChannel, rather than split between MessageChannel and
MessageLink.

The dead-code ChannelTimeout error state was removed, along with the
corresponding CloseWithTimeout method.

The CloseWithError method was updated to behave more consistently with
the normal Close method, synchronously triggering a connection error,
and closing the MessageLink. This method is currently unused, but will
useful in the future for handling processing errors.

Differential Revision: https://phabricator.services.mozilla.com/D178382
2023-05-26 17:44:57 +00:00
Noemi Erli
ab21b0f95b Backed out 6 changesets (bug 1832353, bug 1821965) for causing build bustages in GeckoTextMarker.mm
Backed out changeset 6df0877f288a (bug 1821965)
Backed out changeset e663ccc0334e (bug 1821965)
Backed out changeset 36b250225e50 (bug 1821965)
Backed out changeset 6df5d07bf19f (bug 1832353)
Backed out changeset 409966c76f0f (bug 1832353)
Backed out changeset 3be446e44436 (bug 1832353)
2023-05-26 02:48:29 +03:00
Eitan Isaacson
0caef88bb0 Bug 1821965 - P2: Remove sync IPC extension messages for text operations. r=morgan,ipc-reviewers,mccr8
We can get rid the entire local HyperTextAccessible-based implementation as well!

Depends on D178717

Differential Revision: https://phabricator.services.mozilla.com/D178718
2023-05-25 20:38:29 +00:00
Eitan Isaacson
2237be2626 Bug 1832353 - P3: Make editable text methods async and return void. r=Jamie,ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D178724
2023-05-25 20:38:29 +00:00
Olli Pettay
3a786da831 Bug 1534586 - Remove unused PBrowser::DispatchFocusToTopLevelWindow, r=aiunusov,ipc-reviewers,mccr8
Differential Revision: https://phabricator.services.mozilla.com/D178976
2023-05-25 12:15:44 +00:00
Mike Hommey
8fd388a5a3 Bug 1834925 - Enable MessagePumpForNonMainUIThreads on Darwin, not only macOS. r=ipc-reviewers,nika
MessagePump_mac.mm is built for Darwin.

Differential Revision: https://phabricator.services.mozilla.com/D179016
2023-05-25 05:38:03 +00:00
Mike Hommey
38a3d1fae3 Bug 1834912 - Add iOS-related defines/ifdefs for IPC. r=ipc-reviewers,nika
Differential Revision: https://phabricator.services.mozilla.com/D178999
2023-05-25 02:48:33 +00:00
André Bargull
0265a0f789 Bug 1492090 - Part 5: Use UTF-8 for script file names. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D151449
2023-05-23 12:11:39 +00:00
André Bargull
6028cd6b2b Bug 1492090 - Part 2: Use UTF-8 encoding when printing to stdout and use CompileUtf8Path for xpc-shells. r=nbp
Differential Revision: https://phabricator.services.mozilla.com/D151446
2023-05-23 12:11:38 +00:00