Bob Owen
2f9e2d054c
Bug 1511438 Part 1: Replace ProcessTypeRequiresWinEventHook with XRE_Win32kCallsAllowed. r=froydnj
...
ProcessTypeRequiresWinEventHook was added when attempting to turn on win32k
lockdown for GMP processes. Having a less specific, but globally accessible,
function will make it more useful while applying win32k lockdown to other
process types.
2019-01-29 08:49:13 +00:00
Andrea Marchesini
931c1560cf
Bug 1520150 - Single InputStreams can serialize themselves as IPCRemoteStreams (pipe) - part 3 - pipe for string and storage streams, r=smaug
2019-01-28 10:49:28 +01:00
Andrea Marchesini
c0dfa196ce
Bug 1520150 - Single InputStreams can serialize themselves as IPCRemoteStreams (pipe) - part 2 - IPCRemoteSteam part of InputStreamParams union, r=smaug
...
Before this patch, IPCStream was an union containing IPCRemoteSteam or an
InputStreamParamsWithFds. Now InputStreamParamsWithFds is renamed IPCStream and
IPCRemoteSteam is one of the possible InputStreamParams structs.
2019-01-28 10:49:13 +01:00
Andrea Marchesini
0499bad916
Bug 1520150 - Single InputStreams can serialize themselves as IPCRemoteStreams (pipe) - part 1 - Passing IPC managers around, r=smaug
...
Before this set of patches, the decision of exposing the stream as a pipe was
centralized in IPCStreamUtils, based on the total expectation size of the IPC
message. This triggers issues when multiplex inputStreams contain something
that cannot be sent as a pipe (IPCBlobInputStream, for instance), or something
that it's better to do not set as a pipe (nsFileInputStream), together with
memory streams (nsStringInputStream), which could make the IPC message greater
then what accepted (1mb).
These patches move the "pipe vs non-pipe" choice into the single inputStream
implementation.
2019-01-28 10:48:35 +01:00
Ehsan Akhgari
7426dccfc0
Bug 1522596 - Remove nsIIPCSerializableURI and move its only member to nsIURI; r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D17531
--HG--
extra : moz-landing-system : lando
2019-01-25 13:32:36 +00:00
Nathan Froyd
8ab00b3379
Bug 1522599 - make the logic for cxxTypeNeedsMove more straightforward; r=Alex_Gaynor
...
Nested conditionals are hard to read; separating things out should make
the flow somewhat more obvious.
2019-01-24 16:31:59 -05:00
Ciure Andrei
c035ee7d3a
Merge inbound to mozilla-central. a=merge
2019-01-24 05:44:33 +02:00
Nika Layzell
9b4bbc17fd
Bug 1467223 - Part 2: Add BrowsingContextID to LoadInfo, r=valentin
...
This is handy when performing process swaps, as it provides useful & important
information to parent-process callers.
Depends on D15608
Differential Revision: https://phabricator.services.mozilla.com/D15609
--HG--
extra : moz-landing-system : lando
2019-01-23 21:06:59 +00:00
Nathan Froyd
54d71bdb59
Bug 1521801 - fix process type annotation for content process crashes; r=gsvelto
2019-01-23 08:51:32 -05:00
Sylvestre Ledru
0b4021fcad
Bug 1521460 - Also reformat objective-c files r=mstange,ehsan,spohl
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D17139
--HG--
extra : histedit_source : 084f340503d2e1a2d9e1753c38b2c4ee9c7819f3
2019-01-21 18:18:16 +01:00
Cosmin Sabou
7ccc9d8b0b
Merge mozilla-inbound to mozilla-central. a=merge
2019-01-19 11:57:49 +02:00
Gijs Kruitbosch
bc65d4cf7f
Bug 1519074 - delay deserializing some CSP info until necessary, r=bzbarsky,ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D16794
--HG--
extra : moz-landing-system : lando
2019-01-19 00:15:13 +00:00
Andreea Pavel
600eb759a4
Backed out changeset a69c1a1dc6fe (bug 1519074) for build bustages on a CLOSED TREE
2019-01-19 00:08:59 +02:00
Gijs Kruitbosch
8e2cad84f0
Bug 1519074 - delay deserializing some CSP info until necessary, r=bzbarsky,ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D16794
--HG--
extra : moz-landing-system : lando
2019-01-18 17:17:32 +00:00
Greg Tatum
7042c8f1c3
Bug 1520526 - Add categories to all profiler markers; r=mstange
...
This commit adds categories to all markers. This way the profiler's
marker categories and frame label categories agree. There are a few
duplicate category properties on some of the marker payloads, but
this could be cleaned up in a follow-up if needed.
Differential Revision: https://phabricator.services.mozilla.com/D16864
--HG--
extra : moz-landing-system : lando
2019-01-18 15:40:15 +00:00
Sylvestre Ledru
47a5dd1fb8
Bug 1519636 - Reformat everything to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D16388
--HG--
extra : moz-landing-system : lando
2019-01-16 08:50:07 +00:00
Ehsan Akhgari
e5e885ae31
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Nathan Froyd
221438b032
Bug 1518923 - simplify subprocess handle duplication logic in PerformAsyncLaunch; r=bobowen
...
Avoiding handle duplication for certain kinds of processes and allowing
it for everything else seems to be what we're already doing, so let's
make it easier to add new process types with that scheme in mind.
2019-01-14 11:01:48 -05:00
Brian Hackett
c78acc3d0e
Bug 1519728 - Fix problem passing file handles to recording process, r=kershaw.
...
--HG--
extra : rebase_source : 4bc58da9257790ac83c56941e3f836c9039917fb
2019-01-14 05:12:40 -10:00
Michael Froman
c475e5754c
Bug 1514874 - start RDD process on-demand r=jya,jld
...
Differential Revision: https://phabricator.services.mozilla.com/D15775
--HG--
extra : moz-landing-system : lando
2019-01-12 04:51:20 +00:00
Kershaw Chang
621b98340a
Bug 1513057 - P6: Create Background between content process and socket process r=dragana,mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D14348
--HG--
extra : moz-landing-system : lando
2019-01-11 20:56:39 +00:00
Kershaw Chang
9973068a10
Bug 1513057 - P1.1: Create a reusable class to pass prefs to child processes r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D14970
--HG--
extra : moz-landing-system : lando
2019-01-11 18:39:22 +00:00
Kershaw Chang
0b336d5545
Bug 1513057 - P1: Start the new socket process basics (prefs, full xpcom init, logging, no sandboxing) r=mayhemer,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D14148
--HG--
extra : moz-landing-system : lando
2019-01-11 18:57:23 +00:00
Andreea Pavel
21ad33d612
Backed out 10 changesets (bug 1513057) for build bustages on a CLOSED TREE
...
Backed out changeset 56329b5f1844 (bug 1513057)
Backed out changeset 46411c5de3da (bug 1513057)
Backed out changeset de65c456aad6 (bug 1513057)
Backed out changeset f648b5f1a7c2 (bug 1513057)
Backed out changeset 460bbf0849e1 (bug 1513057)
Backed out changeset 86032a14d26f (bug 1513057)
Backed out changeset a81f83df08d5 (bug 1513057)
Backed out changeset edbda5ee5fd5 (bug 1513057)
Backed out changeset c900ac2519f5 (bug 1513057)
Backed out changeset 4e94bbb90315 (bug 1513057)
2019-01-11 17:02:44 +02:00
Kershaw Chang
1c5e5caaaf
Bug 1513057 - P6: Create Background between content process and socket process r=dragana,mayhemer
...
Differential Revision: https://phabricator.services.mozilla.com/D14348
--HG--
extra : moz-landing-system : lando
2019-01-11 13:30:09 +00:00
Kershaw Chang
99fe2d101a
Bug 1513057 - P2: Setup crash reporter on socket process r=dragana,mayhemer
...
This patch is quite straightforward. Just add socket process support.
Differential Revision: https://phabricator.services.mozilla.com/D14151
--HG--
extra : moz-landing-system : lando
2019-01-11 13:26:56 +00:00
Kershaw Chang
d0f8c9de61
Bug 1513057 - P1.1: Create a reusable class to pass prefs to child processes r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D14970
--HG--
extra : moz-landing-system : lando
2019-01-11 14:12:53 +00:00
Kershaw Chang
0c2943008a
Bug 1513057 - P1: Start the new socket process basics (prefs, full xpcom init, logging, no sandboxing) r=mayhemer,dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D14148
--HG--
extra : moz-landing-system : lando
2019-01-11 14:07:47 +00:00
Daniel Varga
f0a9c979bb
Merge mozilla-inbound to mozillia-central. a=merge
2019-01-11 06:14:14 +02:00
Cosmin Sabou
af0ac088e5
Backed out changeset 8d953c25fdef (bug 1514874) for windows asan mda failures on RemoteDecoderModule.cpp.
2019-01-11 02:03:38 +02:00
Nathan Froyd
fcefa80c7c
Bug 1518922
- part 1 - remove dead code for extra crashreporting directory; r=Alex_Gaynor
...
The command-line parameter used by nsEmbedFunctions.cpp is turned into
an nsIFile, and then said nsIFile is never used. Its last use was
deleted in bug 1407693, where we reworked how extra annotations were
done.
2019-01-10 16:13:37 -05:00
Jed Davis
ebb609373d
Backed out changeset a0cf88b1fe5b (bug 1487287)
2019-01-10 13:55:31 -07:00
James Willcox
f4b85965af
Bug 1354200 - Exit instead of MOZ_CRASH on channel error in child process r=jld
...
Android mercilessly kills the parent in low memory situations, and we
don't want that to trigger a crash when the child is abruptly
disconnected.
Differential Revision: https://phabricator.services.mozilla.com/D16234
--HG--
extra : moz-landing-system : lando
2019-01-10 22:45:44 +00:00
Coroiu Cristina
1468575650
Merge mozilla-central to autoland a=merge on a CLOSED TREE
2019-01-10 23:45:07 +02:00
Michael Froman
1a75356195
Bug 1514874 - start RDD process on-demand r=jya,jld
...
Differential Revision: https://phabricator.services.mozilla.com/D15775
--HG--
extra : moz-landing-system : lando
2019-01-10 18:35:06 +00:00
Jed Davis
3e70bf3ff1
Bug 1487287 - Move child process launch off the I/O thread. r=mccr8
...
Launching processes takes enough time that we should avoid blocking the
parent process's IPC I/O thread for it; it's less bad for responsiveness
than blocking the main thread, but it's not good.
On Windows we need to use a dedicated thread, because the sandbox isn't
thread-safe and it asserts that the same thread is used for every
launch. Otherwise, a thread pool is used. (Or, in the Web Replay
middleman process, where there isn't enough of XPCOM for any of this,
launching the actual content processes remains on the I/O thread.)
Depends on D15886
Differential Revision: https://phabricator.services.mozilla.com/D8946
--HG--
extra : moz-landing-system : lando
2019-01-09 02:52:10 +00:00
Jed Davis
3fe8a630c1
Bug 1487287 - Set profiler env vars in child processes without side-effecting the parent process. r=mstange
...
We can directly set environment variables for the child process on
all platforms now, instead of changing the parent's environment and
inheriting the changes. This simplifies memory management, but more
importantly it's necessary for thread safety to allow launching
processes from a thread pool.
Depends on D8944
Differential Revision: https://phabricator.services.mozilla.com/D8945
--HG--
extra : moz-landing-system : lando
2019-01-08 23:53:36 +00:00
Nathan Froyd
9cd04a84de
Bug 1514044 - part 3 - update nsICrashService process constants and add checks for them; r=gsvelto
2019-01-10 10:52:51 -05:00
Nathan Froyd
a6f22e88be
Bug 1514044 - part 2 - change CrashReporterHost to use GeckoProcessTypes.h; r=gsvelto
2019-01-10 10:52:51 -05:00
Nathan Froyd
99da46a21c
Bug 1062533 - part 3 - use StaticMutex for NowSingleton to work around the leak checker; r=mccr8
2019-01-09 11:09:24 -04:00
Nathan Froyd
0ab4c8b63c
Bug 1062533 - part 2 - use StaticMutex for PipeMap to workaround the leak checker; r=mccr8
2019-01-09 11:09:25 -04:00
Nathan Froyd
27ac7aed45
Bug 1062533 - part 1 - convert easy cases of chromium IPC locks to mozilla mutexes; r=mccr8
...
Other cases will require some special handling.
2019-01-09 11:09:25 -04:00
Dave Townsend
4e82401311
Bug 1515863, r=valentin,ckerschb
...
Differential Revision: https://phabricator.services.mozilla.com/D15728
--HG--
extra : rebase_source : 2e1c705dd97d458080387896fd7a1f0e88523e06
2018-04-11 12:52:47 -07:00
Jacek Caban
cea794a811
Bug 1430149 - Fix AsyncInvoker.h compilation on mingw. r=aklotz
...
MozReview-Commit-ID: FIswvwMzGdC
Differential Revision: https://phabricator.services.mozilla.com/D15325
--HG--
extra : moz-landing-system : lando
2019-01-07 21:52:57 +00:00
David Major
3ccc14bcb1
Bug 1514592: Don't call RpcExceptionCode if we don't HAVE_SEH_EXCEPTIONS. r=aklotz
2019-01-07 17:58:45 -05:00
Jeff Walden
a128f0c35c
Bug 1517624 - Move JSPropertySpec and JSFunctionSpec definitions into a new js/public/PropertySpec.h header. r=arai
...
--HG--
extra : rebase_source : b80911e01f984ee9f99fbbc6c4552ef3d2178587
2019-01-03 15:37:01 -06:00
Jeff Walden
d084a5e469
Back out f8a29b8bb211, d1267711aef0, df1b7a886a9d, 0f6a3dd2c2f7, e6628922b7be, 0a374ac233cd, cf00fd0f080c, 6fc24c4e7798, ab2e4a2e5dd2, 2d17e4ef5e71, 4a8940073f8c, ea3ab4b83152, c7577c232591, e58454c68f0f, and 0e39815d1bce for breaking a single Android J10 and nothing else. (That J10 task must not like deck chairs...) r=bustage
...
--HG--
extra : rebase_source : f02dabe3ece7955cb223313d3605b825560c62b1
2019-01-04 16:33:01 -06:00
Jeff Walden
87aba62a4a
Bug 1517624 - Move JSPropertySpec and JSFunctionSpec definitions into a new js/public/PropertySpec.h header. r=arai
2019-01-03 15:37:01 -06:00
Nathan Froyd
4efee8a5f1
Bug 1517567 - remove unused FILETIME-related functions from chromium ipc; r=jld
...
This removes one include of windows.h, which is nice.
2019-01-04 09:13:05 -05:00
Andrea Marchesini
647b040b0f
Bug Bug 1515272 - Get rid of nsIURIClassifier.classifyLocal(), r=dimi, r=froydnj
2019-01-04 14:46:30 +01:00