Aaron Klotz
2bbffe8138
Bug 1273635: Enable alertable waits in content process main thread; r=jimm
...
MozReview-Commit-ID: 2qGdGj41M0n
--HG--
extra : rebase_source : e404ba43a47151d38330052c9ac93e7b252ad0f4
2016-08-03 11:54:35 -06:00
David Anderson
7bdb79f9ac
Generate template-friendly value readers for IPDL unions. (bug 1288259 part 1, r?=billm)
...
--HG--
extra : rebase_source : 7376052d8a50427ab64205246463917fbd0e0d61
2016-08-04 11:13:38 -07:00
Alexandre Lissy
0af5b943b6
Bug 1284674 - Remove NUWA r=cyu
...
MozReview-Commit-ID: GyMRNzOBKw6
--HG--
extra : rebase_source : 293af1cd55f2035ce6a99f4ebf144059c32a2b8f
2016-08-02 14:54:00 +02:00
Cervantes Yu
8a0ce84d5e
Bug 1253575 - Fallback to DuplicateHandle() when base::OpenPrivilegedProcessHandle() fails when starting a child process. r=krizsa
...
MozReview-Commit-ID: 2nglWFJgfja
--HG--
extra : rebase_source : 01d7b167bc0573c72aa8ef6dac8fce6bb5d4eaef
2016-06-23 17:50:37 +08:00
Cervantes Yu
8a084acd4c
Bug 1266440 - Remove diagnostic funciton mozilla::ipc::AnnotateProcessInformation() that contains PII. r=krizsa
...
MozReview-Commit-ID: AJyNT68zJlF
2016-08-01 18:41:09 +08:00
Aaron Klotz
fc25b0f50c
Bug 1287875: Don't try to obtain NS_APP_CONTENT_PROCESS_TEMP_DIR unless MOZ_CONTENT_SANDBOX is defined; r=haik
...
MozReview-Commit-ID: Li1I4CtmXvE
--HG--
extra : rebase_source : 72357591259f261b5310e9679f752d9c949951f8
2016-07-29 12:20:01 -06:00
Carsten "Tomcat" Book
37be51f16a
merge mozilla-inbound to mozilla-central a=merge
2016-07-28 17:43:03 +02:00
Iris Hsiao
f9707fb68a
Backed out changeset 48d06bcb9c65 (bug 1273635) for Mochitest failures
2016-07-28 14:25:47 +08:00
Yoshi Huang
84039380cc
Bug 1287073 - remove SEC_FORCE_INHERIT_PRINCIPAL_WAS_DROPPED from nsILoadInfo r=sicking
2016-07-28 15:56:32 +08:00
David Anderson
a733ab7fa3
Add the GPU process as a sandbox broker peer. (bug 1289895, r=bobowen)
2016-07-27 23:17:54 -07:00
Makoto Kato
534829a9e2
Bug 1289500 - Don't load GTK IM module on content process. r=masayuki
...
Now content sandbox process is enabled. Since uim-mozc uses vfork, it causes sandbox violation. It is unnecessary to load IM module on content process becasue we don't use GTK IM APIs on content process.
MozReview-Commit-ID: GrPlmazzEMd
--HG--
extra : rebase_source : e12ec563807627a7fb84b2ca56eaa552aac22643
2016-07-27 10:24:42 +09:00
Carsten "Tomcat" Book
25aa8617fc
Backed out changeset 1825b8fa636a (bug 1246540) for bustage
...
--HG--
extra : rebase_source : 45defacae713b2c2f75813fea6f2f289ebc481cd
2016-07-26 12:52:15 +02:00
Fabrice Desré
e415e8f407
Bug 1289316 - Update ProcessUtils_linux with PlatformHandle changes r=valentin
2016-07-26 03:47:18 -07:00
Bob Owen
22830b7f8f
Bug 1287984: Add rule to allow content process to duplicate handles to other non-broker processes. r=jimm
...
MozReview-Commit-ID: A79P9G9t7Ax
--HG--
extra : transplant_source : %C2%0A-%FB%7E%AF%99%95%C7%AF%A6%21%BC%18%D4a%9C%24z%8C
2016-07-20 14:41:18 +01:00
Kate McKinley
01cbd73591
Bug 1246540 - HSTS Priming Proof of Concept. r=ckerschb,r=mayhemer,r=jld,r=smaug,r=dkeeler,r=jmaher,p=ally
...
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.
Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.
nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.
(r=ckerschb,r=mayhemer,r=jld,r=smaug,r=dkeeler,r=jmaher,p=ally)
2016-07-25 12:37:00 +02:00
Xidorn Quan
8d8f13a7d5
Bug 1264566 followup - Fix build on VS2015u3.
...
MozReview-Commit-ID: Bi58Q1NCQD
2016-07-26 09:45:44 +10:00
Carsten "Tomcat" Book
0a5622c093
Backed out changeset 640247e978ba (bug 1246540) for bustage
2016-07-24 15:59:31 +02:00
Kate McKinley
547500d5a7
Bug 1246540 - HSTS Priming Proof of Concept. r=honzab
...
HSTS priming changes the order of mixed-content blocking and HSTS
upgrades, and adds a priming request to check if a mixed-content load is
accesible over HTTPS and the server supports upgrading via the
Strict-Transport-Security header.
Every call site that uses AsyncOpen2 passes through the mixed-content
blocker, and has a LoadInfo. If the mixed-content blocker marks the load as
needing HSTS priming, nsHttpChannel will build and send an HSTS priming
request on the same URI with the scheme upgraded to HTTPS. If the server
allows the upgrade, then channel performs an internal redirect to the HTTPS URI,
otherwise use the result of mixed-content blocker to allow or block the
load.
nsISiteSecurityService adds an optional boolean out parameter to
determine if the HSTS state is already cached for negative assertions.
If the host has been probed within the previous 24 hours, no HSTS
priming check will be sent.
(r=ckerschb,r=mayhemer,r=jld,r=smaug,r=dkeeler,r=jmaher,p=ally)
2016-07-22 18:35:00 +02:00
Wei-Cheng Pan
fd87664d8e
Bug 1264566 - Part 2: Refactor all usage of FileDescriptor. r=valentin
...
Callers should use a UniquePtr to hold the platform handle.
MozReview-Commit-ID: 6BWnyAf4b3a
--HG--
extra : transplant_source : %26%CA%0D%28%08%9BT%97Z%A1%3Dq%CD%21%A1_%EFE%83%0E
extra : histedit_source : 77f8ed3d0fdec6cce0c95469130ade0fb547bb91
2016-05-27 16:12:51 +08:00
Wei-Cheng Pan
885cdcfe3a
Bug 1264566 - Part 1: Refactor FileDescriptor to fix leaks in content processes. r=valentin, r=baku
...
Now FileDescriptor takes the ownership of the platform handle, in both parent
and content processes.
Copying will duplicate the underlying handle.
It also comes with a move constructor to avoid duplicating if possible.
The getter will duplicate a new handle, so a UniquePtr is needed to hold the
duplicated handle.
MozReview-Commit-ID: DgvjmTI4tpf
--HG--
extra : transplant_source : %8A%CA%96l%40iZ%08%D1J%F3%8C%F2%D0%8B6%E5%9EH%13
extra : histedit_source : ee9856a5a1b650663d65380847712691ac8e84bf
2016-05-27 15:58:51 +08:00
Carsten "Tomcat" Book
336105a0de
merge mozilla-inbound to mozilla-central a=merge
2016-07-22 11:58:02 +02:00
Tom Tromey
5538d692d3
Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
...
This removes the unnecessary setting of c-basic-offset from all
python-mode files.
This was automatically generated using
perl -pi -e 's/; *c-basic-offset: *[0-9]+//'
... on the affected files.
The bulk of these files are moz.build files but there a few others as
well.
MozReview-Commit-ID: 2pPf3DEiZqx
--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Carsten "Tomcat" Book
4a64baa9d4
merge mozilla-inbound to mozilla-central a=merge
2016-07-21 16:24:36 +02:00
Chris Peterson
b175c9fdd5
Bug 1277106 - Part 2: Expand MOZ_UTF16() strings to u"" string literals. r=Waldo
2016-07-20 22:03:25 -07:00
Aaron Klotz
52f2033824
Bug 1277075: Add MainThreadRuntime class to mscom glue, enabling safe initialization of COM security and exception handlers; r=jimm
...
MozReview-Commit-ID: 9Ig9wb4KVps
--HG--
extra : rebase_source : 6a8da83dbdae9b7407598997ffbe56eeca3a4d26
2016-07-20 11:10:46 -06:00
Carsten "Tomcat" Book
021bec0a4e
Merge mozilla-central to mozilla-inbound
2016-07-20 11:35:42 +02:00
Carsten "Tomcat" Book
8428cd56e3
merge mozilla-inbound to mozilla-central a=merge
2016-07-20 11:20:15 +02:00
David Anderson
6aca1d9865
Use Endpoints for content-process ImageBridges. (bug 1287366 part 2, r=billm)
...
--HG--
extra : rebase_source : 388c44e8df0ff45eb32e12d2b98c654cb0592bf0
2016-07-20 00:18:30 -07:00
Iris Hsiao
a024afd017
Backed out changeset 26fe03ac12be (bug 1277075) for Windows build bustage
2016-07-19 12:36:27 +08:00
Aaron Klotz
20b5649ee9
Bug 1277075: Add MainThreadRuntime class to mscom glue, enabling safe initialization of COM security and exception handlers; r=jimm
...
MozReview-Commit-ID: BKDnWQLCYGI
--HG--
extra : rebase_source : 091ed78a5b30c674ad8a7964b0ae5ffe66e905e5
2016-07-14 16:54:53 -06:00
Aaron Klotz
f92a107e86
Bug 1287002: Add DynamicallyLinkedFunctionPtr helper class to mscom glue; r=jimm
...
MozReview-Commit-ID: JnsXxi3oQ9r
--HG--
extra : rebase_source : fd0806fcd47b3d060236db00277415a4cf07e9c7
2016-06-03 12:56:24 -06:00
Aaron Klotz
67768a9eb7
Bug 1287002: Utility functions for Microsoft COM glue; r=jimm
...
MozReview-Commit-ID: DTH2lIvKjX9
--HG--
extra : rebase_source : e7e4e32f2175322c4ab20a205e37f6b2d34822f8
2016-07-14 16:55:31 -06:00
Aaron Klotz
140fb74701
Bug 1287002: Add RAII class for entering a COM apartment; r=jimm
...
MozReview-Commit-ID: DEwU3vU1P5P
--HG--
extra : rebase_source : 05f2ce1b51e32e369965c189ead9071b05b6e498
2016-06-03 12:30:31 -06:00
Aaron Klotz
c8479a9f4c
Bug 1287002: Skeleton moz.build for ipc/mscom directory; r=billm
...
MozReview-Commit-ID: 4SDUWyTCppL
--HG--
extra : rebase_source : fd96ce17f38936e4e51bcc837c615cc80932f3f5
2016-06-03 12:29:21 -06:00
Aaron Klotz
cca20d7ddd
Bug 1285356: Fix blocklist initialization regressions; r=bsmedberg
...
MozReview-Commit-ID: AlWyzVhtPLL
--HG--
extra : rebase_source : 865aff712f83a567c16b81f4512e072a04f7c6df
2016-07-07 17:00:23 -06:00
Thomas Zimmermann
4bee1b2945
Bug 1288077: Forward declare arrays by including 'nsTArrayForwardDeclare.h', r=froydnj
...
MozReview-Commit-ID: 4RBeHDyhQgr
2016-07-20 17:29:36 +02:00
Ting-Yu Chou
9876771de6
Bug 1287044 - Annotate pending IPC messages when OOM due to too many of them. r=billm
...
--HG--
extra : rebase_source : 7d4493eb9d88eeb6a2d7912f01020f7831fb8dd3
2016-07-04 13:36:34 +08:00
Aaron Klotz
1e94ab2a1b
Bug 1263224: Add ability to wrap a COM method invocation and hand it off to the main thread for execution; r=jimm
...
MozReview-Commit-ID: EfoH3imaev5
--HG--
extra : rebase_source : d158c737c5ae789ea64bec99ab09b14a92e8c4f3
2016-07-19 13:31:25 -06:00
Aaron Klotz
76d0ed29d4
Bug 1263224: Adds COM interception that allows us to proxy COM invocations; r=jimm
...
MozReview-Commit-ID: 7dp0Jokg0X3
--HG--
extra : rebase_source : 6c8e2a85b896dbb143dfc5ecd8088b24524689d7
2016-07-27 11:44:56 -06:00
Aaron Klotz
05c8c56d9d
Bug 1263224: Add support for thread-safe weak references for COM-based objects; r=jimm
...
MozReview-Commit-ID: JxVMyDhNPs4
--HG--
extra : rebase_source : 66366989c31c6b4fb1e640e54ba3b81d3729526b
2016-07-19 13:36:55 -06:00
Aaron Klotz
89a48d5463
Bug 1263224: Adds MainThreadInvoker class for posting Asynchronous Procedure Calls to the main thread; r=jimm
...
MozReview-Commit-ID: 6Be0p0z9CXI
--HG--
extra : rebase_source : ca9f37da2e3da31efbdb1b770d70c7f28f07c37f
2016-07-19 13:35:36 -06:00
Aaron Klotz
62f0203838
Bug 1263224: Smart pointers for passing COM interface pointers around in other apartments; r=jimm
...
MozReview-Commit-ID: 377VvQ5PMCJ
--HG--
extra : rebase_source : c64ed8690ee42141ebe6aa97ef0b750c7e058647
2016-07-19 13:13:31 -06:00
Aaron Klotz
fcdf74c9f5
Bug 1287875: Adds a logging facility for intercepted COM traffic; r=jimm
...
MozReview-Commit-ID: BfjSAVOo18G
--HG--
extra : rebase_source : 70dd4a9fc6464f4168b0e97554efc8c8c416fb58
2016-07-14 17:11:33 -06:00
Aaron Klotz
a0b2e7cafa
Bug 1286986: Add glue to enable process-local registration of COM proxies at runtime; r=jimm
...
MozReview-Commit-ID: 7VTCPQa90Vv
--HG--
extra : rebase_source : 58808455042378883a4df8f97010702d03824e00
2016-07-27 11:45:08 -06:00
Aaron Klotz
85608bd12a
Bug 1273635: Enable alertable waits in content process main thread; r=jimm
...
MozReview-Commit-ID: 2qGdGj41M0n
--HG--
extra : rebase_source : 894ec7ef23b18fd2ed72bc909bc2c743aedaf40c
2016-05-11 12:49:49 -06:00
Aaron Klotz
b99626af7a
Bug 1261107: Adds code to marshal a Microsoft COM object and transfer its serialized proxy across IPDL; r=billm,jimm
...
MozReview-Commit-ID: BpSpue4Fq6G
--HG--
extra : rebase_source : 32a33339b3c6dcd69fadd6d2987bafd2ded9c689
2016-07-27 11:44:29 -06:00
Aaron Klotz
39c0509759
Bug 1261107: Add EnsureMTA class to ipc/mscom/Utils. This class synchronously executes a function on a background thread that resides in Microsoft COM's multithreaded apartment; r=jimm
...
MozReview-Commit-ID: KTE1VdCYS0O
--HG--
extra : rebase_source : e5dc30a20447830c1c33e4bc7479b56627ad52f9
2016-07-18 13:49:28 -06:00
Aaron Klotz
7f91347e43
Bug 1261107: Add IsCurrentThreadMTA() to ipc/mscom/Utils; r=jimm
...
MozReview-Commit-ID: 3ezKIAmvZZM
--HG--
extra : rebase_source : 50fc20f3e7fa19c94cdc37afc15e262ac479ac28
2016-07-18 13:47:34 -06:00
Aaron Klotz
6470186455
Bug 1268151: Clean up some dependencies in IPDL headers; r=billm
...
MozReview-Commit-ID: n0FkC1zcay
--HG--
extra : rebase_source : a56c34e5ab1fe9354be7b586a917b6eecff4cb31
2016-05-17 16:01:25 -06:00
David Anderson
6b2b817ec9
Add a callback for top-level actors to free themselves. (bug 1285364, r=billm)
...
--HG--
extra : rebase_source : 6954a2b34b521c886fba536cd7bedd5f30b94763
2016-07-13 11:21:58 -07:00
Nicholas Nethercote
a913f99107
Bug 1285554 - Remove remnants of widget/qt. r=dougt,mshal.
...
Because bug 1282866 removed Qt support but missed a bunch of things.
* * *
Bug 1285554 - more
--HG--
extra : rebase_source : c48d2485f1fdf1c961e08d91651bbca41e3a1a53
2016-07-12 09:16:45 +10:00
Alexandre Lissy
fd4d75f34b
Bug 1285157 - Remove SetTransport(aChannel) for NUWA r=cyu
...
MozReview-Commit-ID: HR8r9flyJDQ
--HG--
extra : rebase_source : bc0e284f6469292a0495501dc71017902247ddd3
2016-07-07 10:07:24 +02:00
Thomas Zimmermann
a8ff73abe9
Bug 1280600: Cleanup Bluetooth config and build scripts, r=glandium
...
Bluetooth availability depends on available driver; not the base system's
version. This patch separates both. Following other modules, it also moves
search-path setup for BT header files into the affected moz.build scripts.
MozReview-Commit-ID: 2hzjcJVTaLY
2016-07-11 15:16:56 +02:00
Chris Peterson
43c2748f66
Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj
2016-07-08 14:39:53 -07:00
Benjamin Smedberg
bf05496a83
Bug 1282866 - remove widget/qt and other supporting QT code, r=dougt. This patch does not remove all of the checks for MOZ_WIDGET_QT (which are dead code), but that will be a followup mentored bug.
...
MozReview-Commit-ID: EGqHHhCD7vD
--HG--
extra : rebase_source : a4b9593959dd3ba80189db47eabb056ea207490f
extra : amend_source : a744d833693f0fe7adbea961c00bb5fb55a91580
2016-07-07 12:14:25 -04:00
David Anderson
e6a98dc91b
Clean up Transport memory management in IPDL. (bug 1283744, r=billm)
2016-07-06 18:51:20 -07:00
stefanh@inbox.com
a0c9a2b459
Bug 1283559 - Remove obsolete OS X version checks in ipc/glue and dom/plugins/ipc. r=bsmedberg.
2016-07-06 18:34:05 +02:00
Jan de Mooij
96da4695c8
Bug 1283855
part 25 - Make JS_GC take JSContext instead of JSRuntime. r=terrence
2016-07-06 11:40:20 +02:00
Jan de Mooij
3ffa1fd00d
Bug 1283855
part 7 - Make JS_SetGCZeal take JSContext instead of JSRuntime. r=sfink
2016-07-05 11:06:05 +02:00
Jan de Mooij
31f7512e9f
Bug 1283855
part 5 - Make warning reporter APIs take JSContext instead of JSRuntime. r=arai
2016-07-05 11:06:05 +02:00
Andi-Bogdan Postelnicu
83208c5032
Bug 1283032 - initialize members from RunnableMethod in constructor. r=billm
...
MozReview-Commit-ID: L6tAqI1ci1b
--HG--
extra : rebase_source : 2dd6d1a121264a46aca958d468fc2a7fd92bab03
2016-07-01 16:05:28 +03:00
Kyle Huey
902d2d23ef
Bug 1283327: Factor out SynchronouslyCreatePBackground. r=billm
2016-06-30 13:54:06 -07:00
Chih-Yi Leu
04356f1b32
Bug 1282993 - Fix build error in Platform which don't support gamepad API. r=baku
...
--HG--
extra : amend_source : e53f5bcb7815716d5fa585b53b0dca00665a5718
2016-06-29 20:39:00 +02:00
Alexandre Lissy
d70c1609d8
Bug 1282559 - Followup for 1277705
and remove SetHandle() on Gonk r=billm
...
MozReview-Commit-ID: 2Xzl5UBcUrV
--HG--
extra : rebase_source : 9bbf1d05ee64c681d735ddc13b58bba4b56efc51
2016-06-27 22:32:44 +02:00
Chih-Yi Leu
8733310923
Bug 1221730 - Change GamepadServiceTest into webidl. r=qdot, r=baku
...
--HG--
extra : rebase_source : 8e04725e80467a17d1a1a775f791782abe842c1b
2016-06-28 00:26:00 +02:00
Chih-Yi Leu
42a49e9e8c
Bug 1221730 - Move gamepad API to PBackground. r=qdot, r=baku
...
--HG--
extra : rebase_source : 5ad6d31a770d0d7b1b10d6aebf693ed24fc956ca
2016-06-28 00:25:00 +02:00
Nathan Froyd
d448beedaf
Bug 1282141 - compensate for arc4random_buf not being available on Android; r=jld
...
As a followup to the recent patch that fixed warnings in this area, I
discovered that arc4random_buf actually isn't available on
Android (?)...possibly only when compiling with recent NDKs. This
change enables us to link successfully, as we can use libevent's
home-grown implementation.
2016-06-27 22:41:32 -04:00
Kershaw Chang
aa2bd5ea05
Bug 1256595 - Add frameOuterWindowID in nsILoadInfo, r=billm
2016-06-27 02:42:00 +02:00
Bill McCloskey
c1f8d7875e
Bug 1277705
- Simplify child_thread (r=dvander)
2016-06-24 13:16:49 -07:00
Bill McCloskey
ea68b7ab4e
Bug 1277705
- Remove result_codes (r=dvander)
2016-06-24 13:16:40 -07:00
Bill McCloskey
f70e677000
Bug 1277705
- Remove some child_process code (r=dvander)
2016-06-24 13:16:31 -07:00
Bill McCloskey
0a5b384f55
Bug 1277705
- Remove more notification-related files (r=dvander)
2016-06-24 13:16:22 -07:00
Bill McCloskey
db00162c58
Bug 1277705
- Remove child_process_info (r=dvander)
2016-06-24 13:16:14 -07:00
Bill McCloskey
4045bfae0a
Bug 1277705
- Remove Message::Sender interface (r=dvander)
2016-06-24 13:16:03 -07:00
Bill McCloskey
ae244aacff
Bug 1277705
- Remove child_process_host iter (r=dvander)
2016-06-24 13:15:55 -07:00
Bill McCloskey
cb8a9c03a3
Bug 1277705
- Remove waitable_event_watcher (r=dvander)
2016-06-24 13:15:41 -07:00
Bill McCloskey
e2d2de1ae8
Bug 1277705
- Remove chromium notification service (r=dvander)
2016-06-24 13:15:20 -07:00
Bill McCloskey
f20d7b5ed6
Bug 1277705
- Remove ChildProcessHost::InstanceCreated (r=dvander)
2016-06-24 13:14:55 -07:00
Bill McCloskey
ab96df2b7a
Bug 1268559 - Go back to ContentParent controlling process shutdown (i.e., backout bug 1262898) (r=dvander)
2016-06-24 13:13:45 -07:00
Bill McCloskey
b227db332b
Bug 1268559 - Remove extra EnsureProcessTerminated (r=dvander)
2016-06-24 13:11:42 -07:00
Bill McCloskey
9e69fb1443
Bug 1268559 - Make EnsureProcessTerminated non-blocking on Windows (r=dvander)
2016-06-24 13:10:42 -07:00
Boris Zbarsky
a436637236
Bug 1281582. Remove JSContext privates. r=jorendorff
2016-06-24 14:19:50 -04:00
Nathan Froyd
e0ab4c059f
Bug 1281596 - fix evutil_rand.c for clang/android builds; r=jld
...
clang apparently dislikes |return func(...)| in a function which returns
void. Remove the return to make everybody happy.
2016-06-23 17:16:25 -04:00
Andrea Marchesini
aac2306f2c
Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
...
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-23 10:53:14 +02:00
Carsten "Tomcat" Book
47aeb86e2c
Backed out changeset 1c5d78c7ba43 (bug 1269154) for bustage on a CLOSED TREE
...
--HG--
rename : dom/cache/CacheWorkerHolder.cpp => dom/cache/Feature.cpp
rename : dom/cache/CacheWorkerHolder.h => dom/cache/Feature.h
rename : dom/workers/WorkerHolder.h => dom/workers/WorkerFeature.h
extra : rebase_source : 49f9e9ce0500ac441fe97878cf9308804926544f
2016-06-23 10:13:54 +02:00
Andrea Marchesini
45087a7970
Bug 1269154 - Get rid of WorkerFeature: WorkerHolder, r=khuey
...
--HG--
rename : dom/cache/Feature.cpp => dom/cache/CacheWorkerHolder.cpp
rename : dom/cache/Feature.h => dom/cache/CacheWorkerHolder.h
rename : dom/workers/WorkerFeature.h => dom/workers/WorkerHolder.h
2016-06-22 17:24:35 +02:00
Gabor Krizsanits
34e5765a00
Bug 1277614 - Guarding child iteration in DestroySubtree. r=wmccloskey
2016-06-22 13:21:48 +02:00
Cervantes Yu
ce65905912
Bug 1268900 - Part 3: Test case for the IPDL keyword 'verify'. r=billm
...
MozReview-Commit-ID: KZeiDniAkoX
2016-06-22 17:52:07 +08:00
Cervantes Yu
e4edd8f2c6
Bug 1268900 - Part 2: Code generation for the IPC message verifier. r=billm
...
MozReview-Commit-ID: 8mJ53UeuHWu
2016-06-22 17:51:49 +08:00
Cervantes Yu
1873f9d596
Bug 1268900 - Part 1: IPDL parser change for message verifier. r=billm
...
MozReview-Commit-ID: 4i9AiyP2AzN
2016-06-22 17:51:32 +08:00
Thomas Zimmermann
97a43c0b93
Bug 1276927: Define HAVE_ANDROID_OS before including 'android_filesystem_config.h', r=fabrice
...
The preprocessor token HAVE_ANDROID_OS configures 'android_filesystem_config.h'
to include the correct header files from the environment.
MozReview-Commit-ID: oKwdjzDjij
2016-06-16 08:43:51 +01:00
Cervantes Yu
28706c5d87
Bug 1275398 - Use shmem for sending image data in IPCDataTransfer. r=nical
...
MozReview-Commit-ID: 9XETnSBXxEW
2016-06-16 00:57:46 +08:00
Cervantes Yu
3115f628a1
Bug 1272018 - Use shared memory to transfer drag image data. r=nical
...
MozReview-Commit-ID: K5r9LBQ1FO0
2016-06-15 13:49:13 +01:00
Sebastian Hengst
bb691db120
Backed out changeset b6c190b08824 (bug 1276927)
2016-06-15 12:23:52 +02:00
Thomas Zimmermann
565a7b74dc
Bug 1276927: Define HAVE_ANDROID_OS before including 'android_filesystem_config.h', r=fabrice
...
The preprocessor token HAVE_ANDROID_OS configures 'android_filesystem_config.h'
to include the correct header files from the environment.
MozReview-Commit-ID: oKwdjzDjij
2016-06-15 10:59:49 +01:00
David Anderson
d3bb5cb316
Add skeletal code for launching a GPU process. (bug 1271180 part 4, r=billm,jrmuizel)
...
--HG--
extra : rebase_source : 456e4b94a93191f85d90209459c5189ea165670d
2016-06-10 22:27:24 -04:00
David Anderson
910f73265e
Move TaskFactory from dom/plugins to ipc/glue. (bug 1271180 part 1, r=aklotz)
...
--HG--
rename : dom/plugins/ipc/TaskFactory.h => ipc/glue/TaskFactory.h
extra : rebase_source : 96b02ead0afb82a27d668927dd53d722b77e488b
2016-06-10 15:43:35 -04:00
Henrik Skupin
73b62156c7
Bug 950401 - Add process logging to OS X / BSD. r=bsmedberg
...
MozReview-Commit-ID: bEPQabbSP1
--HG--
extra : rebase_source : 115312fdb0f29a5914c5dcccb9d7ba7eae943ce0
2016-06-03 18:26:15 +02:00
Phil Ringnalda
5e0adb7d56
Back out 5 changesets (bug 1271180) for static analysis bustage
...
CLOSED TREE
Backed out changeset cfb53b780b18 (bug 1271180)
Backed out changeset 204b084385f8 (bug 1271180)
Backed out changeset 353da876be33 (bug 1271180)
Backed out changeset 4472dfbc1dc6 (bug 1271180)
Backed out changeset 81079e787b8a (bug 1271180)
--HG--
rename : ipc/glue/TaskFactory.h => dom/plugins/ipc/TaskFactory.h
2016-06-11 00:46:09 -07:00
David Anderson
d2678d4141
Add skeletal code for launching a GPU process. (bug 1271180 part 4, r=billm,jrmuizel)
...
--HG--
extra : rebase_source : 332f5cf6ca5e1f78fb2283a7e79b6b21654e9e59
2016-06-10 22:27:24 -04:00
David Anderson
995cadf738
Move TaskFactory from dom/plugins to ipc/glue. (bug 1271180 part 1, r=aklotz)
...
--HG--
rename : dom/plugins/ipc/TaskFactory.h => ipc/glue/TaskFactory.h
extra : rebase_source : 485012c5a08eb0ce2a4225ddfe9cbfb454fc4302
2016-06-10 15:43:35 -04:00
Jonathan Watt
b15368cfcb
Bug 1279451 - Remove a lot of unnecessary includes of nsAutoPtr.h. rs=sparky
2016-06-07 21:10:18 +01:00
James Andreou
7c273b3eb3
Bug 1276328 - Remove private browsing flags r=baku
...
--HG--
extra : rebase_source : e13f6b834ae22986776ca7cc3dd0cee3fc945992
2016-06-07 13:50:00 +02:00
Julian Seward
e00ffcdc37
Bug 1258183 - TSan: data race toolkit/components/telemetry/Telemetry.cpp in CanRecordBase (part 2, derace). r=chutten.
...
--HG--
extra : rebase_source : 403c8ec419ee8ac2ece248a8395480dbd3018c74
2016-06-08 17:46:24 +02:00
Christoph Diehl
053c555889
Bug 777067 - "Fuzzing: IPC Protocol Definition Language (IPDL) Protocols". r=wmccloskey
...
--HG--
extra : rebase_source : f256b70d6f81f82339e52ab4f6bc2d9b4b751c08
2016-05-30 16:33:00 +02:00
J. Ryan Stinnett
31a7472e66
Bug 1271102 - Revert back to 256 MiB message limit. r=billm
...
It appears to be hard to fix some sources of >128 MiB messages (e.g. IndexedDB),
so revert back to a 256MiB limit for the short term.
MozReview-Commit-ID: Jg2tJnqWOtd
2016-06-07 22:33:18 -05:00
Jan de Mooij
dad997a833
Bug 1277278 part 3 - Rename error reporter callback to warning reporter, assert it's only used for warnings. r=luke
...
--HG--
extra : rebase_source : ac1febc5220d649853f35c29de89a5e9ffb4fe98
2016-06-07 20:30:48 +02:00
Bob Owen
5714578c95
Bug 1278528: Don't try to initialize the sandbox TargetServices when we are not sandboxed. r=jimm
...
MozReview-Commit-ID: EpXy9LYXwQL
2016-06-07 14:03:51 +01:00
Gabor Krizsanits
6c0e1dc69f
Bug 1146873 - Handling sandbox policy setup failures. r=bobowen
2016-06-06 15:13:33 +02:00
Jed Davis
78e49e2efb
Bug 1114647 - Use firefox for child processes instead of plugin-container. r=ted
...
Disabled on Mac (content processes need to use plugin-container.app for
UI reasons) and on Linux unless --disable-sandboxing (build issues).
Based on work by George Wright <george@mozilla.com>.
--HG--
extra : amend_source : 43986e25743de21e3ddfb7893e3ed550fe6eef76
2016-06-03 12:49:39 -07:00
Honza Bambas
8db609c916
Bug 1275117 - Fix static strings leaks when mozlogging is on. r=jduell
...
--HG--
extra : rebase_source : 2a08f4eee9a900a4e34d58084eb222aedd319464
2016-05-31 08:11:00 -04:00
Carsten "Tomcat" Book
834b1d77f0
Backed out changeset f7481a586899 (bug 1258183)
2016-06-03 15:14:51 +02:00
Julian Seward
71f85a0741
Bug 1258183 - TSan: data race toolkit/components/telemetry/Telemetry.cpp in CanRecordBase (part 2, derace). r=chutten.
...
--HG--
extra : rebase_source : 322f4fb1826a1182d2b4f0450e013eaef5858398
2016-06-03 12:13:53 +02:00
Boris Zbarsky
f86c21cecc
Bug 1276317 part 1. Change JS_SetGCZeal to take a JSRuntime, not a JSContext. r=jandem
2016-06-02 10:34:38 -04:00
Haik Aftandilian
c95d552240
Bug 1275430 - Add telemetry and logging to record content process failures to start; r=billm
...
MozReview-Commit-ID: LWeZbDBwfX5
2016-06-01 15:13:59 -07:00
Jonathan Hao
525c086187
Bug 1259871 - Replace getSimpleCodebasePrincipal with createCodebasePrincipal. r=sicking
...
MozReview-Commit-ID: Frx0CjBzuve
--HG--
extra : histedit_source : 036eb321d9ccb20e0e071ba588b0a1249eb34bdd
2016-05-24 18:01:34 +08:00
Alexandre Lissy
3ac31d4e70
Bug 1275299 - Make SocketTask a CancelableRunnable r=tzimmermann
...
MozReview-Commit-ID: JHVQ6BFvS1Z
--HG--
extra : rebase_source : 716d827e989d7a9e94478612c73f54f4bfe5aca5
2016-05-26 12:40:25 +02:00
Andrea Marchesini
8d58a3b347
Bug 1274363 - BroadcastChannel should dispatch events in the correct order, r=smaug
2016-05-30 10:48:40 +02:00
Chris Peterson
11ef78ae89
Bug 1275016 - Rename Endian.h to EndianUtils.h to avoid #include confusion with Android's endian.h stdlib header. r=froydnj
...
--HG--
rename : mfbt/Endian.h => mfbt/EndianUtils.h
2016-05-22 13:31:11 -07:00
Andrew McCreight
5848fe3b73
Bug 1276318
, part 2 - Fix mode lines in ipc/glue. r=billm
...
MessageChannel.{h,cpp}, MessageLink.{h,cpp}, and ProtocolUtils.h are
using 4-space indent so I left those alone.
2016-05-27 14:54:31 -07:00
Andrew McCreight
9449c5e62d
Bug 1276318
, part 1 - Fix leading tabs in ipc/glue. r=billm
...
Also remove a weird mode line so the script can fix it more easily in
the next part.
2016-05-27 14:54:30 -07:00
Makoto Kato
9b769d7fc5
Bug 1286158 - Add Android 64bit support for libevent. r=billm
...
MozReview-Commit-ID: E84CVv8IZAE
--HG--
extra : rebase_source : 84210fefb36f7ba35c2d8bf1298acbcdd17f0cdc
2016-07-15 14:28:29 +09:00
Bill McCloskey
7dbc02ed0f
Bug 1262671 - Use BufferList for Pickle (r=froydnj)
2016-05-27 09:57:41 -07:00
Bill McCloskey
2e4314c9a7
Bug 1262671 - IPC ReadData/ReadBytes elimination (r=froydnj)
2016-05-27 09:57:39 -07:00
Bill McCloskey
b7441af61a
Bug 1262671 - IPC sentinel checking (r=froydnj)
2016-05-27 09:57:38 -07:00
Bill McCloskey
291c555f34
Bug 1262671 - void** -> PickleIterator (r=froydnj)
2016-05-27 09:57:38 -07:00
Bill McCloskey
5b7911b430
Bug 1262671 - Remove unused TrimWriteData (r=froydnj)
2016-05-27 09:57:37 -07:00
Bill McCloskey
f159cad060
Bug 1273312 - Add task.h to ipdl unit tests (r=khuey)
2016-05-27 09:57:36 -07:00
Bill McCloskey
1369c6edad
Bug 1273307 - Remove copy constructor/assignment operator for Message/Pickle (r=froydnj)
2016-05-27 09:57:35 -07:00
Honza Bambas
ff31be3edd
Bug 1270752 - Fix lifetime of buffer passed to PR_SetEnv(). r=jduell
...
--HG--
extra : rebase_source : 7666e7e3f864fddb5536793a91c94bccf6bb2877
2016-05-26 03:18:00 -04:00
Bob Owen
ecee115838
Bug 1250125: Make a 0 security.sandbox.content.level turn off the content process sandbox. r=TimAbraldes
...
This also fixes a bug where we weren't setting parts of the policy correctly for levels 3 to 9.
MozReview-Commit-ID: IXsg2nGOqoa
--HG--
extra : rebase_source : 65c76a581dcd498c7d7d5b01e4f4e140acdb244f
2016-05-25 09:06:23 +01:00
Carsten "Tomcat" Book
805f86c2b5
Merge mozilla-central to mozilla-inbound
2016-05-24 15:13:51 +02:00
Carsten "Tomcat" Book
cb4337c62c
merge mozilla-inbound to mozilla-central a=merge
...
--HG--
rename : dom/presentation/tests/mochitest/file_presentation_non_receiver_oop.html => dom/presentation/tests/mochitest/file_presentation_non_receiver.html
rename : dom/presentation/tests/mochitest/file_presentation_non_receiver_inner_iframe_oop.html => dom/presentation/tests/mochitest/file_presentation_non_receiver_inner_iframe.html
rename : dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe_oop.html => dom/presentation/tests/mochitest/file_presentation_receiver_inner_iframe.html
2016-05-24 14:52:23 +02:00
Carsten "Tomcat" Book
0ed94efabc
Backed out changeset 0659c9235136 (bug 1274363) for memory leaks
...
--HG--
extra : rebase_source : 7fd1df522bb0cab48ca51d29140036f6a5a6a7cc
2016-05-24 09:37:23 +02:00
Andrea Marchesini
2d4ce92868
Bug 1274363 - BroadcastChannel should dispatch events in the correct order, r=smaug
2016-05-24 06:59:15 +02:00
Eric Rahm
d2eb11dfd1
Bug 1274404 - Annotate IPC message name and size when crashing due to message size. r=mccr8
2016-05-23 11:15:47 -07:00
Alessio Placitelli
d736f36a40
Bug 1145164 - Allow non-unitary increments to count histograms. r=gfritzsche
...
MozReview-Commit-ID: 7HxoGWmm22h
2016-05-10 09:49:00 +02:00
Alexandre Lissy
20b739aeda
Bug 1273520 - NS_NewRunnable* renaming and include task.h r=fabrice
...
MozReview-Commit-ID: BcAboKGMr3a
--HG--
extra : rebase_source : 6c5050527d8dffbce4a5e867bd48254a1041e657
2016-05-18 18:25:35 +02:00
Cervantes Yu
f3f969af61
Bug 1258317 - Part 2: Remove unused privilege in mozilla::ipc::TransferHandleTorProcess(). r=krizsa
...
Also fix a handle leak in mozilla::ipc::AnnotateProcessInformation().
MozReview-Commit-ID: DuepDytfoD2
--HG--
extra : rebase_source : 0b0dd05a3728e64962a774a2dcc35dc7646aa4dc
2016-05-06 19:01:29 +08:00
Chris Pearce
a7ee9fee8a
Bug 1271169 - Move all device binding code into librlz and remove static runtime requirement. r=glandium
...
I want the EME device binding/nodeId code to be callable from gtests, as well
as in plugin-container. I need this because I want to add a gtest that ensures
that we don't regress the EME/GMP device binding code. I want to call the GMP
device binding code in the gtest and in the GMP process, and compare the
result.
So we need to make it possible to link the device binding code into the gtests
as well as plugin-container. So move all code that device binding calls into
librlz, to make it easier to link against all the code required.
Note: the device binding code needs to be statically linked into
plugin-container so that it's covered by the Adobe CDM's voucher tool.
MozReview-Commit-ID: AvBAe1dh49Z
--HG--
rename : ipc/app/sha256.c => dom/media/gmp/rlz/sha256.c
rename : ipc/app/sha256.h => dom/media/gmp/rlz/sha256.h
extra : rebase_source : f60f1e68649fa90cbe1f2fe09f5f69948444b1df
2016-05-20 16:11:29 +12:00
Sebastian Hengst
63e3ff7608
Backed out changeset 2a2a4005e935 (bug 1274404) for Asan bustage: use of undeclared identifier 'CrashReporter'. r=backout on a CLOSED TREE
2016-05-21 19:36:27 +02:00
Eric Rahm
ff177872a0
Bug 1274404 - Annotate IPC message name and size when crashing due to message size. r=mccr8
2016-05-20 14:30:39 -07:00
Bob Owen
9d7707097f
Bug 1271601: If a child process fails to duplicate a TransportDescriptor pipe handle then send it anyway and get the target to duplicate. r=gabor
...
MozReview-Commit-ID: 5CKrQdDxGrg
2016-05-21 16:16:33 +01:00
Nathan Froyd
a5f42fc63a
Bug 1262937 - part 8 - factor out array length deserialization errors; r=jld
2016-05-21 04:07:56 -04:00
Nathan Froyd
647562c2d2
Bug 1262937 - part 7 - factor out union type deserialization errors; r=jld
2016-05-21 04:07:56 -04:00
Nathan Froyd
dfe775eb9f
Bug 1262937 - part 6 - enable custom error message for ipdl.py's checkedRead; r=jld
...
To enable string sharing, we're going to have helpful functions that
take a small, distinguishable, sharable string and construct a more
complete error message out of that. To do that easily with checkedRead,
we need to be able to pass custom parameters into the error function.
2016-05-21 04:07:56 -04:00
Nathan Froyd
dcc74a62c9
Bug 1262937 - part 5 - factor out actor reading code to a common base class; r=jld
...
Actor reading from IPC message is codegen'd with a lot of repeated code.
We can improve that by moving the core actor reading code out of
subclasses into IProtocolmanager. While we still need to codegen a bit
of code to cast the read actor to the proper type, the code overall is
smaller. The lone downside is that if we do encounter an error reading
the actor id out of the message, the precision of our crash messages is
reduced somewhat: we no longer have the protocol name doing the reading,
nor do we get crash report annotations, since we can't tell whether
we're in the parent or child process.
2016-05-21 04:07:56 -04:00
Nathan Froyd
bdd874023f
Bug 1262937 - part 4 - publically inherit from MessageListener in IProtocol; r=jld
...
IProtocolManager is templated over some listener type. In our IPDL
code, that type is always IProtocol, which is a subclass of
MessageListener. It's also important to note that IProtocol uses
protected inheritance from MessageListener; the generated code takes
advantage of this inheritance structure when it reads actors:
// ChannelListener is typedef'd to MessageListener
// Lookup here is IProtocolManager::Lookup
ChannelListener* listener = Lookup(id);
Lookup returns a pointer to the type over which IProtocolManager is
templated. As mentioned above, that type is always IProtocol. But
thanks to the containing class inheriting from *both* IProtocolManager
and IProtocol, the returned pointer can be silently upcasted to
MessageListener thanks to C++ visibility rules.
It's not clear that this restricted inheritance structure is actually
benefitting anybody, or that the inheritance hierarchy of protocol
classes is the best way to do things. This particular implementation
detail is getting in the way for the next improvement, so let's make the
protected inheritance public instead.
2016-05-21 04:07:56 -04:00
Nathan Froyd
2b69fc29e3
Bug 1262937 - part 3 - move quoting out of checkedRead; r=jld
...
checkedRead is set up to single-quote whatever message is passed in.
This scheme works great for all existing messages, but it makes some
callsites a little surprising ("where's the matching quote?") and
doesn't work well with message changes to be made in future patches.
Let's move the quoting out to client code.
2016-05-21 04:07:56 -04:00
Nathan Froyd
99e5f4a2e6
Bug 1262937 - part 2 - don't include the message name when complaining about handler failure; r=jld
...
Similar to part 1, this change enables the strings passed to
ProtocolErrorBreakpoint to be collapsed into a single string, saving
~60K of read-only data (!). This change does affect debuggability
slightly, but given that ProtocolErrorBreakpoint only tries to throw the
passed-in string to stderr, I don't think it's a huge deal.
2016-05-21 04:07:56 -04:00
Nathan Froyd
558d2f2756
Bug 1262937 - part 1 - don't include the protocol name in Clone error messages; r=jld
...
We have better ways of getting the protocol name at the point of the
error (e.g. backtraces). Removing it means the error message can be
condensed to a single string by the compiler/linking, saving ~8k of
read-only data.
2016-05-21 04:07:56 -04:00
Bob Owen
c43bf02cda
Bug 1035125 Part 8: Pass sandboxing pointers through XRE_InitChildProcess instead of linking to more functions in xul. r=aklotz,glandium
...
MozReview-Commit-ID: 5AiktOArpfU
--HG--
extra : rebase_source : 1ba3be949e2bfeb3b67687ab05d43342852ab764
2016-05-15 16:35:22 +01:00
Bob Owen
71b3258726
Bug 1035125 Part 4: Back out changeset 8ae39d920f5c and associated subsequent changes. r=glandium
...
The original changeset that is being backed out had comment:
Bug 1023941 - Part 2: Static-link the CRT into plugin-container.exe.
MozReview-Commit-ID: 1iPJghgd0t2
--HG--
extra : rebase_source : cbed4e43f51af8ea0c3adbfc150ed029fe0d0f57
2016-05-15 16:23:57 +01:00
Bob Owen
2447fbb7fa
Bug 1035125 Part 1: Back out changeset 1910714b56c6 and associated subsequent changes. r=bsmedberg
...
The original changeset that is being backed out had comment:
Bug 1023941 - Part 5: Loader hook to redirect the missing import.
The changes made in bug 1023941 were to work around the fact that with VS2013, msvcr120.dll imports kernel32!GetLogicalProcessorInformation, which is not available on Windows XP SP2.
In VS2015, the GetLogicalProcessorInformation requirement has moved into concrt140.dll (concurrency runtime), which we don't use.
So, now that our build infra is building with VS2015, we can remove the hooking and static runtime linking required to get the VS2013 fix to work.
In addition we need to do that to be able us to link the Chromium sandbox code into firefox.exe and get it to build and run with both VS2015 and VS2013.
MozReview-Commit-ID: 1tlXaYJ8dHH
--HG--
extra : rebase_source : 49b216e34fc5c77af96df1f67ee44c46d5368bfe
2016-05-15 16:23:56 +01:00
Andrew McCreight
6d6a335801
Bug 1272135, part 3 - Fix mode lines in ipc/chromium/. r=billm
...
This patch was automatically generated by my modeline.py script.
This does not change the modelines for any files in
ipc/chromium/src/third_party/libevent/, which are tab-indented.
2016-05-16 16:03:26 -07:00
Andrew McCreight
294da2e51d
Bug 1272135, part 2 - Delete two weird modelines in ipc/chromium. r=billm
...
This makes the automatic fixing in the next part easier.
2016-05-16 16:03:25 -07:00
Andrew McCreight
c5dcf53b3f
Bug 1272135, part 1 - Fix leading tab usage in ipc/chromium. r=billm
...
These are also detected by my modeline.py script.
2016-05-16 16:03:25 -07:00
Ben Kelly
4c8ab874ba
Bug 1093357 P2 Add an RAII type to safely handle serialized stream actors. r=jld
...
* * *
Bug 1093357 P2 interdiff 001 address review feedback
* * *
Bug 1093357 P2 interdiff 002 refactor to IPCStream type
2016-05-15 10:32:09 -07:00
Ben Kelly
749d2c1626
Bug 1093357 P1 Implement an actor for streaming pipes from child to parent. r=jld
...
* * *
Bug 1093357 P1 interdiff 001 address review feedback
2016-05-15 10:32:09 -07:00
Chris Peterson
8a9e2d2bd4
Bug 1272513 - Part 2: Remove redundant -Wshadow CXXFLAGS from moz.build files. r=glandium
2016-05-14 00:54:55 -07:00
Chris Peterson
353ee65255
Bug 1272513 - Part 1: Suppress -Wshadow warnings-as-errors in some directories. r=glandium
2016-05-11 00:00:01 -07:00
Kyle Huey
223dd41b6f
Bug 1269056: Part 3 - Consolidate XPCOM and chromium event queues for the main thread. r=froydnj
2016-05-12 15:15:43 -07:00
Kyle Huey
3425031e06
Bug 1269056: Part 2 - Consolidate XPCOM and chromium event queues for non-main nsThreads. r=froydnj
2016-05-12 15:15:43 -07:00
Kyle Huey
c8143d07d7
Bug 1272415: Don't include task.h everywhere. r=froydnj
2016-05-12 15:15:43 -07:00
Kyle Huey
27e718ab4b
Bug 1272418: Remove the completely unused observer_list_threadsafe.h. r=froydnj
2016-05-12 15:15:43 -07:00
Kyle Huey
d3cc4b02b6
Bug 1268160: Assert that PostIdleTask is only used on the main thread. r=jld
2016-05-12 15:15:43 -07:00
Jed Davis
7e91f65f43
Bug 1191452 - Limit IPDL-generated Move()s to Recv methods. r=billm
...
Specifically, it's important not to try to use Move() in the
Alloc+SendConstructor convenience method, because that Move()s the same
value twice (as discovered in bug 1186706), and neither callee
requires rvalue references in that case anyway.
This also removes the previous feature of calling makeCxxArgs with
params=0 to omit the message's input parameters, because it's not being
used and doesn't appear to have ever been used; it could be restored
(e.g., as paramsems=None) if needed.
2016-05-11 09:37:00 +02:00
Mason Chang
1ed5c6b7b4
Bug 1120485. Add more logging to find failed uses of MessageChannel::mEvent. r=milan
2016-05-10 17:59:15 -07:00
Kyle Huey
c1f8ae3c88
Bug 1268313: Fix up IPDL tests. r=billm
2016-05-09 11:00:31 -07:00
Eric Rahm
f8f1218f4e
Bug 1268616 - Part 3: Reduce the maxmimum IPC message size. r=billm
...
This reduces the maximum message size to 128MiB which matches what is done
upstream. The goal is to help reduce OOMs due to overly large messages.
2016-05-04 19:20:19 -07:00
Eric Rahm
9caf0110e8
Bug 1268616 - Part 2: Stop sending messages that are too large. r=billm
2016-05-04 17:38:53 -07:00
Eric Rahm
1e768352f4
Bug 1268616 - Part 1: Check max message size before resizing. r=billm
2016-05-04 17:25:41 -07:00
Kyle Huey
941ab1f522
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Kyle Huey
44cee0989e
Bug 1268313: Part 6 - Replace NewRunnableMethod with NS_NewRunnableMethod. r=froydnj
2016-05-05 01:45:00 -07:00
Kyle Huey
156b8c1933
Bug 1268313: Part 4 - Replace NewCancelableRunnableMethod with NS_NewCancelableRunnableMethod. r=froydnj
2016-05-05 01:44:59 -07:00
Kyle Huey
7f54121b91
Bug 1268313: Part 3 - Replace some NewCancelableRunnableMethod with NS_NewNonOwningCancelableRunnableMethod. r=froydnj
2016-05-05 01:44:59 -07:00
Kyle Huey
7311b10562
Bug 1268313: Part 2 - Replace some NewRunnableMethods with NS_NewNonOwningRunnableMethod. r=froydnj
2016-05-05 01:44:59 -07:00
Kyle Huey
63a71e96b0
Bug 1268313: Part 1 - Be explicit about which NewRunnableMethod callers want to be able to cancel. r=froydnj
2016-05-05 01:44:59 -07:00
Mason Chang
c30cae967e
Bug 1120485. Add logging to check if we're closing MessageChannel::mHandle twice. r=milan
2016-05-04 11:03:49 -07:00
Thomas Zimmermann
649a51e22d
Bug 1267214: Add |DBusConnectionDelete| for using |DBusConnection| with |UniquePtr|, r=shuang
...
The new helper |DBusConnectionDelete| deletes instances of |DBusConnection|
that are stored in a |UniquePtr|. It will close open connections before un-
ref'ing them.
For shared DBus connections, continue to use |RefPtr|.
MozReview-Commit-ID: 5BASyiMrL4P
2016-05-04 11:41:07 +02:00
Kyle Huey
b15d2f593c
Bug 1266595: Followup to fix IPDL tests. r=billm
...
--HG--
extra : rebase_source : a0142b175ef1e0d46a6139dccdbdb8b7debda1c9
2016-05-03 22:36:50 -07:00
Andrew McCreight
a1f8b0904f
Bug 1269365, part 3 - Use infallible array allocation in implementSpecialArrayPickling. r=froydnj
...
As with part 2, this will turn some allocation failures during
deserialization from IPC FatalError crashes into OOM crashes.
2016-05-03 09:29:39 -07:00
Andrew McCreight
0b08b02edb
Bug 1269365, part 2 - Make ParamTraits<nsTArray<E>>::Read use infallible allocation. r=froydnj
...
This will turn allocation failures during deserialization from IPC
FatalError crashes into OOM crashes.
2016-05-03 09:29:39 -07:00
Andrew McCreight
6266959835
Bug 1269365, part 1 - Swap fallible and infallible TArray ParamTraits. r=froydnj
...
This should not change the behavior, because fallible_t is passed to
the array methods.
Rename from InfallibleTArray to nsTArray, because that is more usual.
Remove unnecessary spaces from some template definitions.
2016-05-03 09:29:39 -07:00
Andrew McCreight
56f812a0d5
Bug 1268938 - Use the name of the original message in Send for reply telemetry. r=billm
...
aReply usually won't have a name properly set, but aMsg does. To avoid
accessing aMsg after it dies, copy the pointer to the name.
2016-05-02 20:37:40 -07:00
Thomas Zimmermann
42c137c01d
Bug 1268432: Replace |Task| with |Runnable| in B2G code r=fabrice
...
This patch converts the remaining B2G code from |Task| to |Runnable| and
fixes related API calls. This is a follow-up to bug 1266595.
2016-05-02 10:27:15 -07:00
Carsten "Tomcat" Book
f13688180e
Backed out changeset af51821b2fc5 (bug 1268313) for causing very frequent bc7 memory leak
...
--HG--
extra : rebase_source : 0af725bfab61b8f86e0243490aa970535f726503
2016-04-29 14:22:04 +02:00
Carsten "Tomcat" Book
dfff02b90d
Backed out changeset fd833da413ad (bug 1268313)
...
--HG--
extra : rebase_source : f857127091900871034f44d89095895abe9932dc
2016-04-29 14:21:25 +02:00
Carsten "Tomcat" Book
5d43a44ec6
Backed out changeset 3f2f3fcac66b (bug 1268313)
...
--HG--
extra : rebase_source : 438e7d7077b900ef252bd628f4559424eebd211f
2016-04-29 14:21:23 +02:00
Carsten "Tomcat" Book
4bb6f48de3
Backed out changeset 6a8d57e8fa8e (bug 1268313)
...
--HG--
extra : rebase_source : 8690897fd41073f22c8b25db5e8ce88df76a2bb7
2016-04-29 14:21:22 +02:00
Carsten "Tomcat" Book
de92769e7e
Backed out changeset 4bcb784492bb (bug 1268313)
...
--HG--
extra : rebase_source : f2f752ab73f5bbf31a909892a0fac0f42c894430
2016-04-29 14:21:18 +02:00
Carsten "Tomcat" Book
ba3fe0975c
Backed out changeset 85ce8cb0639a (bug 1268313)
...
--HG--
extra : rebase_source : 56d1cf41a2dc4959b67f834e07192a5c772176a8
2016-04-29 14:21:16 +02:00
Nicholas Nethercote
2511b2c327
Bug 1267550 (part 2) - Rename MOZ_WARN_UNUSED_RESULT as MOZ_MUST_USE. r=froydnj.
...
It's an annotation that is used a lot, and should be used even more, so a
shorter name is better.
MozReview-Commit-ID: 1VS4Dney4WX
--HG--
extra : rebase_source : b26919c1b0fcb32e5339adeef5be5becae6032cf
2016-04-27 14:16:50 +10:00
Kyle Huey
48a594a09e
Bug 1268313: Part 7 - Move NS_NewRunnableMethod and friends to mozilla::NewRunnableMethod. r=froydnj
2016-04-28 14:08:25 -07:00
Kyle Huey
12d497cb39
Bug 1268313: Part 6 - Replace NewRunnableMethod with NS_NewRunnableMethod. r=froydnj
2016-04-28 14:08:24 -07:00
Kyle Huey
c724d0c867
Bug 1268313: Part 4 - Replace NewCancelableRunnableMethod with NS_NewCancelableRunnableMethod. r=froydnj
2016-04-28 14:08:24 -07:00
Kyle Huey
a13954d079
Bug 1268313: Part 3 - Replace some NewCancelableRunnableMethod with NS_NewNonOwningCancelableRunnableMethod. r=froydnj
2016-04-28 14:08:24 -07:00
Kyle Huey
72c9966484
Bug 1268313: Part 2 - Replace some NewRunnableMethods with NS_NewNonOwningRunnableMethod. r=froydnj
2016-04-28 14:08:24 -07:00
Kyle Huey
e713dbefec
Bug 1268313: Part 1 - Be explicit about which NewRunnableMethod callers want to be able to cancel. r=froydnj
2016-04-28 14:08:24 -07:00
Andrew McCreight
b24fdb8375
Bug 1268130, part 2 - Make ByteLengthIsValid failures fatal in release builds. r=froydnj
...
This will stop us from sending truncated messages, which will make the
receiver crash.
2016-04-28 10:00:46 -07:00