Граф коммитов

1667 Коммитов

Автор SHA1 Сообщение Дата
Shelly Lin 96a46d1102 Bug 811636 - Close the child FD in the parent asap in order to detect when the child closes its FD. r=dhylands 2013-07-09 10:37:33 +08:00
Thomas Zimmermann a96bc3f7be Bug 884840: Reimplement GetServiceChannel without Bluetooth command thread, r=echou
The method BluetoothDBusService::GetServiceChannel currently blocks the
Bluetooth command thread while waiting for a DBus message, before it
dispatches a runnable to the main thread.

With this patch, the DBus message is processed asyncronously, and the
runnable gets dispatched from the DBus reply handler.

--HG--
extra : rebase_source : 24519b7dd8d59fcbbf78436092610c8db195f6a2
2013-07-09 09:56:14 +02:00
Thomas Zimmermann 4de46e8113 Bug 884840: Added DBusReplyHandler, r=qdot
Handler functions for DBus replies sometimes need several data fields
or need to keep state over replies for multiple messages. The DBus API
itself only allows for a single pointer to user data.

The class DBusReplyHandler is a base class for implementing DBus reply-
message handlers. Users of DBus can inherit from this class to implement
message-specific handlers.

--HG--
extra : rebase_source : 91c5f6e8d365922fd3b52fbaf502052f86274f16
2013-07-09 09:55:08 +02:00
Ryan VanderMeulen 03e73d9988 Backed out changeset b7d6458d2a3c (bug 887483) for apparently causing Android robocop-2 failures. 2013-07-10 13:51:28 -04:00
Brian R. Bondy 4122c73005 Bug 890362 - Delayed tasks posted to the mozilla UI message loop stop working after sleep/wake. r=bsmedberg 2013-07-10 12:39:09 -04:00
Trevor Saunders 63ed0e9589 bug 887483 - rm a bunch of useless assignments to FORCE_STATIC_LIB r=mshal 2013-06-25 14:29:26 -04:00
Xavier Fung 1db230cd9a Bug 889823 - ipc fail to compile using Visual Studio 2013 r=bsmedberg 2013-07-10 11:19:42 +09:00
Ed Morley b4e5d925e1 Bug 855686 - Attempt to log cmdline for launched process; r=ted 2013-07-08 18:54:02 +01:00
Joey Armstrong 38ca368790 bug 870407: cleanup bug. r=mshal 2013-07-08 11:53:00 -04:00
David Zbarsky 4228506a7b Bug 885804: IPDL unit test changes r=benjamin 2013-07-08 11:48:40 -04:00
David Zbarsky bd69568121 Bug 885804: Renaming in js/layout/ipc r=roc 2013-07-08 11:48:39 -04:00
David Zbarsky 554ba1b8b7 Bug 885804: Change IPDL codegen to rename (De)allocPFoo functions to (De)allocPFoo(Parent|Child) r=jlebar 2013-07-08 11:48:39 -04:00
Mike Shal d5df6bb361 Bug 868536 - Move ipdl.mk files to moz.build; r=gps
Author: Mike Shal <mshal@mozilla.com>
2013-07-01 09:56:28 -04:00
Ms2ger dd8f07a495 Bug 888573 - Remove bit_cast; r=Waldo 2013-07-10 11:54:35 +02:00
Nicolas Silva 4b3fbac3da Bug 858914 - Mark all TextureHost and TextureClient classes deprecated. r=mattwoodrow 2013-07-08 23:30:44 +02:00
David Anderson 71e7bc4fc9 Rewrite CPOWs to use one actor per process (bug 853209, r=billm,bholley,smaug). 2013-07-03 00:24:32 -07:00
David Anderson 3b7c85be1b Add urgent message semantics to IPC and IPDL (bug 867013, r=cjones). 2013-07-02 20:37:33 -07:00
Trevor Saunders 2af42ae713 bug 887854 - remove most useage of pratom.h r=mounir, mcmanus, jrmuizel 2013-06-16 03:09:07 -04:00
Joey Armstrong 53426849e7 bug 870407: move CMMSRCS to mozbuild (file batch #3). r=mshal 2013-07-02 17:09:08 -04:00
David Anderson 2d21f2b922 Remove unused run-to-completion feature in IPDL (bug 876989, r=cjones). 2013-07-02 11:22:18 -07:00
Bobby Holley 439ae70017 Bug 880917 - Add an API to mutate the version on the compartment and use it from the shells. r=luke 2013-06-29 09:11:19 -06:00
Bobby Holley 306f8a67ea Bug 880917 - Convert JS_SetVersion API consumers to per-compartment versions. r=luke 2013-06-29 09:11:18 -06:00
Bobby Holley 270f94dd2f Bug 880917 - Generalize JS_NewGlobalObject API to take CompartmentOptions. r=luke
This will be useful for versioning, as well as JIT options and all the other
stuff that eventually needs to move out of the JSContext.
2013-06-29 09:11:17 -06:00
Justin Lebar 3e059c7221 Bug 820686 - Remove code after MOZ_CRASH or MOZ_ASSUME_NOT_REACHED. r=(see below)
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=waldo for js
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else
2013-06-28 18:38:32 -07:00
Justin Lebar 051c5b560a Bug 802686 - s/MOZ_NOT_REACHED/MOZ_CRASH/ in Gecko. r=(see below)
r=tbsaunde for accessible
r=jmuizelaar for gfx
r=roc for layout
r=glandium for mozglue
r=jduell for netwerk
r=khuey for everything else

This is a mechanical change made with sed.  Later patches in this queue
clean up the whitespace errors and so on.
2013-06-28 18:38:30 -07:00
Catalin Iacob 09cfbe927e Bug 798914 (part 2) - Use newly introduced mozilla::MallocSizeOf in chromium. r=njn.
--HG--
extra : rebase_source : 3488c0e9140919a78b9a8658f54a6dc162935653
2013-06-16 14:12:19 +02:00
Ms2ger 8d71159d4c Bug 883537 - Remove dead testing code from chromium; r=bsmedberg 2013-06-23 09:14:36 +02:00
Ms2ger d8bad3012d Bug 883504 - Remove references to EXCLUDE_SKIA_DEPENDENCIES; r=bsmedberg 2013-06-23 09:14:26 +02:00
Justin Lebar 3837ac1912 Bug 885158 - If a message is sent on a closed IPC channel, delete it immediately. r=bent
Our old behavior was to enqueue it until the channel gets destructed.

--HG--
extra : rebase_source : 9766774838257d9e1a6adc15d3b4cf9e38fefcbe
2013-06-21 13:58:47 -07:00
Kartikaya Gupta 1de2b15435 Bug 883646 - Propagate the ScaleFactor classes far and wide. r=kentuckyfriedtakahe 2013-06-21 17:03:56 -04:00
Ryan VanderMeulen d2b6c8631b Backed out 7 changesets (bug 883646) for reftest-ipc failures.
Backed out changeset 2272804a8e71 (bug 883646)
Backed out changeset e39d3bdf847a (bug 883646)
Backed out changeset bf46fc332efe (bug 883646)
Backed out changeset 6bb558c3136f (bug 883646)
Backed out changeset d7d5d16e27e0 (bug 883646)
Backed out changeset 14c73096a132 (bug 883646)
Backed out changeset 89f6185a271b (bug 883646)
2013-06-20 17:36:39 -04:00
David Anderson 7957b611c2 Bug 868919 - Confirm that the child process has received fd handles on OSX before releasing them. r=bent 2013-06-21 09:32:02 +12:00
Kartikaya Gupta 603cf626d1 Bug 883646 - Propagate the ScaleFactor classes far and wide. r=kentuckyfriedtakahe 2013-06-20 16:10:58 -04:00
Sotaro Ikeda 56dfeaf4e8 Bug 882552 - Change Binder Thread's default priority to 0. r=mwu, r=jlebar 2013-06-20 12:51:19 -04:00
Alex Xu 577bfccf43 Bug 853208 - Fix build break on Gentoo 2013-06-15 20:44:37 -04:00
Nathan Froyd 3d5d16ad9c Bug 871596 - part 3 - replace memcpys of POD datatypes in Pickle with something smarter; r=bent 2013-06-05 13:01:05 -04:00
Nathan Froyd 1a69354879 Bug 871596 - part 2 - add a new memberAlignmentType to replace the scattered uint32_t alignments; r=bent 2013-05-30 11:31:35 -04:00
Nathan Froyd 46164cd78e Bug 871596 - part 1 - rewrite Pickle's alignment mechanism to be more obviously optimizable; r=bent 2013-05-30 11:29:45 -04:00
Kan-Ru Chen (陳侃如) c3c04eb5f3 Bug 783451 - Add ipdl testcases. r=bent DONTBUILD
--HG--
extra : rebase_source : 7943a9f7d594a5790782c3f37b5bda46ae1a30cc
2013-06-13 13:53:38 +08:00
David Zbarsky d8e726af8c Fix error message in ipdl compiler, no bug, r=jlebar over irc 2013-06-18 17:39:04 -07:00
Siddartha P d6036e944c Bug 879821 - NFC B2G IPC Implementation Using UnixSockets; r=qdot 2013-06-17 15:33:48 -07:00
Ehsan Akhgari f6ad445a82 Bug 579517 follow-up: Remove NSPR types that crept in 2013-06-12 21:26:59 -04:00
Martin Stransky d8da1b5a38 Bug 877626 - Port GTK2 to GTK3 - build config, rest of the tree. r=karlt 2013-06-12 08:04:28 -04:00
Kartikaya Gupta dc77049db1 Bug 785929 - Kill FrameMetrics.mContentRect. r=kentuckyfriedtakahe 2013-06-11 09:46:51 -04:00
Kartikaya Gupta cf143c6315 Bug 879004 - Add types to the remaining methods in GeckoContentController. r=kentuckyfriedtakahe 2013-06-10 09:05:44 -04:00
Matt Woodrow d5aa7af389 Bug 877036 - Make SharedMemory's memory reporter threadsafe. r=jlebar 2013-06-07 17:10:31 +12:00
Bobby Holley 4a91b8a55b Bug 877478 - Remove FullTrustSecMan junk. r=mrbkap
This stuff shouldn't be necessary anymore. The default security manager should
do the right thing given for script running in the scope of a BackstagePass.
2013-06-04 19:56:42 -07:00
Ryan VanderMeulen 2182e742cb Merge m-c to inbound. 2013-06-03 11:58:20 -04:00
Kartikaya Gupta 46a7789a65 Bug 877728 - Convert some CSS rects passed to Java from gfx::Rect to CSSRect. r=BenWa 2013-06-03 09:52:44 -04:00
Ryan VanderMeulen 9613e11428 Merge m-c to birch. 2013-06-03 07:44:41 -04:00
Mark Hammond 70cbb76fa4 Bug 875210 - child processes on Windows inherit (only) stdout and stderr. r=aklotz 2013-05-30 23:21:36 +10:00
Thomas Zimmermann d50447986e Bug 830290: Don't block DBus while waiting for replies r=bent,qdot 2013-03-11 15:22:56 +01:00
Thomas Zimmermann e747be0ff7 Bug 830290: Send blocking DBus messages from within DBus thread r=bent,qdot
The this commit moves the sending of blocking DBus messages to the
DBus thread. This allows us to avoid concurrency problems within the
DBus library, which is not explicitly thread-safe.

As a side note, I'd like to mention that blocking in distributed
systems simply doesn't work. The dbus library is especially broken
in this regard as it delays all unrelated messages until the reply
for the blocking request has been received. A future commit should
implement this functionality with an asyncronous call and make the
related thread wait for the reply.
2013-03-01 15:05:50 +01:00
Thomas Zimmermann 49b1e5406b Bug 830290: Execute DBus send operation in DBus thread r=bent,qdot
The DBus send operation simply sends a DBus message without further
processing of replies. If the sender is interested in a reply, the
respective serial number can be returned. In this case, the sending
operation (and only the sending) is serialized with the calling
thread.
2013-03-01 13:43:45 +01:00
Thomas Zimmermann 5c1a06a7d3 Bug 830290: Cleanup DBusConnectionSendWithReplyTask r=bent,qdot
The class DBusConnectionSendWithReplyTask has been renamed to
DBusConnectionSendWithReplyRunnable, which better fits its purpose. The
internal callback function and data has been move into the implementation
of DBusConnectionSendWithReplyRunnable. Additionally, there is now an
abstract base class for DBus send runnables. This class will become useful
for implementing send classes with different policies.
2013-03-01 12:49:57 +01:00
Thomas Zimmermann 04dc7482ea Bug 830290: Setup asyncronous DBus messages in DBus thread r=bent,qdot
This patch finally fixes bug 827888 were a message's reply was
received before the respective handler function could be installed.

The patch adds the class DBusConnectionSendWithReplyTask, which
asyncronously sends a DBus message and installs the reply's handler
function. The DBus utility functions for asyncronous messages create
an instance of this class and dispatch it to the DBus thread. This
intercepts the DBusPollTask, so no DBus replies can be received until
the dispatched DBusConnectionSendWithReplyTask has finished.
2013-01-28 10:15:31 +01:00
Thomas Zimmermann 09ba3f9b43 Bug 830290: Added dispatch function for DBus thread r=bent,qdot
The new function allows to schedule nsRunnables to an existing DBus
thread. This intercepts the running instance of DBusPollTask and
makes the DBus thread process the dispatched runnable. The intercepted
poll task automatically continues polling once all pending runnables
have been processed.
2013-01-14 11:50:27 +01:00
Thomas Zimmermann 6cb8692c1d Bug 830290: Use DBusPollTask r=bent,qdot
This patch replaces the DBus EventLoop function by an instance
of DBusPollTask. It also cleans up the initialization and shutdown
code of the DBusThread.
2013-01-14 11:50:25 +01:00
Thomas Zimmermann da7a4cb48a Bug 830290: Added DBusPollTask r=bent,qdot
This patch adds class DBusPollTask. The DBusPollTask class is an
nsRunnable for receiving DBus messages. It is intended to run in
a separate thread that is dedicated to DBus only.

The Run function of the poll task resembles the DBus EventLoop
function, but allows to intercept execution in favor of other
nsRunnables. Afterwards the DBusPollTask continues.
2013-01-14 11:50:21 +01:00
Thomas Zimmermann f3ddbbf1a5 Bug 830290: Cleanup DBus EventLoop function r=bent,qdot
We intent to run the DBus thread's EventLoop function as separate
nsRunnable, but the function also contains code for initializing
sockets that are used for internal communication.

With this patch the socket initialization has been moved to the
setup function. This reduces the EventLoop function to plain event
handling.
2013-01-14 11:50:18 +01:00
Kartikaya Gupta 1e3b912be9 Bug 877726 - Convert FrameMetrics.mScrollOffset to be a CSSPoint. r=kentuckyfriedtakahe 2013-05-30 21:30:13 -04:00
Boris Zbarsky ac87784e7f Bug 877540. Fix remaining unsafe reference hazards in browser code. r=terrence 2013-05-30 17:46:48 -04:00
Kyle Huey 0d78767303 Bug 876555: Avoid including xpcprivate.h in most generated dom binding code. r=bz 2013-05-30 11:15:31 +08:00
Jan Beich 952029dd65 Bug 877139 - Fix a few freebsd typos in bug 864774. r=glandium 2013-05-29 20:56:09 -04:00
Julian Seward eb8e819973 Bug 872496 - Allow early registration of stack tops, to improve native unwind quality. r=bgirard. 2013-05-28 14:03:38 +02:00
Mike Shal 5169c0a913 Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
Anthony Jones 2301455d33 Bug 868047 - Use a PresShell ID to eliminate stale APZC events; r=roc,benwa 2013-05-24 09:43:36 +08:00
Bobby Holley cbb2e81909 Bug 868110 - Remove JS_GetGlobalObject from the IPC test-shell. r=luke
This one is easy to infer, because we subsequently call JS_CallFunctionValue,
which asserts that cx, obj, and fval are all same-compartment. So assuming
this code doesn't compartment mismatch right now, this should be equivalent.
2013-05-22 15:42:44 -06:00
Bobby Holley cdde50556c Bug 868130 - Include nsCxPusher.h everywhere we need it, and stop including it from nsContentUtils.h. r=gabor 2013-05-22 10:05:26 -06:00
Boris Zbarsky dbe1f3da32 Bug 873735 part 2. Change nsIXPConnectJSObjectHolder::GetJSObject to return a JSObject*. r=bholley 2013-05-20 08:44:18 -04:00
Ehsan Akhgari 0b00dc2f2d Bug 873038 - Remove the old MSVC PGO exclusions across the tree; r=glandium 2013-05-16 11:16:30 -04:00
Matt Woodrow ced7f215ab Bug 870211 - Expose details about possible texture upload limitations in TextureFactoryIdentifier. r=nical 2013-05-16 15:45:43 +12:00
Ryan VanderMeulen 2502606f8b Merge m-c to inbound. 2013-05-15 08:36:44 -04:00
Bobby Holley e9040a5a5c Bug 871299 - Remove JS_GetGlobalObject from SystemWorkerManager and RIL. r=mrbkap 2013-05-14 10:16:51 -07:00
Ryan VanderMeulen c834d91a7c Merge m-c to birch. 2013-05-14 08:38:59 -04:00
Kyle Machulis 8b159fc25b Bug 854846: Make UnixSocket's connect function non-block; r=tzimmermann 2013-05-13 20:51:21 -07:00
Joey Armstrong 26736a0ee2 bug 869143: phase2 cleanup for XPCSHELL_TEST conversion. r=mshal 2013-05-13 16:24:07 -04:00
Albert Crespell dc3cd58064 Bug 783966 - Process netd's InterfaceChange(600) and BandwidthControl(601) message. r=vchang 2013-04-23 09:27:05 +02:00
Matt Woodrow 3690846a48 Bug 870176 - Import chromium bug 20249. r=dvander 2013-05-10 09:02:50 +12:00
Matt Woodrow bf2a751e54 Bug 756601 - Send the values of mScaleToSize/mScaleMode across IPC. r=roc 2013-05-10 09:02:50 +12:00
Brian O'Keefe 8d90859ddb Bug 862986 - Part 2a: Migrate PROGRAM from Makefile.in to moz.build. r=gps 2013-05-01 14:05:40 -04:00
Brian O'Keefe 23fd86fd73 Bug 862986 - Part 1a: Move MOZ_CHILD_PROCESS_NAME and MOZ_CHILD_PROCESS_BUNDLE to configure.in, remove ipc/app/def.mk. r=glandium 2013-05-09 15:55:28 -04:00
Jonathan Kew 07ea0b6c93 bug 866365 - declare both firefox.exe and plugin-container.exe as dpi-aware via their manifests. r=jimm,gps 2013-05-07 09:16:43 +01:00
David Zbarsky bbad01caed Bug 867459: Rooting fixes for ipc r=terrence 2013-05-03 17:49:47 -04:00
Ryan VanderMeulen 8dd4074205 Backed out changesets c7937fb5f4bb and cf8db9b6bd61 (bug 862986) for bustage.
CLOSED TREE
2013-04-30 21:09:41 -04:00
Brian O'Keefe 7422d5ac7b Bug 862986 - Part 2: Migrate PROGRAM from Makefile.in to moz.build. r=gps 2013-04-30 20:46:10 -04:00
Brian O'Keefe 41e401f326 Bug 862986 - Part 1a: Move MOZ_CHILD_PROCESS_NAME and MOZ_CHILD_PROCESS_BUNDLE to configure.in, remove ipc/app/def.mk. r=glandium 2013-04-30 20:45:39 -04:00
Ryan VanderMeulen b6cc74b921 Backed out changesets 64c7ba1d3d04 and 7e9d5bb4a9af (bug 862986) for test failures. 2013-04-30 10:08:38 -04:00
Brian O'Keefe 0baa2a32d6 Bug 862986 - Part 2: Migrate PROGRAM from Makefile.in to moz.build. r=gps 2013-04-30 09:08:31 -04:00
Brian O'Keefe 5b9d51de27 Bug 862986 - Part 1a: Move MOZ_CHILD_PROCESS_NAME and MOZ_CHILD_PROCESS_BUNDLE to configure.in, remove ipc/app/def.mk. r=glandium 2013-04-30 09:05:17 -04:00
Joey Armstrong 321d063783 bug 844655: Port XPCSHELL_TESTS to moz.build as XPCSHELL_TESTS_MANIFESTS 2013-04-29 14:49:00 -04:00
Bobby Holley cc68b166ca Bug 865729 - Remove nsIJSContextStack from other miscellaneous parts of gecko. r=gabor 2013-04-29 11:16:19 -07:00
Daniel Holbert ce245d2647 Bug 865766 - Reorder MessageLoop init list to fix build warning. r=jlebar 2013-04-26 10:11:00 -04:00
Bill McCloskey 5071cc169c Bug 860885 - Turn off Chromium IPC [debug] spew (r=glandium) 2013-04-23 12:14:47 -07:00
Jan Beich fee087f8a9 Bug 864013 - Add libevent config for BSDs. r=landry 2013-04-23 10:58:11 +02:00
Georg Fritzsche a59a366c8c Bug 848237 - Let IPDL generate runtime aborts for constructor failures in child processes. r=bsmedberg 2013-04-15 15:57:14 +02:00
Xin Zhang 2fa2b688ad Bug 857385 - Make various JSFunctionSpec arrays const. r=waldo
--HG--
extra : rebase_source : 24141998ffad3b0e6bad98b6fc0ce3754e448d5b
2013-04-22 14:15:49 -07:00
Ehsan Akhgari dbe39a6f7f Bug 863559 - Do not leak the mach port in PlatformThread::CurrentId; r=jlebar 2013-04-19 14:37:41 -04:00
Ryan VanderMeulen cd0138cd77 Merge m-c to inbound. 2013-04-18 14:01:31 -04:00
Justin Lebar 3aef51e08f Bug 857152 - Make IPC channels more robust against use after being closed. r=bent 2013-04-03 15:54:00 +02:00