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