Commit Graph

1322 Commits

Author SHA1 Message Date
Gina Yeh
0b1f5c036d Bug 804436 - Patch 1 : Add listening status to UnixSocket, r=gyeh 2012-10-26 17:28:34 +08:00
Ehsan Akhgari
f117c7a7b0 Backed out 2 changesets (bug 579517)
Backed out changeset 5298adc70963
Backed out changeset 86ccf7c918ce (bug 579517)
2012-10-25 12:32:24 -04:00
Ehsan Akhgari
48b5c1a608 Code hygiene: don't use PR_TRUE and PR_FALSE, and use stdint types instead of PRInt types (no bug really, but you could say bug 579517) 2012-10-25 11:48:19 -04:00
Bobby Holley
dc33cae831 Bug 789224 - Separate certificate principals out from CAPS. r=dveditz
There's no longer any reason why "certificate principals" need to be principals at all.
I tried to rip them out entirely, but it looks like they're still used vestigially at XPI
install time to display author information. But there's no reason that they have to be
porkbarreled into the security-critical objects that we pass around all over the place.
So let's make them their own deal.

I was tempted to call them "certificate holders", but that would involve renaming methods and
cause more compat fuss than necessary.

--HG--
rename : caps/idl/nsISignatureVerifier.idl => security/manager/ssl/public/nsISignatureVerifier.idl
2012-10-22 08:29:56 +02:00
Bobby Holley
9f03d6c96b Bug 789224 - Remove capability manager stuff in nsScriptSecurityManager. r=mrbkap 2012-10-22 08:29:55 +02:00
Kyle Machulis
ac48f9fd4b Bug 800249 - Patch 2: Add ability to retreive connected socket address as a string; r=cjones 2012-10-17 17:11:05 -07:00
Kyle Machulis
ef07cbc159 Bug 800249 - Patch 1: Add ability to store/retrieve address to UnixSocket; r=cjones 2012-10-17 17:10:27 -07:00
Ehsan Akhgari
33cbe5d37b Bug 801345 - Give MessageReplyDeserializer a virtual dtor since we delete the base class pointer; r=cjones 2012-10-14 11:11:04 -04:00
Dave Hylands
07e66bd62d Bug 801362 - Fixed typo (>= s/b <=) introduced in bug 797239. r=cjones 2012-10-13 21:25:23 -07:00
Kyle Machulis
ee62993412 Bug 800247: Add disconnect events to UnixSocket, update Bluetooth*Manager; r=echou r=cjones
--HG--
extra : rebase_source : 809d46954baea51bf4053c3a48ce45b18b1a58e9
2012-10-12 11:38:14 -07:00
Ehsan Akhgari
c397995320 Silence two uninitialized variable warnings; no bug 2012-10-13 12:16:22 -04:00
Kyle Machulis
d1f1d92d8e Bug 796176 - Patch 1: UnixSocket changes to get connect/listen running main thread, connect status to consumers; r=cjones
--HG--
extra : rebase_source : 7fa0ed00a2c4ad526412af4ae0081818a547e5f3
2012-10-10 22:48:40 -07:00
Bobby Holley
0403fed8cc Bug 797204 - Remove API. r=mrbkap
\o/
2012-10-10 11:01:26 +02:00
Jan Beich
aa084ea292 Bug 799591 - Cleanup stat64 in file_util_posix.cc on BSDs after bug 798377. r=ehsan
--HG--
extra : rebase_source : e22525b9e6b1623bb805be4ad5f2101ac16f984c
2012-10-09 11:17:00 -07:00
Ehsan Akhgari
67cf226c84 Bug 798354 - Remove the sizecheck global variable in ipc_channel_posix.cc since its only needed at compile time, and there are better ways to do this; r=cjones
--HG--
extra : rebase_source : 103ee1d497eb28f997e2d2734c4dc29cfca6c22b
2012-10-05 16:28:21 -04:00
Ehsan Akhgari
50f353ebd7 Backout changeset 9adf5ca922a4 (bug 798354) because it relied on the assumption that C++98 is a sane language and allows sizeof(class::member), but that sanity has just been added to C++11 2012-10-09 17:27:05 -04:00
EKR
9bcb94d7e2 Bug 799246: Conditionally enable webrtc unit tests r=jesup,ted,cjones 2012-10-08 18:56:00 -07:00
Dave Hylands
81dec47c83 Bug 797239 - Fix message loop to allow idle tasks to work in child content processes. r=cjones 2012-10-08 22:46:18 -06:00
Kyle Machulis
6913002465 Bug 796184 - Revert UnixSocketImpl to a bare pointer, make Bluetooth*Managers use CloseSocket; r=cjones r=gyeh
--HG--
extra : rebase_source : fe8f4633eb9fb86ffc4a87e6b483b3357ab9896d
2012-10-05 16:05:35 -07:00
Justin Lebar
d0141d9c09 Bug 797904 - Include app name in about:memory dump. r=njn,cjones 2012-10-05 17:54:54 -04:00
Ehsan Akhgari
5bf0caba89 Bug 798354 - Remove the sizecheck global variable in ipc_channel_posix.cc since its only needed at compile time, and there are better ways to do this; r=cjones 2012-10-05 16:28:21 -04:00
Ehsan Akhgari
9b3292879a Bug 798377 - Don't use the deprecated stat64 function in file_util_posix.cc; r=cjones
--HG--
extra : rebase_source : efd7b826e462851d475e7307bd95da29514daec7
2012-10-05 16:17:21 -04:00
Ehsan Akhgari
19d7a97ebd Bug 798355 - Remove the base class conversion operator from MachMsgPortDescriptor because it will never be used; r=cjones
--HG--
extra : rebase_source : d0941e3296856a871d8226b51888f086efd559c4
2012-10-05 16:16:33 -04:00
Ehsan Akhgari
97661866fb Bug 798356 - Do not convert a boolean literal into a null pointer constant in TransportDIB::Map; r=cjones
--HG--
extra : rebase_source : 1d7a6be5ee0b090b9a4cf73158b1588eaef55390
2012-10-05 16:15:34 -04:00
Ehsan Akhgari
5e07c6cbc9 Bug 798349 - Only include TransportDIB::sequence_num_ in Windows, as it is not used in other platforms; r=cjones
--HG--
extra : rebase_source : ecc6f194ea415ba5a112227cc7333a30a654abe5
2012-10-05 16:11:35 -04:00
Ehsan Akhgari
dfca7c5fd6 Bug 798350 - Remove ChildProcessHost::resource_dispatcher_host_ since it is unused, and simplify the ChildProcessHost constructor; r=cjones
--HG--
extra : rebase_source : 4908129a3d9d2e57ebb0e7ef7b31dca14bedd72c
2012-10-05 16:09:46 -04:00
Nathan Froyd
47a8cc6723 Bug 746714 - add a memory reporter for telemetry; r=taras,njn 2012-10-05 12:19:14 -04:00
Ehsan Akhgari
315402fb2a Mark AsyncWaiter as final, no bug, blanket-r=bzbarsky 2012-10-05 10:48:49 -04:00
Jacek Caban
bdc1432276 Bug 797316 - Fix -Werror=conversion-null errors in Windows-only code (ipc/ part) r=bent
--HG--
extra : rebase_source : e20bd1677b784a9279db1655dea2bcaffb346774
2012-10-04 10:32:45 +02:00
Daniel Holbert
7513fec14d Bug 797111: Mark variable 'msgSeqno' as DebugOnly, in SyncChannel::Send, to fix opt build warning. r=cjones 2012-10-02 17:18:48 -07:00
Ms2ger
b8bde31475 Bug 793263 - Remove #error from base/basictypes.h; r=bsmedberg 2012-10-02 10:24:12 +02:00
Ms2ger
cc84f2c2f2 Bug 792379 - Don't include prtypes.h in base/basictypes.h; r=cjones 2012-10-02 10:24:12 +02:00
Kyle Machulis
348f07e1d1 Bug 790739: Patch 3 - Service and Manager changes for Bluetooth server sockets; r=cjones 2012-10-01 00:04:01 -07:00
Kyle Machulis
f3447038f6 Bug 790739: Patch 1 - UnixSocket changes for server sockets; r=cjones 2012-10-01 00:03:16 -07:00
Kyle Machulis
89fb61bffb Backing out e8e7e0cf43d8 (Bug 790739) due to bustage
--HG--
extra : rebase_source : ab39dff4819b2a08bbc9696bfdca88b513fcb9c6
2012-09-30 23:17:46 -07:00
Kyle Machulis
fbe3ed43ff Backing out 9a88f0d57e7d (Bug 790739) due to bustage
--HG--
extra : rebase_source : 1f6e7eda80f1b66b854c5c112f1b0816381f27e2
2012-09-30 23:16:26 -07:00
Kyle Machulis
de09ce7cbc Bug 790739: Patch 3 - Service and Manager changes for Bluetooth server sockets; r=cjones 2012-09-30 22:55:27 -07:00
Kyle Machulis
a3e97c061b Bug 790739: Patch 1 - UnixSocket changes for server sockets; r=cjones 2012-09-30 22:54:27 -07:00
Kyle Machulis
cbff5b007b Bug 793831: Add socket validity checks to RIL IPC; r=cjones 2012-09-30 22:03:43 -07:00
Doug Sherk
98c60b046f Bug 784908: Part 3: Distinguish resolution from a new zoom field on FrameMetrics r=roc 2012-09-28 22:16:38 -04:00
Doug Sherk
c0e08ee726 Bug 784908: Part 1: Change names of FrameMetrics variables to be more descriptive, add documentation, change some coordinate spaces. r=roc 2012-09-28 22:16:34 -04:00
Isaac Aggrey
997db4d142 Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan 2012-09-28 01:57:33 -05:00
Josh Matthews
1ce2adcc13 Bug 770778 - Make TCPSocket e10s-friendly. r=bent 2012-09-24 14:53:49 -04:00
Chris Jones
812c1f8a14 Back out bug 793831 for breaking telephony (c88496e8454f)
--HG--
extra : rebase_source : b559bff5e0857b2c8129a9c9c2669d8be9ce1925
2012-09-25 21:07:39 -07:00
Kyle Machulis
2901f9e7ab Bug 776182: Patch 3 - Socket I/O for ipc unix sockets; r=cjones r=echou
--HG--
rename : ipc/socket/Makefile.in => ipc/unixsocket/Makefile.in
rename : ipc/socket/Socket.cpp => ipc/unixsocket/UnixSocket.cpp
rename : ipc/socket/Socket.h => ipc/unixsocket/UnixSocket.h
extra : rebase_source : 18f401b047424a187863c9fbe8943364330d1f4d
2012-09-25 13:13:15 -07:00
Kyle Machulis
b2ca1044be Bug 776182: Patch 2 - Move Socket.* to UnixSocket.*; r=cjones
--HG--
rename : ipc/socket/Socket.cpp => ipc/unixsocket/UnixSocket.cpp
rename : ipc/socket/Socket.h => ipc/unixsocket/UnixSocket.h
extra : rebase_source : 1e8da79be97c0e6f1a457276b209ff3b4d1193f6
2012-09-25 12:32:09 -07:00
Kyle Machulis
20a8364f09 Bug 776182: Patch 1 - Move ipc/socket to ipc/unixsocket; r=cjones
--HG--
rename : ipc/socket/Makefile.in => ipc/unixsocket/Makefile.in
rename : ipc/socket/Socket.cpp => ipc/unixsocket/Socket.cpp
rename : ipc/socket/Socket.h => ipc/unixsocket/Socket.h
extra : rebase_source : ee6560813e80b834390a973c68147c2fc79e2aed
2012-09-25 12:31:22 -07:00
Kyle Machulis
b53a487090 Bug 793831: Add socket validity checks to RIL IPC; r=cjones
--HG--
extra : rebase_source : b14efdcb4c6deb89ba1af9a06ece84888fdb009a
2012-09-25 11:46:54 -07:00
Ehsan Akhgari
788077053b Bug 793411 - #include StandardInteger.h instead of prtypes.h in IPCMessageUtils.h; r=cjones 2012-09-22 11:49:58 -04:00
Josh Matthews
a95c881e25 Bug 783878 - Part 2: Allow serializing remote input streams by passing the actor reference over the wire and retrieving the original stream in the parent. r=bent 2012-09-21 13:26:13 -04:00
Ehsan Akhgari
5fe78337ca Merge the landing of nsresult-enum on mozilla-central 2012-09-21 14:49:57 -04:00
Chris Peterson
e4d054b3e3 Bug 778980 - Part 4a: Fix gcc -Wconversion-null warnings in ipc/chromium. r=bsmedberg
--HG--
extra : rebase_source : f74cecfefcdd599cf888d961906d0c033a9ee786
2012-09-21 09:28:13 -07:00
Chris Jones
133abf894e Test for bug 775777. r=bent 2012-09-20 12:30:53 -07:00
Chris Jones
b50c8c4076 Bug 775777: Check dynamic actor type when deserializing. r=bent 2012-09-20 12:30:52 -07:00
Jan Beich
c4e89d4b89 Bug 791838 - lwpid_t is defined in sys/types.h, explicitly include it. r=cjones 2012-09-19 20:24:58 -04:00
Aryeh Gregor
40eb076032 Bug 777292 - Make nsresult an enum; r=ehsan,cjones,bsmedberg 2012-08-07 11:27:45 +03:00
Kyle Machulis
e2a7e471b5 Bug 743933: Update B2G Bluetooth to ICS API; r=echou 2012-09-17 23:11:00 -07:00
Koosha Khajeh Moogahi
8d39310f18 Bug 788242: Implement and make use of void versions of NS_ENSURE_* macros; r=ehsan,bsmedberg 2012-09-14 14:30:31 +04:30
Ms2ger
8976774677 Bug 787933 - Stop using stdin types in IPC code; r=bsmedberg+cjones sr=cjones 2012-09-17 10:37:20 +02:00
Jan Beich
d8beab43c5 Bug 789817 - Fix BeingDebugged() in IPC on NetBSD/OpenBSD. r=cjones 2012-09-11 21:49:39 -04:00
Dave Hylands
bf39dd4c55 Bug 784805 - Set the process name (comm) to the app name. r=cjones 2012-09-10 21:30:33 -07:00
Jan Beich
cb126a79ea Bug 787588 - d_reclen is dead on DragonFly since 64bit inode support. r=landry 2012-09-06 21:47:27 +02:00
Kyle Machulis
61fa5c18fa Bug 756299: Patch 1 - IPC Socket Functions; r=mrbkap 2012-09-05 20:06:06 -07:00
Bobby Holley
c466facab9 Bug 774607 - Remove use of JS_{Is,Make}SystemObject from Gecko. r=bz
We currently set this for system globals and anything whose parent
chain leads to a system global. Maybe this was relevant before, but
with CPG this is just equivalent to asking whether the object is in
a system compartment. And the only place where we _check_ this bit
is immediately after checking for a system compartment, in
WrapperFactory. So AFAICT this can go away entirely.
2012-09-05 11:32:07 -07:00
Chris Jones
d1b2c1e8ac Bug 788396: Centralize usage of ipc::LoggingEnabled() and ensure it goes to logcat on bionic OSes. r=bent 2012-09-05 10:11:05 -07:00
Mike Hommey
d4d87778e3 Bug 784262 - Use generic install/copy rule in rules.mk. r=ted 2012-08-29 08:55:57 +02:00
Brad Lassey
a4736dd52a bug 761503 - return a bool from PumpMessageLoop to indicate if work was performed r=snorp 2012-06-05 01:14:12 -04:00
Randell Jesup
eedf93a21d Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
Landry Breuil
14b3b51372 Bug 787040. Fix build warnings under ipc/. r=ms2ger 2012-08-31 10:18:42 +02:00
Jan Beich
bf379d516a Bug 787279 - Unbreak OS_BSD build after bug 782456. r=cjones 2012-08-31 10:17:24 +02:00
Vincent Chang
846396af20 Bug 735547 - Support Wifi/USB Tethering, Part 1: netd IPC. r=bent 2012-08-30 04:35:53 +08:00
Chris Jones
e8aaa33b31 Bug 782456, part 1: Let clients of GeckoChildProcessHost specify privileges. r=bent 2012-08-29 09:24:48 -03:00
Jan Beich
ca0344d8dd Bug 753046 - Apply libc++ fixes after OS_BSD changes. r=cjones 2012-08-28 23:17:07 +02:00
Martin Husemann
f5d1821942 Bug 753046 - Add IPC support for BSDs, build glue. r=khuey,cjones 2012-08-28 23:16:51 +02:00
Martin Husemann
8f95fae421 Bug 753046 - Add IPC support for BSDs, ipc/chromium part. r=cjones 2012-08-28 23:16:41 +02:00
Martin Husemann
16ca4add66 Bug 753046 - Add IPC support for BSDs, ipc/glue part. r=cjones 2012-08-28 23:16:29 +02:00
Martin Husemann
a706ab3c7f Bug 753046 - Add IPC support for BSDs, process_util_bsd.cc file. r=cjones 2012-08-28 23:15:29 +02:00
Jan Beich
c410cabb92 Bug 753046 - Add IPC support for BSDs, dir_reader_bsd.h file. rs=cjones 2012-08-28 23:15:18 +02:00
Rafael Ávila de Espíndola
3ae64f38a4 Bug 786148 - s/IPC/ipc/. r=ted.
This makes our builds a bit more reproducible. Without it when processing

