Thomas Zimmermann
6f916378f6
Bug 1266954: Remove temporary |ScopedClose| from PDU receive code, r=jacheng
...
|ScopedClose| doesn't support temporary objects. This patch removes it.
2016-04-28 10:57:19 +02:00
Kyle Huey
7579799b01
Bug 1266595: Replace Chromium Task with Runnable. r=froydnj
2016-04-27 17:06:05 -07:00
Andrea Marchesini
a9b65ecfb0
Bug 1261094 - Improve how MessageChannel::mInterruptStack is used in IPC code, r=jld
2016-04-28 07:21:49 +08:00
Yoshi Huang
7ae2e09f40
Bug 1263496 - Part 2: fix for NS_NULLPRINCIPAL_CONTRACTID. r=bholley
...
This fixed the locations listed by
http://searchfox.org/mozilla-central/search?q=NS_NULLPRINCIPAL_CONTRACTID&redirect=true
2016-04-27 18:38:03 +08:00
Gregor Wagner
acecad8f82
Bug 1267577 - Move nsRunnable to mozilla::Runnable. r=gsvelto
2016-04-27 12:05:40 +02:00
Bill McCloskey
a179f9fce9
Bug 1264820 - Measure IPC reply size in telemetry (r=mccr8)
2016-04-26 13:50:56 -07:00
Kyle Huey
c73656947b
Bug 1265927: Move nsRunnable to mozilla::Runnable, CancelableRunnable to mozilla::CancelableRunnable. r=froydnj
2016-04-25 17:23:21 -07:00
Bas Schouten
a7d662a2b1
Bug 1262898: Keep the GeckoChildProcessHost alive for the lifetime of the CompositorBridge and ImageBridge parent actors. r=jimm r=nical
...
MozReview-Commit-ID: 1rsWqRpbhgN
2016-04-25 03:54:07 +00:00
Jacek Caban
2ef6ade2c4
Bug 1258317 - cross compilation fixup.
2016-04-23 13:04:59 +02:00
Andrew McCreight
f2d40800c8
Bug 1266578 - OOM crash if malloc fails in ProcessIncomingMessages(). r=billm
...
This allocation is for no more than 32kb, so make it infallible rather than try to recover.
2016-04-21 15:23:25 -07:00
Gabor Krizsanits
ed1fa0cf48
Bug 1263953 - Reduce the growth rate of Pickle. r=wmccloskey
2016-04-21 15:09:35 +02:00
Cervantes Yu
a7ec2e32a7
Bug 1258317 - Part 1: Annotate the crash report with process information on failure to transfer an IPC transport to another process. r=krizsa
...
MozReview-Commit-ID: LE2FnrQgzze
--HG--
extra : rebase_source : ff891052985ae8411725f7df7c21eaacae84732f
2016-04-19 19:08:55 +08:00
Daniel Holbert
2b3d8925f1
Backed out changeset ae89c24b7692 (bug 1264820) for -Werror build bustage
...
MozReview-Commit-ID: ECNuGMefyqC
2016-04-20 15:41:32 -07:00
Bill McCloskey
b7e2b4e82e
Bug 1264820 - Measure IPC reply size in telemetry (r=mccr8)
2016-04-20 14:55:35 -07:00
Thomas Zimmermann
bfa5556aa6
Bug 1264887: Make DBus helpers available on desktop builds, r=shuang
2016-04-19 16:26:01 +02:00
Carsten "Tomcat" Book
d42e16c441
Backed out changeset fdac1cd6e6e0 (bug 1264887) for static build bustage
...
--HG--
extra : rebase_source : cae1e97ee51fbfccb5de1eaed82302539ae3e9ac
2016-04-19 12:07:33 +02:00
Thomas Zimmermann
6bbc2790c5
Bug 1264887: Make DBus helpers available on desktop builds, r=shuang
2016-04-19 11:09:01 +02:00
Charles Collicutt
e8aa4cfeed
Bug 1263429 - Don't build libevent with sysctl on Linux. r=billm
2016-04-10 02:19:00 +02:00
Andrew McCreight
fac746e08b
Bug 1265036
- Use NS_ABORT_OOM() if try_realloc() fails. r=billm
...
This will give the crash a proper OOM annotation.
2016-04-16 10:47:46 -07:00
Bill McCloskey
19ff386143
Bug 1263292 - Handle calling realloc(0) (r=jld)
2016-04-14 17:54:03 -07:00
Bill McCloskey
85b6e29755
Bug 1264398 - Avoid extra assign() on windows in IPC code (r=jld)
2016-04-14 17:54:03 -07:00
Andrew McCreight
60582081ac
Bug 1264662 - Record IPC message capacity instead of size. r=billm
...
Capacity includes internal fragmentation, while size does not.
This requires making capacity() public, but that seems benign.
2016-04-14 17:46:52 -07:00
Nathan Froyd
840ebe5f59
Bug 1264661 - remove EMIT_LOGGING_CODE constant from IPDL compiler; r=jld
...
It's not needed anymore (hasn't been for a while, apparently).
2016-04-14 14:58:17 -04:00
Ting-Yu Chou
964d4d12f1
Bug 1260736 - Let the client to filter out its interested messages to lower the number of times entering the monitor in PeekMessages(). r=dvander
2016-04-13 09:51:34 +08:00
Tanvi Vyas
2ca721ef81
Bug 1105556 - Allow loadInfo->loadingNode and loadInfo->loadingPrincipal to be null for TYPE_DOCUMENT loads. r=sicking, ckerschb
2016-04-13 16:30:16 -07:00
Peter Chang
b9897cc163
Bug 1263499 - unify the QuickExit function, r=bsmedberg
...
MozReview-Commit-ID: DGJbyXULHPe
--HG--
extra : rebase_source : 26ad1fdc609060a578a27f3d44168160ec026c09
2016-04-11 16:12:33 +08:00
Kyle Huey
2709afd167
Bug 1263311: Part 3 - s/nsCancelableRunnable/CancelableRunnable/g. r=froydnj
2016-04-11 11:40:06 -07:00
Kyle Huey
1cc02aa8c6
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Thomas Zimmermann
8f74b7274d
Bug 1246931: Add DBus I/O helpers, r=shuang
...
The I/O helpers for DBus are based on |RawDBusConnection|'s |Send*| and
|Watch| methods. Moving them out of this class will make them available
to other modules.
2016-04-12 16:14:39 +02:00
Thomas Zimmermann
a782f3ba54
Bug 1246931: Add support for |RefPtr<DBusPendingCall>|, r=shuang
...
|RefPtr<DBusPendingCall>| manages instances of |DBusPendingCall| and frees
each instance when its last reference gets released.
2016-04-12 16:14:39 +02:00
Thomas Zimmermann
8de02e105a
Bug 1246931: Add support for |RefPtr<DBusMessage>|, r=shuang
...
|RefPtr<DBusMessage>| manages instances of |DBusMessage| and frees each
instance when its last reference gets released.
2016-04-12 16:14:39 +02:00
Thomas Zimmermann
23e3fe81ec
Bug 1246931: Add support for |RefPtr<DBusConnection>| and convert callers, r=shuang
...
|RefPtr<DBusConnection>| manages instances of |DBusConnection| and frees
each instance when its last reference gets released.
2016-04-12 16:14:39 +02:00
Thomas Zimmermann
4ec30bc8a8
Bug 1246931: Use |DBusConnection| in |DBusWatcher|, r=shuang
...
This patch replaces all references to |RawDBusConnection| in |DBusWatcher|
with |DBusConnection|.
2016-04-12 16:14:39 +02:00
Thomas Zimmermann
c78e56f403
Bug 1246931: Move |DBusWatcher| into its own files, r=shuang
...
|DBusWatcher| should be usable from outside of |RawDBusConnection|, so we
move it into its own files.
2016-04-12 16:14:39 +02:00
Thomas Zimmermann
a35d2c01a5
Bug 1246931: Include dbus.h in DBus IPC headers, r=shuang
...
The header files for DBus IPC forward declare several DBus types in
a way that interferes with the actual declarations. It's better to
include the DBus headers directly
2016-04-12 16:14:39 +02:00
Chris Pearce
114ad957d2
Bug 1245789 - Load Widevine CDM with sandbox level USER_RESTRICTED instead of USER_LOCKDOWN. r=bobowen
...
Otherwise Widevine CDM won't load on Windows. Other GMPs are still loaded at USER_LOCKDOWN.
MozReview-Commit-ID: aCTG1tQuwt
2016-04-12 16:12:20 +12:00
Wes Kocher
7d2cebe912
Backed out 3 changesets (bug 1263311) for Windows build failures in ServiceWorkerPrivate.cpp CLOSED TREE
...
Backed out changeset 0434a548e1fe (bug 1263311)
Backed out changeset 60b1be29446c (bug 1263311)
Backed out changeset 18132498bc40 (bug 1263311)
MozReview-Commit-ID: LPEa05QobdQ
2016-04-11 12:50:56 -07:00
Kyle Huey
d200ed89d0
Bug 1263311: Part 3 - s/nsCancelableRunnable/CancelableRunnable/g. r=froydnj
2016-04-11 11:40:06 -07:00
Kyle Huey
f13a6fc866
Bug 1263311: Part 1 - Change the nsICancelableRunnable interface. r=froydnj
2016-04-11 11:40:06 -07:00
Kyle Huey
84b3f40dbd
Bug 1263314: Remove NonThreadSafe. r=jld
2016-04-11 11:40:06 -07:00
Charles Collicutt
c6f9ac9288
Bug 1261567 - Include compat dir in libevent include path. r=billm
2016-04-11 07:43:48 -07:00
Andrea Marchesini
b0d38d029e
Bug 1258221 - patch 3 - Rename FileSystemTaskBase to FileSystemTaskChildBase, r=smaug
2016-04-09 19:17:28 +01:00
Andrea Marchesini
9345155089
Bug 1258221 - patch 2 - Port FileSystem API and DeviceStorage API to PBackground, r=smaug
2016-04-09 19:17:02 +01:00
George Wright
e75c590407
Revert "Bug 1114647 - Rename "plugin-container" to "firefox-webcontent" and create a new executable target for Win32 called "firefox-plugin-container" r=ted,jhamer" because of widespread breakage due to whitelisted executable names in third parties
...
This reverts commit a94b5f861bd0d25043a3bb7a0c3128acf8c0b93a.
--HG--
rename : ipc/contentproc/firefox-webcontent.cpp => ipc/contentproc/plugin-container.cpp
2016-04-08 13:34:40 -04:00
George Wright
2f920d9592
Revert "Bug 1261416 - Rename firefox-plugin-container back to plugin-container to satisfy Flash's protected mode checks, and ensure that we launch the correct binary r=ted" because of widespread breakage due to whitelisted executable names in third parties
...
This reverts commit 2d44e8ffaf63a32292f8e5b8fdd1485d0a462afc.
2016-04-08 13:33:27 -04:00
Thomas Zimmermann
4bc7ae6624
Bug 1261340: Don't refer to |ScopedFreePtrTraits| in |RawDBusConnection|, r=shuang
...
The class template |ScopedFreePtrTrais| has been removed. This patch
updates |RawDBusConnection| to not refer to it any longer. Instead, the
provided helper method |empty| is implemented directly.
2016-04-08 10:07:28 +02:00
Bill McCloskey
d148e665af
Bug 1235633 - IPC OOM mitigation by eliminating buffer copying (r=jld)
2016-04-07 17:15:26 -07:00
Nils Ohlmeier [:drno]
4d0aaaafea
Bug 1244926: added TCP socket filter to only allow outgoing STUN. r=jesup
...
MozReview-Commit-ID: 8PpL6Z0za71
--HG--
rename : media/mtransport/stun_udp_socket_filter.cpp => media/mtransport/stun_socket_filter.cpp
rename : media/mtransport/stun_udp_socket_filter.h => media/mtransport/stun_socket_filter.h
rename : netwerk/base/nsIUDPSocketFilter.idl => netwerk/base/nsISocketFilter.idl
extra : rebase_source : 2acf092e587a19a2019f463fa0a015373d3881d3
2016-02-11 01:18:46 -08:00
William Chen
303bd1fd42
Bug 1259590
- Remove B2G ACL code. r=khuey
2016-04-07 09:50:01 -07:00
Nathan Froyd
8d0d4b9bbd
Bug 1262463 - part 3 - out-of-line NS_RUNTIMEABORT calls in IPDL-generated code; r=jld
...
We do this for the same reasons outlined in part 1: calls to
NS_RUNTIMEABORT are rather large and we generate a lot of them (~1000
left after part 1). This patch reduces .text size by ~20K on x86-64
Linux.
2016-04-06 10:53:06 -04:00
Nathan Froyd
a21ccf2f8e
Bug 1262463 - part 2 - don't pass the other process pid into FatalError; r=jld
...
We don't do anything with it in terms of error reporting, we pass in 0
in the child process, and if you're in a debugger, presumably you can
figure out the other process's PID yourself.
2016-04-06 10:31:21 -04:00
Nathan Froyd
b8099db36d
Bug 1262463 - part 1 - turn NS_RUNTIMEABORTs in protocols into FatalErrors; r=jld
...
NS_RUNTIMEABORT generates rather a lot of code, since we have to load up
five arguments, two of which are strings, and then call NS_DebugBreak.
Instead of doing this, let's just call each protocol's FatalError, which
only requires loading one string argument. Each protocol's FatalError
calls mozilla::ipc::FatalError, which communicates exactly the same
information as the inlined NS_RUNTIMEABORT would (e.g. crash reporter
annotations), but at a significant code savings: this patch reduces
.text by ~80K on Linux x86-64.
2016-04-06 10:21:32 -04:00
Nathan Froyd
87311fb554
Bug 1262458 - rename {msg,reply}Class-related things to reflect new functional reality; r=jld
...
In bug 1259428, we changes a bunch of things that were previously
classes to refer to functions instead. Jed suggested in bug 1259428
comment 10 that we might want to rename things to reflect the new world
order as a followup. Consider it done.
2016-04-06 09:42:40 -04:00
Carsten "Tomcat" Book
1542317855
merge mozilla-inbound to mozilla-central a=merge
2016-04-07 11:52:05 +02:00
Andrea Marchesini
8c046971a8
Bug 1262506 - Unused variable in a runnable in BackgroundParentImpl, r=ehsan
2016-04-06 17:25:26 +01:00
Mason Chang
7e8b1d4295
Bug 1120485. Log CloseHandle error reason during MessageChannel shutdown failure. r=milan
2016-04-06 09:03:22 -07:00
Carsten "Tomcat" Book
1a78cc422f
Merge mozilla-central to fx-team
2016-04-06 12:20:37 +02:00
malayaleecoder
3a67285d62
Bug 1256366 - Remove linear and exponential stats collection from histogram.cc. r=gfritzsche
...
--HG--
extra : rebase_source : 0432153cd79b63c1618056988ff354d5a9b1f4ea
2016-04-04 11:58:20 +05:30
George Wright
50500e36f3
Bug 1261416 - Rename firefox-plugin-container back to plugin-container to satisfy Flash's protected mode checks, and ensure that we launch the correct binary r=ted
2016-04-04 18:03:33 -04:00
Andrew McCreight
4bd42b6939
Bug 1261099 - Avoid two Message copies in MaybeUndeferIncall. r=billm
2016-04-04 10:13:43 -07:00
Nathan Froyd
697425fd51
Bug 1259428 - part 6 - remove unneeded MessageDecl methods; r=jld
...
msgCast and replyCast were only used for the dodgy casts we removed in
part 2; the msgCxxType was only called by msgCast.
2016-03-28 11:43:54 -04:00
Nathan Froyd
ebe8d01895
Bug 1259428 - part 5 - convert Message subclasses to constructor functions; r=jld
...
All we use our Message subclasses for nowadays is the constructor, so we
might as well strip the class away and just have functions that perform
the construction for us. This change eliminates unnecessary vtables as
well as making the included headers somewhat smaller, which is always
nice.
2016-03-28 11:42:47 -04:00
Nathan Froyd
4d7242a2c4
Bug 1259428 - part 4 - remove prtime.h from generated protocol headers; r=jld
...
This include was only needed for PR_Now(), which is no longer called by
the headers.
2016-03-25 18:27:11 -04:00
Nathan Froyd
9cbbaad4ad
Bug 1259428 - part 3 - remove Log() methods from generated message subclasses; r=jld
...
These are no longer called by anything. The generated Message
subclasses now have no behavior of their own, and can be removed in
subsequent patches.
2016-03-25 17:09:41 -04:00
Nathan Froyd
4a4de50da7
Bug 1259428 - part 2 - remove dodgy static_cast downcasts from logging statements; r=jld
...
Various bits of IPDL code would do something like:
Message* m = ...;
if (m.type() == particular message type) {
static_cast<ParticularMessageType*>(m)->name();
}
The static_cast is a remnant of having to do the downcast to access the
Log() method on the concrete subclass. Since name() is defined on
Message, there's no need for these casts anymore, so let's remove them.
2016-03-25 17:07:26 -04:00
Nathan Froyd
63fe89bd2e
Bug 1259428 - part 1 - don't call Log methods of generated method classes; r=jld
...
The first step to eliminating all the generated Message subclasses the
IPDL compiler spits out is to move the functionality of their Log
methods someplace else. In addition to eliminating the need for the Log
methods, this change has the welcome effect of moving a bunch of code
that would be generated hundreds of times into a single place, which
should reduce code size a bit (debug builds only). We don't actually
remove the generation of the Log methods; that change will be done for a
future patch.
2016-03-25 17:02:38 -04:00
Kyle Huey
3b346fca73
Bug 1260806: Remove some more dead MessageLoop code. r=jld
2016-04-01 11:28:53 -07:00
Bill McCloskey
b3613ec89e
Bug 1260908 - Record IPC message sizes (r=dvander)
2016-04-01 11:22:27 -07:00
Wes Kocher
7db1b1b28a
Backed out 2 changesets (bug 1260908) for build bustage
...
Backed out changeset 5582a25d289d (bug 1260908)
Backed out changeset 9612cef48d43 (bug 1260908)
MozReview-Commit-ID: BKeDiGZ8Z8B
2016-04-01 10:44:27 -07:00
Bill McCloskey
5672f5992c
Bug 1260908 - Record IPC message sizes (r=dvander)
2016-04-01 09:59:19 -07:00
Kartikaya Gupta
f6b5ae39ac
Bug 1257862 - Allow running things from the delayed work queue during a nested event loop. r=khuey,dvander
...
MozReview-Commit-ID: BmLM6j9yFEK
2016-04-01 08:25:40 -04:00
Cervantes Yu
f77c0e8c25
Bug 1258663 - Crash annotate system call failures in the IPC transport. r=gabor
2016-04-01 14:33:52 +08:00
George Wright
5c454494ce
Bug 1114647 - Rename "plugin-container" to "firefox-webcontent" and create a new executable target for Win32 called "firefox-plugin-container" r=ted,jhamer
...
--HG--
rename : ipc/app/module.ver => ipc/app/plugin-container/module.ver
rename : ipc/contentproc/plugin-container.cpp => ipc/contentproc/firefox-webcontent.cpp
2016-04-01 02:12:59 -04:00
Bill McCloskey
61e7e588d1
Bug 1253123 - Remove message_router (r=jld) a=kwierso
...
MozReview-Commit-ID: KYiLsnFFJMA
--HG--
extra : source : f0dd577131c74afcd7118f64a138be78c39ec786
2016-02-15 10:12:39 -08:00
Bill McCloskey
698aacacb8
Bug 1253123 - Remove ipc_channel_proxy (r=jld) a=kwierso
...
MozReview-Commit-ID: CwO2Ufog5qX
--HG--
extra : source : d345149b216921e65dfe6c1ed86cc7c61941bb78
2016-02-15 10:13:46 -08:00
Bill McCloskey
bdd97ae771
Bug 1253123 - Remove ipc_sync_message (r=jld) a=kwierso
...
MozReview-Commit-ID: 9xTyGYXyuTY
--HG--
extra : source : 6c8278e8047ee59720ecafffe1a3c568e10a22e7
2016-02-15 10:09:02 -08:00
Bill McCloskey
f29390f263
Bug 1222101 - Reorder some thread code (r=jld) a=kwierso
...
MozReview-Commit-ID: Alg40mu9aU3
2016-03-30 12:20:20 -07:00
Wes Kocher
e593da093a
Backed out 3 changesets (bug 1253123) for build bustage CLOSED TREE
...
Backed out changeset f0dd577131c7 (bug 1253123)
Backed out changeset d345149b2169 (bug 1253123)
Backed out changeset 6c8278e8047e (bug 1253123)
MozReview-Commit-ID: HL9U2qqeDnY
2016-03-30 10:20:20 -07:00
Wes Kocher
dd58e668a4
Backed out changeset 00f8c8fde8ca (bug 1222101) for build bustage CLOSED TREE
...
MozReview-Commit-ID: F6PINhcfsF4
2016-03-30 10:19:29 -07:00
Bill McCloskey
5b8924bd94
Bug 1222101 - Reorder some thread code (r=jld)
2016-03-30 09:58:41 -07:00
Bill McCloskey
5ef16752e3
Bug 1253123 - Remove message_router (r=jld)
2016-03-30 09:58:41 -07:00
Bill McCloskey
6dd58aa726
Bug 1253123 - Remove ipc_channel_proxy (r=jld)
2016-03-30 09:58:40 -07:00
Bill McCloskey
2bdeb1e82b
Bug 1253123 - Remove ipc_sync_message (r=jld)
2016-03-30 09:58:40 -07:00
Carsten "Tomcat" Book
dfee85ecef
Merge mozilla-central to mozilla-inbound
2016-04-05 16:54:06 +02:00
Gregor Wagner
12b792e209
Merge b2g-inbound -> mozilla-central. a=tomcat
2016-04-05 10:50:38 +02:00
Gregor Wagner
2c3b158272
Merge
2016-04-04 12:08:53 +02:00
James Cheng
c43f377eb6
Bug 1249518
- Make DaemonSocketPDU able to send multiple file descriptors in single unit. r=tzimmermann
2016-03-30 14:58:13 +08:00
Thomas Zimmermann
d0fbe5c8f1
Bug 1261307: Convert Unix socket IPC code to |UniquePtr|, r=nfroyd
2016-04-05 13:40:11 +02:00
Thomas Zimmermann
bd8f7f577e
Bug 1261307: Convert RIL sockets to |UniquePtr|, r=nfroyd
2016-04-05 13:40:11 +02:00
Thomas Zimmermann
a1ade1d06b
Bug 1261307: Convert |StreamSocketConsumer::ReceiveSocketData| to |UniquePtr|, r=nfroyd
...
|ReceiveSocketData| is a public interface of |StreamSocketConsumer| that
is overloaded by inherited classes. Therefore we convert it separately.
2016-04-05 13:40:11 +02:00
Gregor Wagner
8fc859766a
Bug 1254471
- Fix MessageChannel.cpp error unused variable transaction. r=billm
2016-03-08 16:53:43 +01:00
Jonathan Watt
3d09b32ad7
Bug 1253094, part 3 - Stop using DebugOnly for class/struct members in ipc/. r=billm
...
MozReview-Commit-ID: L16CD7xtn3V
2016-02-26 15:52:07 +00:00
Bill McCloskey
b70d78b809
Bug 1248750 - Eliminate intentional IPC crashes (r=dvander)
2016-03-06 14:38:07 -08:00
Bill McCloskey
f8784ed28b
Back out bug 1248750 on a CLOSED TREE
2016-03-04 16:04:41 -08:00
Bill McCloskey
816b25e191
Bug 1248750 - Eliminate intentional IPC crashes (r=dvander)
2016-03-04 14:51:08 -08:00
Bill McCloskey
70bb5a0c46
Bug 1240985 - IPC fuzzer (r=gabor)
2016-03-04 14:51:08 -08:00
Steve Singer
c44a614250
Bug 1246501 - Add ppc specific atomic operations to ipc/chromium. r=Waldo
2016-02-13 23:23:50 -05:00
Kan-Ru Chen
073f4faafd
Bug 1258312 - Add crash annotation to EnumSerializer r=jld
...
MozReview-Commit-ID: DShQTzeFGQc
--HG--
extra : rebase_source : 0e58ceda347d78e1b4598b5f295ce73b5a7bbf63
2016-03-30 12:32:26 +08:00
Kan-Ru Chen
c8fc5be7d5
Bug 1258312 - Make Pickle::Resize infallible r=jld
...
MozReview-Commit-ID: AfAxXOwOoq1
--HG--
extra : rebase_source : 2abbcda5792d969b7730512b6ea69a99c59b3182
2016-03-30 11:01:20 +08:00
Mike Hommey
d06322ac66
Bug 1257888 - Link chromium mutex-based atomics implementation to webrtc signaling tests. r=froydnj
2016-03-30 07:21:07 +09:00
Ting-Yu Chou
9c7a4ca7f0
Bug 1255968 - Part 1: Let the callback of PeekMessages() to return a boolean to be able to break out the loop. r=dvander
...
--HG--
extra : rebase_source : 98a2baf9c3926cdb0740979d4cb5c11d7cd6a312
2016-03-28 11:02:18 +08:00
Kyle Huey
d9265a3eaf
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00
Kyle Huey
29596ecfff
Bug 1258908: Rename TYPE_MOZILLA_UI to TYPE_MOZILLA_PARENT. r=jld
2016-03-28 10:28:14 -07:00
Kyle Huey
20daca1a98
Bug 1258905: Remove a bunch of dead IPC code. r=jld
2016-03-28 10:28:14 -07:00
Jan Beich
f25aa29f5e
Bug 1233275 - Copy environment for IPC using NSPR. r=jld
...
MozReview-Commit-ID: J2kBklLfnib
--HG--
extra : rebase_source : 0cb47586b07af53f9c4efe4df85c9ac5f7b76443
2016-03-24 17:52:40 +00:00
Jan Beich
8d1716d194
Bug 1252246 - Try to use PTHREAD_PROCESS_SHARED for CrossProcessMutex on more Unices. r=glandium f=kats
2016-02-29 21:34:46 +00:00
Boris Zbarsky
4cf7f16bdc
Bug 1252212. Make the RIL WorkerRun implemetations not leave exceptions on the JSContext. r=khuey
2016-03-01 13:49:21 -05:00
Makoto Kato
bbda6e0e32
Bug 1250403 - Part 2. Import crbug #354405 for aarch64. r=billm
...
MozReview-Commit-ID: A3sArb6IE6m
--HG--
extra : rebase_source : 6dd76bd3e9c4b9a0d3b87f4fd5ef6bec10aa8d70
2016-02-28 19:11:09 +09:00
Makoto Kato
e16e8da9c0
Bug 1250403 - Part 1. Define ARCH_CPU_ARM64 instead of ARCH_CPU_AARCH64. r=billm
...
Chromium defines ARCH_CPU_ARM64 and ARCH_CPU_ARM_FAMILY for aarch64. So we should use it instead. Because webrtc and sandbox already define it
MozReview-Commit-ID: C7GYnpRryhA
--HG--
extra : rebase_source : d51ec0b0b9a4cd6eb85c453a54a556e0db6ee99f
2016-02-28 19:26:18 +09:00
Thomas Zimmermann
0fc8c3e5a1
Bug 1251541: Replace |nsAutoArrayPtr<>| with |UniquePtr<[]>| in Bluetooth interfaces, r=shuang
...
This patch replaces all instances of |nsAutoArrayPtr<>| in the Bluetooth
interfaces with |UniquePtr<[]>|.
In contrast to |nsAutoArrayPtr<>|, |UniquePtr<[]>| doesn't convert to the
underlying pointer type implicitly. This is a problem for the daemon-socket
runnable, which depend on this feature when calling their operations. To
solve this issue, the patch adds |ConvertArg| for each arguemnt, which does
the conversion explicitly.
2016-02-29 12:15:08 +01:00
Ehsan Akhgari
262f630e11
Bug 1251226 - Avoid passing a std::wstring through the variadic method; r=bobowen
2016-02-25 11:12:18 -05:00
Lee Salzman
f4dcfa8838
Bug 1245241
- fix SharedMemoryBasic_android CloseHandle to null out handle. r=billm a=kwierso
2016-02-22 14:47:46 -05:00
Ehsan Akhgari
51460c44b6
Bug 1188045 - Part 2: Delay-load xul.dll when built with clang-cl
...
This reverts an earlier work-around for this issue.
2016-02-22 09:55:58 -05:00
Trevor Saunders
323e9867c1
bug 1249622 - make ThreadData::list_lock_ a StaticMutex r=froydnj
...
We probably want to convert all of ipc/ to use mozilla mutexs, but this is
enough to stop creating a static constructor for tracked_object.cc
2016-02-19 15:54:37 -05:00
Lee Salzman
05c95317a9
Bug 1245241
- part 4 - move SharedMemorySysV details into nsShmImage. r=nical
2016-02-18 10:56:15 -05:00
Lee Salzman
f5674ca6c2
Bug 1245241
- part 3 - remove unused AdoptShmem from IPDL. r=billm
2016-02-18 10:56:15 -05:00
Lee Salzman
d4c87aeb45
Bug 1245241
- part 2 - remove TYPE_SYSV Shmems from IPDL. r=billm
2016-02-18 10:56:15 -05:00
Lee Salzman
41d307c324
Bug 1245241
- part 1 - Close Shmem file handles after mapping them when possible to reduce exhaustion issues. r=billm
2016-02-18 10:56:15 -05:00
Cervantes Yu
27e4eadbce
Bug 1248896 - don't conditional compile on config ENABLE_TESTS in Nuwa. r=khuey
2016-02-18 15:33:59 +08:00
Lee Salzman
b16506b7f1
Bug 1247429 - Warn instead of error if shmem deallocated before IPDL sends it. r=nical
2016-02-16 14:59:01 -05:00
Jan Varga
9b4516ad03
Bug 1183959 - Move FlushPendingFileDeletions() from PContent to PBackground; r=khuey
2016-02-10 16:11:25 +01:00
Bogdan Postelnicu
f0bc5ab6b9
Bug 1246886
- initialize mMoved in move contructor. r=billm
...
--HG--
extra : rebase_source : b11a58da8d930c768b4500913c2ac303c7425ee8
2016-02-09 11:21:39 +02:00
Bob Owen
ae44a4e6a3
Bug 1193861: Log to the process log when launching a sandboxed process on Windows. r=billm
2016-02-09 08:31:18 +00:00
Ehsan Akhgari
cad8b5cc29
Backout bug 1203096 because the issue that the workaround was trying to solve is still there
2016-02-07 14:46:05 -05:00
Bill McCloskey
c52ba119a6
Bug 1237458 - Use MOZ_RELEASE_ASSERT for IPC assertions (r=jld)
2016-02-05 10:42:38 -08:00
Carsten "Tomcat" Book
dfa1a3c8c7
Backed out changeset 0d358cdf1ce4 (bug 1237458) for bustage
2016-02-05 08:13:50 +01:00
Bill McCloskey
c08caf0331
Bug 1210099 - Use diagnostic assert for union discriminator checks (r=jld)
2016-02-04 22:30:06 -08:00
Bill McCloskey
fa01fbff59
Bug 1237458 - Use MOZ_RELEASE_ASSERT for IPC assertions (r=jld)
2016-02-04 22:29:05 -08:00
Thomas Zimmermann
24f81344e9
Bug 1194721: Add helpers for Gonk sensors daemon, r=gsvelto
...
This patch adds helpers for using the Gonk sensors daemon. The types
and functions allow for packing and unpacking messages of the daemon's
IPC protocol.
2016-02-04 12:35:13 +01:00
Thomas Zimmermann
3df84ac272
Bug 1194721: Add additional PDU pack and unpack functions, r=shuang
...
This patch adds PDU pack and unpack functions for 64-bit integer
values and floating-point values.
2016-02-04 12:35:13 +01:00
Thomas Zimmermann
3b094a9795
Bug 1194721: Add |DaemonRunnable8|, r=shuang
...
The runnable template |DaemonRunnable8| runs an operation with 8
arguments.
2016-02-04 12:35:13 +01:00
Thomas Zimmermann
92239ff4ba
Bug 1194721: Add PDU_ prefix to daemon PDU constants, r=shuang
...
Something defines HEADER_SIZE when including the PDU headers from
hal/gonk. This break the HEADER_SIZE constant in |DaemonSocketPDU|.
This patch adds the prefix PDU_ to all PDU constants.
2016-02-04 12:35:13 +01:00
Carsten "Tomcat" Book
8c92f9ea36
Backed out changeset bbadd0a1367d (bug 1194721)
2016-02-03 16:24:31 +01:00
Carsten "Tomcat" Book
d0607eace5
Backed out changeset e7a5a6174748 (bug 1194721)
2016-02-03 16:24:29 +01:00
Carsten "Tomcat" Book
ea09a32fab
Backed out changeset 2a5cf57e8b67 (bug 1194721)
2016-02-03 16:24:28 +01:00
Carsten "Tomcat" Book
a7bbc5b9ff
Backed out changeset 2a7dbf51f1e8 (bug 1194721)
2016-02-03 16:24:26 +01:00
Thomas Zimmermann
3951be0bb5
Bug 1194721: Add helpers for Gonk sensors daemon, r=gsvelto
...
This patch adds helpers for using the Gonk sensors daemon. The types
and functions allow for packing and unpacking messages of the daemon's
IPC protocol.
2016-02-03 15:16:00 +01:00
Thomas Zimmermann
3cd78ac553
Bug 1194721: Add additional PDU pack and unpack functions, r=shuang
...
This patch adds PDU pack and unpack functions for 64-bit integer
values and floating-point values.
2016-02-03 15:16:00 +01:00
Thomas Zimmermann
e612fcd867
Bug 1194721: Add |DaemonRunnable8|, r=shuang
...
The runnable template |DaemonRunnable8| runs an operation with 8
arguments.
2016-02-03 15:16:00 +01:00
Thomas Zimmermann
3dbf835678
Bug 1194721: Add PDU_ prefix to daemon PDU constants, r=shuang
...
Something defines HEADER_SIZE when including the PDU headers from
hal/gonk. This break the HEADER_SIZE constant in |DaemonSocketPDU|.
This patch adds the prefix PDU_ to all PDU constants.
2016-02-03 15:16:00 +01:00
Birunthan Mohanathas
d7371d07d0
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-02-02 17:36:30 +02:00
Bill McCloskey
c091f01a39
Bug 1191145 - Stop blocking scripts when handling IPC messages (r=dvander)
2016-02-01 20:43:29 -08:00
Bob Owen
3620820c27
Bug 1244774: Correct wchar_t/char16_t VS2015 compilation problem caused by patches for bug 1173371
. r=jimm
2016-02-01 19:48:15 +00:00
Nicolas Silva
cd021cdc29
Bug 1208226 - Don't crash when failing to map a segment of shared memory. r=sotaro, billm
2016-02-01 16:11:00 +01:00
Bob Owen
3b94d53e47
Bug 1173371
Part 3: Add sandbox policy rule to allow read access to the Firefox program directory when it is on a network drive. r=aklotz
2016-02-01 08:59:01 +00:00
Phil Ringnalda
d381b4bca6
Back out 7 changesets (bug 1235261) for cpptest failures in TestTArray
...
CLOSED TREE
Backed out changeset d66c3f19a210 (bug 1235261)
Backed out changeset 467d945426bb (bug 1235261)
Backed out changeset 32b61df13142 (bug 1235261)
Backed out changeset c50bb8ed4196 (bug 1235261)
Backed out changeset 0ff0fa6fe81f (bug 1235261)
Backed out changeset df70e89669da (bug 1235261)
Backed out changeset 064969357fc9 (bug 1235261)
2016-01-31 10:10:57 -08:00
Birunthan Mohanathas
373593275e
Bug 1235261 - Part 1: Rename nsAutoTArray to AutoTArray. r=froydnj
2016-01-31 17:12:12 +02:00
Jacek Caban
9e4a3887ed
Bug 1240589 - Cross compilation fixup.
2016-01-30 17:31:37 +01:00
Xidorn Quan
dd6be4d4ca
Bug 1241901 part 4 - Stop using nsAutoPtr for holding primitive arrays. r=froydnj
...
--HG--
extra : source : 683ad831dc3e7fc197cbfe1b53665c777b3158ab
2016-01-30 10:33:41 +11:00
Wes Kocher
b9d77f5943
Backed out changeset 2c56aed63687 (bug 1219482) to hopefully fix the intermittent hazard failures CLOSED TREE
...
--HG--
extra : commitid : 7egFNnxx2ut
2016-01-29 10:15:38 -08:00
Bill McCloskey
c663839ade
Bug 1240871 - Don't allow implicit "async" in IPDL (r=mccr8,billm)
2016-01-28 20:56:37 -08:00
sajitk
6fdb9b782e
Bug 1219482 - Replace PRLogModuleInfo with LazyLogModule in various files. r=bsmedberg
...
--HG--
extra : rebase_source : 37e8f53a8aa5242058ab8fc867804cbc8940653e
2016-01-28 10:35:00 -05:00
Ehsan Akhgari
7df848228b
Bug 1203096 - Remove the clang-cl workaround added in bug 1188045 which seems to be no longer needed
2016-01-28 10:22:49 -05:00
Jed Davis
bef42ef3d4
Bug 1240911 - Prevent SerializedStructuredCloneBuffer from escaping into the heap. r=amarchesini
2016-01-28 08:43:46 +01:00
Bill McCloskey
453e4526b6
Bug 1240985 - Stop returning MsgNotAllowed (r=dvander)
2016-01-27 15:09:05 -08:00
Bill McCloskey
49ec6f0e34
Bug 1240985 - Check WasTransactionCanceled after timeout (and avoid timing out) (r=dvander)
2016-01-27 15:09:04 -08:00
Bill McCloskey
665b58c933
Bug 1240985 - Null out mRecvd if message it corresponds to is cancelled (r=dvander)
2016-01-27 15:09:03 -08:00
Bill McCloskey
9cb4b0e9d5
Bug 1240985 - Always enqueue OnMaybeDequeueOne task when receiving a message (r=dvander)
2016-01-27 15:09:01 -08:00
Bill McCloskey
6d330d1e7d
Bug 1240985 - Hold off processing some messages during timeout (r=dvander)
2016-01-27 15:09:00 -08:00
Bill McCloskey
ece4f66221
Bug 1240985 - Make intentional crash happen sooner when cancelling a racy sync message (r=dvander)
2016-01-27 15:08:59 -08:00
Bill McCloskey
681c2be709
Bug 1240985 - Fix some timeout/cancel interactions (r=dvander)
2016-01-27 15:08:58 -08:00
Bill McCloskey
9b71f5ba33
Bug 1240985 - Add mLastError to track sync Send errors better (r=dvander)
2016-01-27 15:08:57 -08:00
Bill McCloskey
25b5bed2af
Bug 1240985 - Crash when trying to cancel while dispatching urgent message (r=dvander)
2016-01-27 15:08:54 -08:00
Nicholas Nethercote
26360d6c45
Bug 1239864 (part 9) - Use the new rect iterators in layout/ and ipc/. r=dholbert.
...
--HG--
extra : rebase_source : d5558c39bd3cfe85ee6f247eea8bab33f2f5027f
2016-01-18 17:20:59 -08:00
Nathan Froyd
90918b40e9
Bug 1243430 - remove stray carriage returns from MessagePump.cpp; r=me
...
DONTBUILD because whitespace-only changes are trivial.
2016-01-26 11:30:03 -05:00
Wes Kocher
5648c229cc
Backed out 10 changesets (bug 1242097, bug 1240985) for near-permafailing in test_plugin_focus.html
...
Backed out changeset 30f1acd9387f (bug 1240985)
Backed out changeset 6d7f80a057f0 (bug 1240985)
Backed out changeset c3dfc2c674ff (bug 1240985)
Backed out changeset b7f2ce03b34e (bug 1240985)
Backed out changeset 2c0c0ed35656 (bug 1240985)
Backed out changeset 85c8cb422bad (bug 1240985)
Backed out changeset 06b4cb890ab0 (bug 1240985)
Backed out changeset f10c0445c450 (bug 1240985)
Backed out changeset 62eaf89ab82f (bug 1242097)
Backed out changeset b94c1a472d46 (bug 1240985)
--HG--
extra : commitid : 2iDH7HLUMiO
2016-01-26 09:55:59 -08:00
Wes Kocher
28c6b17a8f
Backed out changeset 296fd9d50c25 (bug 1240985)
...
--HG--
extra : commitid : 1uiqg6HJ5kS
2016-01-26 09:55:24 -08:00
Jan de Mooij
ffba220766
Bug 1240985 followup - Make CancelMessage constructor |explicit|. r=bustage, CLOSED TREE
2016-01-26 08:49:48 +01:00
Bill McCloskey
43897699b1
Bug 1240985 - Stop returning MsgNotAllowed (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
004730c364
Bug 1240985 - Check WasTransactionCanceled after timeout (and avoid timing out) (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
3e1276dc1a
Bug 1240985 - Null out mRecvd if message it corresponds to is cancelled (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
1ea1154361
Bug 1240985 - Always enqueue OnMaybeDequeueOne task when receiving a message (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
bed9507f92
Bug 1240985 - Hold off processing some messages during timeout (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
20989f2902
Bug 1240985 - Make intentional crash happen sooner when cancelling a racy sync message (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
230e3aab23
Bug 1240985 - Fix some timeout/cancel interactions (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
6c7d6d7d7e
Bug 1240985 - Add mLastError to track sync Send errors better (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
27e6da673a
Bug 1240985 - Crash when trying to cancel while dispatching urgent message (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
dd544927e1
Bug 1240985 - Back out "Stop returning MsgNotAllowed" patch.
2016-01-24 17:31:11 -08:00
Bill McCloskey
548907bd62
Bug 1240985 - Fix transaction ID when sending cancel message
2016-01-24 17:30:51 -08:00
Aaron Klotz
1880f9540d
Bug 1240607 - Force CreateWindow hooks to be detours. r=jmathies
2016-01-18 14:17:16 -07:00
Nicholas Nethercote
2e3da0d24d
Bug 1241370 - Don't strdup() the message name in InterruptFrame. r=billm.
...
It's not necessary, because all message names are string literals.
--HG--
extra : rebase_source : 5adc437f4747589ee5e2a8582e2666dc569ef569
2016-01-20 19:00:01 -08:00
Bill McCloskey
0cbd486903
Bug 1240985 - Make sure to queue mDequeueOneTasks after cancellation (r=dvander)
2016-01-21 07:38:27 -08:00
Bill McCloskey
dc169e992e
Bug 1240985 - Stop returning MsgNotAllowed (r=dvander)
2016-01-21 07:38:26 -08:00
Bill McCloskey
78d4767d25
Bug 1240985 - Return false when trying to Send while dispatching urgent (r=dvander)
2016-01-21 07:38:25 -08:00
Bill McCloskey
e64d1645e5
Bug 1240985 - Check for cancellation during ProcessPendingRequests (r=dvander)
2016-01-21 07:38:24 -08:00
Bill McCloskey
7ed2dcdf02
Bug 1240985 - Fix bug where mAwaitingSyncReply can be overwritten in Send after Cancel (r=dvander)
2016-01-21 07:38:23 -08:00
Bill McCloskey
596df96eee
Bug 1240985 - Fix cancel during timeout (r=dvander)
2016-01-21 07:38:22 -08:00
Bill McCloskey
538d2f8db9
Bug 1240985 - Add some MessageChannel logging (r=dvander)
2016-01-21 07:38:21 -08:00
Bill McCloskey
b336ddb3ad
Bug 1240985 - IPC glib deadlock fix (r=jld)
2016-01-21 07:38:20 -08:00
Wes Kocher
7b2fec233a
Backed out 9 changesets (bug 1240985) for various Windows build failures CLOSED TREE
...
Backed out changeset 1a5165c7be18 (bug 1240985)
Backed out changeset 26e6fe3875a5 (bug 1240985)
Backed out changeset b87f893bd6aa (bug 1240985)
Backed out changeset 3fcd50d83821 (bug 1240985)
Backed out changeset 488690ba4c8f (bug 1240985)
Backed out changeset a7eecc68ca20 (bug 1240985)
Backed out changeset 12de76467424 (bug 1240985)
Backed out changeset 34f87cc8ac24 (bug 1240985)
Backed out changeset fddcf8b3b088 (bug 1240985)
--HG--
extra : commitid : HHtLm1o5wWx
2016-01-20 17:22:12 -08:00
Andrew McCreight
4e8ae41af1
Bug 1240985 - Fix variadic macro on Windows. r=bustage CLOSED TREE
2016-01-20 17:05:15 -08:00
Bill McCloskey
d7d6c573c8
Bug 1240985 - Make sure to queue mDequeueOneTasks after cancellation (r=dvander)
2016-01-20 16:21:16 -08:00
Bill McCloskey
01a23f6bef
Bug 1240985 - Stop returning MsgNotAllowed (r=dvander)
2016-01-20 16:21:16 -08:00
Bill McCloskey
961f4af53c
Bug 1240985 - Return false when trying to Send while dispatching urgent (r=dvander)
2016-01-20 16:21:16 -08:00
Bill McCloskey
adab8ac1e6
Bug 1240985 - Check for cancellation during ProcessPendingRequests (r=dvander)
2016-01-20 16:21:16 -08:00
Bill McCloskey
6adb2b6441
Bug 1240985 - Fix bug where mAwaitingSyncReply can be overwritten in Send after Cancel (r=dvander)
2016-01-20 16:21:16 -08:00
Bill McCloskey
227fa04346
Bug 1240985 - Fix cancel during timeout (r=dvander)
2016-01-20 16:21:16 -08:00
Bill McCloskey
eddd3a1616
Bug 1240985 - Add some MessageChannel logging (r=dvander)
2016-01-20 16:21:16 -08:00
Bill McCloskey
17233773c3
Bug 1240985 - IPC glib deadlock fix (r=jld)
2016-01-20 16:21:16 -08:00
David Rajchenbach-Teller
583ca7286d
Bug 1224374
- Profiler labels for the top 26-100 chrome hangs;r=BenWa
...
--HG--
extra : rebase_source : 39e94507c0288863e495322a6899ff009840870d
2016-01-15 11:38:03 +01:00