Thomas Zimmermann
edfa9474e7
Bug 1059813: Use getter/setter methods of |UnixSocketRawData| in RIL helpers, r=vyang
2014-09-08 11:44:01 +02:00
Thomas Zimmermann
c04407701e
Bug 1059813: Use getter/setter methods of |UnixSocketRawData| in |KeyStore|, r=chulee,qdot
2014-09-08 11:44:01 +02:00
Thomas Zimmermann
d9c20bfa74
Bug 1059813: Wrap socket I/O operations in |UnixSocketRawData|, r=qdot
...
This patch moves the I/O operations for sending and receiving data
in |SocketIOBase| into |UnixSocketRawData|. This change allows to
add a clean interface to |UnixSocketRawData| and later replace the
class by other implementations.
2014-09-08 11:44:00 +02:00
Ryan VanderMeulen
d132cca22b
Merge b2g-inbound to m-c. a=merge
2014-09-05 12:04:44 -04:00
Ryan VanderMeulen
6ca1d53198
Merge fx-team to m-c. a=merge
2014-09-05 11:54:57 -04:00
Jacek Caban
06efc6492d
Bug 1063511 - Fix mingw builds after bug 1027906. r=tabraldes
2014-09-08 10:35:24 +02:00
Thomas Zimmermann
261a3f87cf
Bug 1062754: Support peer shutdown and EOF in |SocketIOBase|, r=qdot, btian
...
Calling read on a socket that has been closed for reading by the
peer, read returns 0. The socket is still readable however, so
polling and reading will return constant results of 0 received
bytes.
With this patch, if a socket's peer shuts down reading or if
we reached the EOF, we stop watching the file descriptor for
readability. |SocketIOBase| will detect this case exactly once
and initiate the socket's shutdown.
2014-09-05 10:16:24 +02:00
Nick Alexander
04b45e0f6c
Bug 1040945 - Part 1: Install Android native libraries directly into lib/ANDROID_CPU_ARCH. r=glandium
...
This is a little tricky only because MOZ_CHILD_PROCESS_NAME is
"lib/libplugin-container.so" on Android, which meant special handling
at multiple places in the tree. This patch reduces the number of such
places.
2014-09-04 20:11:09 -07:00
Josh Aas
65e14944dd
Bug 1062719 - remove Chromium debug flags, task queue from IPC code. rs=bent
2014-09-04 00:24:27 -05:00
Josh Aas
6ebfe77400
Bug 1062715 - remove Chromium event recorder, memory debug, simple thread, drag and drop code. rs=bent
2014-09-03 23:56:40 -05:00
Josh Aas
fd257bbd4c
Bug 1062064 - remove Chromium debug utils from IPC code. rs=bent
2014-09-03 22:52:59 -05:00
Mike Hommey
ed70c5f377
Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps
2014-09-03 14:10:54 +09:00
Josh Aas
dfc298875b
Bug 1062076 - remove Chromium system monitor from IPC code. rs=bent
2014-09-02 23:30:40 -05:00
Josh Aas
a5dc80b1cd
Bug 1061994 - remove Chromium worker pools from IPC code. rs=bent
2014-09-02 21:03:04 -05:00
Josh Aas
c3b9368b99
Bug 1061992 - remove Chromium hmac code from IPC code. rs=bent
2014-09-02 19:33:04 -05:00
Josh Aas
8035f72dbe
Bug 1061889 - remove Chromium statistics code. rs=bent
2014-09-02 18:04:59 -05:00
Ehsan Akhgari
b1b56df2fe
Bug 1061254 - Fix more bad implicit constructors in misc. components; r=bsmedberg
2014-09-02 18:24:49 -04:00
Josh Aas
d3655aff84
Bustage fix for bug 1059479, CLOSED TREE
2014-09-02 15:48:07 -05:00
Josh Aas
df78cc41bb
Bustage fix for bug 1059479, CLOSED TREE
2014-09-02 15:25:29 -05:00
Josh Aas
85d03dd759
Bug 1059479 - remove Chromium path service and trace events code. r=bent
2014-09-02 14:23:58 -05:00
Kyle Huey
a98032818a
Back out bug 1050122 for causing silent timeouts on emulator mochitests. a=me
2014-09-02 12:05:36 -07:00
Cervantes Yu
81af9774de
Bug 1048011 - Fix a race condition that causes PProcLoaderParent leak. r=khuey
...
--HG--
extra : rebase_source : d0230771da1992fab13681c9b5baa585d334d0cc
2014-08-11 15:50:20 +08:00
Jacek Caban
cd7ba96e9d
Bug 1055655 - Fix warnings turned to errors by bug 1018288 found by mingw build. r=ted,jmathies
...
--HG--
extra : rebase_source : 2e1d8d0ae697515994b718634f8f8ae9b26b8d80
2014-09-02 11:07:25 +02:00
Ting-Yu Chou
db092f3c12
Bug 1050122 - Enable Nuwa on debug builds, and kill it if the preference is false. r=khuey
2014-09-01 10:43:39 +08:00
Ehsan Akhgari
8f9a796b91
Follow-up to bug 1060997 to fix the build bustage
2014-08-31 21:14:53 -04:00
Ehsan Akhgari
8e138d4419
Bug 1060997 - Fix more bad implicit constructors in IPC; r=smaug
2014-08-31 21:12:55 -04:00
Tim Abraldes
ba6539ecd7
bug 1027906. Set delayed token level for GMP plugin processes to USER_RESTRICTED. Whitelist certain files and registry keys that are required for EME plugins to successfully load. r=bobowen. r=jesup. r=bent.
2014-08-29 17:34:26 -07:00
Bob Owen
f19448274c
Bug 1018966 - Part 1: Add the main warn only sandbox machinery - with no Chromium code changes. r=bsmedberg
...
This change also includes the content sandboxing code on Windows Nightly by defining MOZ_CONTENT_SANDBOX=1.
Whether the content sandbox is disabled, in warn only mode, or enabled is controlled by a new pref: browser.tabs.remote.sandbox=(off/warn/on)
2014-06-11 15:32:37 +01:00
Botond Ballo
e7dbf26fb2
Bug 965022 - Use MOZ_FORMAT_PRINTF for [f]printf_stderr, and fix incorrect usages. r=jrmuizel
...
--HG--
extra : rebase_source : 667fc18943d84f1ae28579fc23f846f9350e6fe2
2014-08-26 17:14:51 -04:00
Nicholas Nethercote
f57e56e187
Bug 1058388 - Remove NS_COM_GLUE and IMETHOD_VISIBILITY. r=bsmedberg.
...
--HG--
extra : rebase_source : 250ec1323d4097101a8e0331a2bf7fab59f72b1d
2014-08-27 15:47:27 -07:00
David Major
36c74581b8
Bug 1023941 - Part 5: Loader hook to redirect the missing import. r=bsmedberg
...
--HG--
extra : rebase_source : 7cf2e857f51dcfcc95bb806d49ef13b794f5ba5b
2014-08-28 14:53:38 +12:00
David Major
db45c0b01a
Bug 1023941 - Part 2: Static-link the CRT into plugin-container.exe. r=glandium,f=tabraldes
...
--HG--
rename : security/sandbox/moz.build => security/sandbox/objs.mozbuild
extra : rebase_source : e0b1515a4729ecfe82a67b6439d9a38453f7556a
2014-08-28 14:50:10 +12:00
Jacek Caban
319bc9cc73
Bug 1042426 - Added --disable-sandbox option that disables building sandbox code. r=glandium
2014-08-27 16:32:55 +02:00
Bobby Holley
7c712dca7b
Bug 981198 - Make JS_{Get,Set}ErrorReporter take a JSRuntime. r=terrence,r=bz
2014-09-09 16:02:10 -07:00
Ryan VanderMeulen
a19bf3acbf
Backed out 5 changesets (bug 965022) for mochitest-2 failures on a CLOSED TREE.
...
Backed out changeset 7f68752ffe1e (bug 965022)
Backed out changeset 24251d4da019 (bug 965022)
Backed out changeset a34ae046c947 (bug 965022)
Backed out changeset f747fd154739 (bug 965022)
Backed out changeset f076faf3c282 (bug 965022)
2014-08-26 16:02:37 -04:00
Botond Ballo
e9b504cd9e
Bug 965022 - Use MOZ_FORMAT_PRINTF for [f]printf_stderr, and fix incorrect usages. r=jrmuizel
2014-08-25 18:28:25 -04:00
Josh Aas
8185a36bb0
Bug 1011225: Improve e10s process naming on OS X. Patch started by Benoit Girard, completed by Josh Aas. r=njn,benwa
2014-08-26 12:03:09 -05:00
Carsten "Tomcat" Book
d578571a85
Backed out changeset 5adabc2818b2 (bug 1018966) for b2g bustage
2014-09-04 15:14:41 +02:00
Bob Owen
0fdb849687
Bug 1018966 - Part 1: Add the main warn only sandbox machinery - with no Chromium code changes. r=bsmedberg r=tabraldes
...
This change also includes the content sandboxing code on Windows Nightly by defining MOZ_CONTENT_SANDBOX=1.
Whether the content sandbox is disabled, in warn only mode, or enabled is controlled by a new pref: browser.tabs.remote.sandbox=(off/warn/on)
2014-06-11 15:32:37 +01:00
Kyle Huey
d8140a30b5
Bug 1057402: Fix for non-unified builds. r=me
2014-08-22 10:02:47 -07:00
Kyle Huey
2bd759b486
Bug 1057402: Always log the message type when we hit an IPC protocol error. r=bent
2014-08-22 09:23:01 -07:00
Ben Kelly
9b26ef9797
Bug 1049801 P2 Cancel the DispatchOnChannelConnected runnable when destructing the MessageChannel. r=bent
2014-08-21 14:13:23 -04:00
Ehsan Akhgari
60ccfd2346
Bug 1053603
- Fix some more bad implicit constructors in the IPC code; r=bent
2014-08-07 21:18:59 -04:00
Ben Kelly
266c4cd30b
Bug 1049552 Avoid PBackground addref off main thread in GetOrCreateForCurrentThread(). r=bent
2014-08-20 19:42:00 -04:00
Ryan VanderMeulen
baca1ac7b9
Merge m-c to inbound. a=merge
...
CLOSED TREE
2014-08-20 16:23:04 -04:00
Andrew Osmond
d69cd6a1ab
Bug 1055316 - Fix unix socket connect backoff scheme such that it will actually backoff. r=tzimmermann
2014-08-18 15:53:00 -04:00
Sotaro Ikeda
93c1acb209
Bug 1042387 - Add file descriptors count check r=jrmuizel
2014-08-18 10:55:23 -07:00
Ehsan Akhgari
40d9e7c418
Backed out changeset 0409c8faca80 because of build bustage on a CLOSED TREE
2014-08-18 13:44:59 -04:00
Ehsan Akhgari
0ab9b21d10
Add SetProp to the list of windows.h #defined functions that we need to #undef, no bug
2014-08-18 13:19:16 -04:00
Bill McCloskey
4cedc603cb
Bug 1050604 - Get IPDL tests passing again (r=bent)
2014-08-20 12:49:11 -07:00
Bill McCloskey
be42be0ea4
Bug 1051128 - Allow filtering the IPC log by toplevel protocol name (r=bent)
2014-08-20 12:49:11 -07:00
Jim Mathies
5a0921a9b9
Bug 874437 - Only enable ipc sync wait deferred Windows message handling for plugin protocols, everything else should use standard blocking waits. r=bsmedberg
2014-08-15 12:12:37 -05:00
Bobby Holley
e70ddb7476
Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor
2014-08-14 18:47:15 -07:00
Ryan VanderMeulen
30ae466592
Backed out changesets 5b1a3161f614, 17a9673ed782, and a9b8c346d295 (bug 1052052) for B2G non-unified bustage.
2014-08-14 17:23:10 -04:00
Bobby Holley
3e4d70a655
Bug 1052052 - Hoist Auto*JSContext into nsContentUtils and kill nsCxPusher.{cpp,h}. r=gabor
2014-08-14 12:54:34 -07:00
Andrew McCreight
4790cd3937
Bug 1024795, part 4 - Use a default value for initializing unions, except for nsTArray. r=bent
...
This restores the initialization behavior prior to bug 819791, except for the one case that bug requires.
2014-08-13 11:36:15 -07:00
Andrew McCreight
7805ea0edf
Bug 1024795, part 3 - Generate nsTArray instead of InfallibleTArray in lower.py. r=bent
2014-08-13 11:36:15 -07:00
Andrew McCreight
8c72cba1bb
Bug 1024795, part 2 - static_cast isn't needed for nullptr in IPDL codegen. r=bent
...
Since bug 1038523, lower.py generates nullptr for NULL, so this cast isn't needed.
2014-08-13 11:36:14 -07:00
Andrew McCreight
b341e821c2
Bug 1024795, part 1 - Remove trailing whitespace from lower.py. r=bent
2014-08-13 11:36:14 -07:00
Jim Mathies
dc108c90b9
Bug 1052395 - Improve ipc debug output for unhandled nonqueued Windows messages. r=bent
2014-08-12 14:06:00 -05:00
Jim Mathies
6792642961
Bug 1047842 - Pass WM_GETTEXTLENGTH messages in ipc wait for notify calls to DefWindowProc. r=bent
2014-08-13 04:39:47 -05:00
Daniel Holbert
8c367c2bf1
Bug 1052758: Remove unused variable 'kWorkScheduled' from message_pump_glib.cc. r=ehsan
2014-08-12 21:46:27 -07:00
Ryan VanderMeulen
7f18942028
Merge inbound to m-c. a=merge
2014-08-11 16:10:07 -04:00
Ben Turner
45efa47d8a
Bug 1051521, Fix assertion when OnCloseChannel loses the race with OnChannelError, r=bsmedberg.
2014-08-11 10:09:30 -07:00
Thomas Zimmermann
b7e4884672
Bug 1048093: Delete sent socket-data objects instead of raw data, r=kyle
...
After successfully sending data, |SocketIOBase::SendPendingData|
deletes the raw data instead of the actual socket-data object. The
behavior is undefined and leads to a segmentation fault.
This patch fixes the bug by deleting the correct object.
2014-08-11 09:36:15 +02:00
Ben Turner
43649dec8a
Bug 1044322 - Reset the channel listener on the correct thread. r=bsmedberg
...
CLOSED TREE
2014-08-08 18:19:33 -07:00
Bob Owen
6f898cd915
Bug 1047509 - Part 13: Replace AutoCxPusher in TestShellCommandParent::RunCallback. r=bholley
2014-08-08 14:01:25 +01:00
Ryan VanderMeulen
f7fcc23040
Backed out changeset 8f9508342de9 (bug 1044322) for mochitest leaks.
2014-08-08 22:18:41 -04:00
Ben Turner
3bd6fe6f31
Bug 1044322 - Reset the channel listener on the correct thread, r=bsmedberg.
2014-08-08 18:19:33 -07:00
Bill McCloskey
99080fa9fb
Bug 1045847 - Fix review comments
2014-08-08 17:55:22 -07:00
Bill McCloskey
d52ab46335
Bug 1045847 - Initialize sProcessType really, really early (r=khuey)
2014-08-08 17:52:12 -07:00
Andrew McCreight
46562a3c3a
Bug 1047717 - Don't generate trailing whitespace for IPDL CppDirective's with no |rest|. r=bent
2014-08-06 11:12:00 -04:00
Wes Kocher
98f9eac6dd
Merge m-c to inbound on a CLOSED TREE
2014-08-08 14:15:34 -07:00
Kyle Huey
04c06effe3
Bug 1050509: Shut down the KeyStore socket during system shutdown to avoid leaks. r=tdz
2014-08-08 11:11:36 -07:00
Birunthan Mohanathas
3e8abfd2e8
Bug 1049997
- Separate statements declaring multiple pointers into separate statements. r=froydnj
2014-08-08 07:04:45 -07:00
Jim Mathies
12e0bdab98
Bug 1044245: don't track Windows IPC stack frames on non-gui threads r=bsmedberg
2014-08-07 22:21:05 -04:00
Mike Hommey
89777800f9
Bug 1047267 - Move remaining OS_LIBS and EXTRA_LIBS to moz.build. r=gps
...
* * *
Bug 1047267 - To fold with "Move remaining OS_LIBS and EXTRA_LIBS to moz.build"
2014-08-07 14:21:03 +09:00
Bill McCloskey
62917d6717
Bug 1042587 - Block scripts when using CPOWs (r=bent)
2014-08-05 21:44:42 -07:00
Bill McCloskey
024b67429e
Bug 950745 - Flag when we're processing urgent messages and disallow certain activities (r=bsmedberg,luke)
2014-08-05 21:43:36 -07:00
Mike Hommey
d9443ec932
Bug 1045783 - Move most OS_LIBS to moz.build and do some related cleanup. r=mshal
2014-08-06 07:25:33 +09:00
Mike Hommey
78a9defead
Bug 1045783 - Move OS_LIBS from a passthrough to a more fully supported variable. r=gps
2014-08-06 07:25:05 +09:00
Ehsan Akhgari
42fe22a7e0
Bug 1048252 - Fix some bad implicit constructors in chromium IPC code; r=bent
2014-08-05 09:37:28 -04:00
Ehsan Akhgari
fef49bacf4
Backed out changeset 3d47686129ae (bug 1048252) because of build bustage
...
--HG--
extra : rebase_source : 727e289f47bfc9b1164914edeaf1eddba644cb0d
2014-08-05 09:52:25 -04:00
Ehsan Akhgari
13da4e4c33
Bug 1048252 - Fix some bad implicit constructors in chromium IPC code; r=bent
2014-08-05 09:37:28 -04:00
Ehsan Akhgari
0403683a4f
Bug 1047782 - Fix some bad impliciit constructors in netwerk/; r=mcmanus
2014-08-05 09:20:50 -04:00
Ehsan Akhgari
beaa1d2306
Bug 1048247 - Fix more bad implicit constructors in DOM; r=smaug
2014-08-05 09:19:51 -04:00
Thinker K.F. Li
e9dc84b5a1
Bug 977026 - Part 2: B2G loader. r=khuey, r=cyu
...
--HG--
rename : ipc/app/MozillaRuntimeMain.cpp => ipc/contentproc/plugin-container.cpp
2014-07-30 03:24:00 -04:00
Ryan VanderMeulen
d153061805
Merge b2g-inbound to m-c. a=merge
2014-07-31 15:54:07 -04:00
Thomas Zimmermann
f8f98629f3
Bug 1046109: Cleanup |UnixSocketImpl|, r=kyle
...
This patch cleans up |UnixSocketImpl| and it's file in general. The
patch
- renames |UnixSocketImpl| to |UnixSocketConsumerIO|,
- moves method definitions out of class definition,
- adds const correctness,
- adds MOZ_FINAL to several classes,
- moves task classes to a separate location.
No functional changes are performed.
2014-07-31 13:55:30 +02:00
Thomas Zimmermann
19d9223f35
Bug 1046109: Add |SocketIOShutdownTask|, r=kyle
...
|SocketIOShutdownTask| invokes the shutdown procedure for Socket I/O
objects on the I/O thread.
2014-07-31 13:55:30 +02:00
Thomas Zimmermann
35632f98aa
Bug 1046109: Add |SocketIOSendTask|, r=kyle
...
|SocketIOSendTask| moves data from the main thread to the Socket I/O
class on the I/O thread, and invokes the Socket I/O classes sending
methods.
2014-07-31 13:55:30 +02:00
Thomas Zimmermann
aadf6d5e16
Bug 1046109: Add |SocketIOTask|, r=kyle
...
|SocketIOTask| is a task-class template that holds a reference to
a Socket I/O object. It replaces |UnixSocketImplTask|, which only
supports objects of type |UnixSocketImpl|.
2014-07-31 13:55:29 +02:00
Thomas Zimmermann
2747e4a5e1
Bug 1046109: Add |SocketIOBase|, r=kyle
...
|SocketIOBase| is a base class for Socket I/O classes. It's not a
requirement, but provides a number of helpful methods for common
I/O operations on the I/O thread.
2014-07-31 13:55:29 +02:00
Thomas Zimmermann
f256e6fef4
Bug 1046109: Add |SocketIODeleteInstanceRunnable|, r=kyle
...
|SocketIODeleteInstanceRunnable| deletes a Socket I/O object on the
main thread. This is required to serialize the close operation of
Socket consumers.
2014-07-31 13:55:29 +02:00
Thomas Zimmermann
1cb02024c4
Bug 1046109: Add |SocketIORequestClosingRunnable|, r=kyle
...
|SocketIORequestClosingRunnable| notifies the Socket consumer on
the main thread to clean up the Socket I/O object and close the
connection.
2014-07-31 13:55:28 +02:00
Thomas Zimmermann
fee8753bfe
Bug 1046109: Add |SocketIOReceiveRunnable|, r=kyle
...
|SocketIOReceiveRunnable| sends received data from the Socket I/O
object on the I/O thread to the Socket consumer on the main thread.
2014-07-31 13:55:28 +02:00
Thomas Zimmermann
60f0025c1f
Bug 1046109: Add |SocketIOEventRunnable|, r=kyle
...
|SocketIOEventRunnable| sends a notification from the Socket I/O
object to a Socket consumer on the main thread.
2014-07-31 13:55:28 +02:00
Thomas Zimmermann
757296d36b
Bug 1046109: Add |SocketIORunnable|, r=kyle
...
|SocketIORunnable| is a runnable class template that holds a
reference to a arbitrary Socket I/O object. |SocketIORunnable|
replaces |UnixSocketImplRunnable|, which only handles objects of
type |UnixSocketImpl|.
2014-07-31 13:55:28 +02:00
Thomas Zimmermann
c12b17b08a
Bug 1046109: Add |SocketConsumerBase| and inherit |UnixSocketConsumer| from it, r=kyle
...
|SocketConsumerBase| handles connection state for |UnixSocketConsumer|
and its derived classes. Implementing classes must override a number of
virtual methods, to handle notifications about changes to the state of
the connection.
2014-07-31 13:55:27 +02:00
Nathan Froyd
12c76f15f7
Bug 1042878 - part 2 - move MOZ_CAIRO_CFLAGS et al additions to C*FLAGS into moz.build; r=glandium
2014-07-24 11:55:33 -04:00