#include "IPC/IPCMessageUtils.h

we end up in

#include "ShadowLayers.h"

which in the final XUL translates into the symbol (run nm -a to see it):

 - 00 0000   SOL ../../../../gfx/layers/IPC/ShadowLayers.h

now when some file in gfx/layers/ipc does

#include "ShadowLayres.h"

the file found is the local one with the lowercase directory name and we end up
with

 - 00 0000   SOL ../../../../gfx/layers/ipc/ShadowLayers.h

--HG--
extra : rebase_source : 96c68f6a3448eedaa280039960df911a9c707cac
2012-08-28 08:41:04 -04:00
Luke Wagner
a688f5b795 Bug 749371 - Break JS_ClearScope into two not-as-bad functions (r=mrbkap) 2012-08-23 11:23:28 -07:00
Jan Beich
b90e2af5a0 Bug 784776 - Don't assume NULL is numeric. r=cjones 2012-08-26 08:56:59 -04:00
Jan Beich
d77243bea8 Bug 785026 - Merge file_util_linux.cc into file_util_posix.cc. r=cjones 2012-08-25 22:29:06 -04:00
Chris Jones
c96530321b Bug 784647: Ensure that Tasks and XPCOM events are dispatched with the same priority. r=bent 2012-08-25 01:25:08 -07:00
Chris Jones
881203aa1b Bug 636063, part 3: Honor compression requests when queuing messages. r=bent 2012-08-25 01:25:08 -07:00
Chris Jones
4ab56b458e Bug 636063, part 2: Backend support for |compress|d messages. r=bent 2012-08-25 01:25:08 -07:00
Chris Jones
9c817aa327 Bug 636063, part 1: Frontend support for |compress|d messages. r=bent 2012-08-25 01:25:08 -07:00
Ms2ger
da90b234b1 Back out bug 636063, bug 774988 and bug 784647 for busting all of Android. 2012-08-25 13:18:18 +02:00
Chris Jones
0b8efc5aae Bug 784647: Ensure that Tasks and XPCOM events are dispatched with the same priority. r=bent 2012-08-25 01:25:08 -07:00
Chris Jones
fdad648d61 Bug 636063, part 3: Honor compression requests when queuing messages. r=bent 2012-08-25 01:25:08 -07:00
Chris Jones
f8943f2217 Bug 636063, part 2: Backend support for |compress|d messages. r=bent 2012-08-25 01:25:08 -07:00
Chris Jones
70c6901be5 Bug 636063, part 1: Frontend support for |compress|d messages. r=bent 2012-08-25 01:25:08 -07:00
Matt Brubeck
5e47d4412f Back out 670c8a2695b3 (bug 771354), 134557d57e6e 4ad52e488977 (bug 774607), and...
036eb8c2a08a d4d36e3b948f 35334e820632 6bd07fd5147d d49e7c0d762c 407f19deb14c d84551808abb (bug 774633)
on a CLOSED TREE
2012-08-23 21:34:27 -07:00
Luke Wagner
94264a0bc8 Bug 625199 - s/JSAutoEnterCompartment/JSAutoCompartment/ and make it infallible (r=bholley)
--HG--
extra : rebase_source : 12acf2288285f5caefd7fecea8207de3a47eab5b
2012-08-21 18:42:53 -07:00
Bobby Holley
a2d7eabc5a Bug 774607 - Remove use of JS_{Is,Make}SystemObject from Gecko. r=bz
We currently set this for system globals and anything whose parent
chain leads to a system global. Maybe this was relevant before, but
with CPG this is just equivalent to asking whether the object is in
a system compartment. And the only place where we _check_ this bit
is immediately after checking for a system compartment, in
WrapperFactory. So AFAICT this can go away entirely.
2012-08-23 16:44:53 -07:00
Ben Turner
0727b7098c Bug 784726 - 'Remove old IPC::URI'. r=cjones+khuey.
--HG--
rename : ipc/glue/IPCSerializableParams.ipdlh => ipc/glue/InputStreamParams.ipdlh
extra : transplant_source : %A6%BC%8B%8D%3A_%7Df%2B%FE%AA%94%81%AB%CAW%15K%A7%03
2012-08-23 12:33:46 -07:00
Ben Turner
1557efd8b1 Bug 782649 - 'Remove old IPC::InputStream'. r=cjones+khuey. 2012-08-22 19:13:54 -07:00
Michael Wu
faefd7af60 Bug 784858: Pass LD_PRELOAD to child processes. r=cjones 2012-08-22 18:50:25 -07:00
Ryan VanderMeulen
1733e65710 Backout 41a3cdf92063 (bug 782649) for Linux xpcshell failures. 2012-08-22 17:31:06 -04:00
Ben Turner
3e66942f49 Bug 782649 - 'Remove old IPC::InputStream'. r=cjones+khuey. 2012-08-22 12:19:29 -07:00
Ehsan Akhgari
57ac5ddc72 Merge the landing of bug 579517 to mozilla-inbound 2012-08-22 12:12:15 -04:00