Commit Graph

78 Commits

Author SHA1 Message Date
Ms2ger
934e7c6e7a Bug 787933 - Stop using stdin types in IPC code; r=bsmedberg+cjones sr=cjones 2012-09-17 10:37:20 +02:00
Chris Jones
41bc6987f5 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
Chris Jones
38e5546a35 Bug 636063, part 3: Honor compression requests when queuing messages. r=bent 2012-08-25 01:25:08 -07:00
Ms2ger
8978e6d894 Back out bug 636063, bug 774988 and bug 784647 for busting all of Android. 2012-08-25 13:18:18 +02:00
Chris Jones
14e6eb7cd7 Bug 636063, part 3: Honor compression requests when queuing messages. r=bent 2012-08-25 01:25:08 -07:00
Ehsan Akhgari
243c878d26 Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
This patch was generated by a script.  Here's the source of the script for
future reference:

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "obj-ff-dbg*" \
       ! -name nsXPCOMCID.h \
       ! -name prtypes.h \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.c" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t

convert PRIntn int
convert PRUintn unsigned

convert PRSize size_t

convert PROffset32 int32_t
convert PROffset64 int64_t

convert PRPtrdiff ptrdiff_t

convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Aryeh Gregor
8b4a23fc4c Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Niko Matsakis
4705e61e0a Bug 699319 - Part 1: Abstract out the mTransport and I/O thread into the Link abstraction. r=cjones 2011-11-30 08:24:46 -08:00
Niko Matsakis
a65a6cb418 Bug 698075 - Use nsAutoptr<> to guarantee msg is freed; r=cjones 2011-11-30 13:19:49 +00:00
Jim Mathies
28d2d690d1 Bug 648935 - Process native events during calls to WaitForNotify in the child process when nested native event loops are detected in the parent. r=bsmedberg. 2011-05-18 06:57:08 -05:00
Chris Jones
c73c49451c Bug 648935: Need to use the "remote stack depth view" when deciding whether to undefer, too. r=bsmedberg 2011-05-04 15:55:54 -05:00
Chris Jones
8ae6313c8a Bug 556214, part 3: IPC code wants to be using non-reentrant Monitor. r=bent 2011-04-29 14:21:57 -05:00
Chris Jones
c1b2f2df15 Bug 572134: "Undefer" the in-call that lost a race at stack-depth 1, if there is one, when RPCChannel code leaves the C++ stack, so that the in-call can be processed if there is an immediately following out-call. r=bsmedberg 2011-01-12 01:07:17 -06:00
Chris Jones
705ca0c09d Bug 592002: Out-of-turn RPC replies should be taken into consideration when checking for races, or else we can defer in-calls when we shouldn't. r=bsmedberg a=blocking-beta6 2010-09-01 13:01:50 -05:00
Jim Mathies
097728a511 Bug 558986 - detect and resolve races between MS-COM RPC and IPDL RPC by implementing IMessageFilter and processing pending IPDL RPC calls while waiting for MS-COM RPC responses. Original patch by bsmedberg, r=cjones/jimm/ehsan with followup fixes by Jim Mathies, r=bsmedberg 2010-05-21 11:48:34 -04:00
Jim Mathies
4c5f8658f1 Bug 558986 - Backout of fix for crashes in TSF with Flash/Silverlight on tablets. CLOSED TREE 2010-05-17 14:36:43 -05:00
Benjamin Smedberg
a8e681c88f Bug 558986 - Fix for crashes in TSF with Flash/Silverlight on tablets (OLE/COM nested event loops). r=cjones, jimm, ehsan. 2010-05-17 11:33:34 -05:00
Gavin Sharp
c9d9636f2e Bug 552889: avoid spamming stderr in release builds, r=cjones 2010-05-06 15:17:08 -04:00
Benjamin Smedberg
66bd69fb25 Bug 561871 part B: don't use Windows events to enter/exit a nested event loop within an RPC stack frame, because delivery of those events isn't always associated with the correct stack frame, and also because the events can be lost if they race with an incoming RPC reply message. Instead, keep a linked list (on the stack) of RPC frames globally and per-channel, to associate requests to enter a nested event loop with the correct frame, r=jimm 2010-04-28 11:01:09 -04:00
Chris Jones
f3f1260a1e Bug 545733: |const|-ify some *Channel methods. r=bent 2010-04-27 00:42:59 -05:00
Chris Jones
3b4f5243ef Bug 544518: Send Messages directly through the Transport on the IO thread rather than through a no-added-value AsyncChannel indirection. r=bent 2010-04-22 18:53:30 -05:00
Chris Jones
14a8532253 Bug 554262 - [OOPP] Silverlight context menu hangs the browser. r=bent, jmathies. 2010-03-24 16:49:54 -05:00
Jim Mathies
cbfd4e78fa Bug 553606 - [OOPP] Limit spin loop to a call depth of one. r=bent. 2010-03-24 16:49:05 -05:00
Chris Jones
edce9885b4 Bug 554466: Only EnqueuePending when there's been an rpc out-call. r=bent 2010-03-24 00:52:47 -05:00
Chris Jones
fedacdfba2 Bug 552014 - Treat RPC replies received in an event loop nested inside the one from which the call was made as if they had arrived out of order. r=jimm. 2010-03-19 01:57:00 -05:00
Chris Jones
abb29365b1 Bug 552014: Don't run OnMaybeDequeueOne from a nested context. r=bent 2010-03-18 17:52:33 -05:00
Chris Jones
9fe1b05a9a Bug 533055: Part 3: Track |Message|s being processed on the C++ stack and offer a DumpRPCStack() method to print them. r=bent 2010-03-18 17:52:32 -05:00
Chris Jones
1a05cc9e43 Bug 552294: *Channel::OnError must run atomically. r=bent 2010-03-18 17:52:28 -05:00
Chris Jones
eebd12ce5f b=550026 Cancel PluginCrashed when PluginModule is deleted. r=bsmedberg 2010-03-08 09:16:02 +13:00
Benjamin Smedberg
4842efe3de Bug 545342 - Remove the RPCChannel assertions about mismatched RPC stacks because mismatched stacks are normal when asynchronous messages are pending which cause secondary RPC messages, r=cjones 2010-03-11 17:17:35 -08:00
Chris Jones
89977a039f Merge backout 2010-03-11 05:07:51 -06:00
Chris Jones
a0744e620e Backing out bug 550026 due to orange 2010-03-11 05:07:42 -06:00
Chris Jones
2ffc24d405 Bug 549888: Part 1: Let the channel listener decide how to mediate RPC races, defaulting to "child wins". r=bent 2010-03-11 01:35:30 -06:00
Chris Jones
1a33e2c897 Bug 546035: Check if we're still connected before dispatching a received message. r=bsmedberg 2010-03-11 01:35:26 -06:00
Chris Jones
0458da5721 b=550026 Don't call PluginCrashed while plugin code is still on the stack r=bsmedberg 2010-03-08 09:16:02 +13:00
Josh Matthews
504425e0e6 Bug 545342: Cancel dequeue task on channel error. r=cjones 2010-02-15 20:47:00 +13:00
Chris Jones
a5b983b643 Bug 545455, part 1: Track when RPCChannel code is first pushed on the C++ stack and last popped. r=bent 2010-02-16 12:44:21 -06:00
Chris Jones
5c21b8435b Bug 548214: Seqno's go up in the parent, down in the child. r=bsmedberg 2010-02-24 15:59:23 -06:00
Ben Turner
6553dc43c4 Bug 547247 - '[OOPP] Crash [@ RtlEnterCriticalSection ] when ending mozilla-runtime on a page that does not contain a plugin'. Bustage fix 2010-02-19 12:45:47 -08:00
Ben Turner
be654d549e Bug 547247 - '[OOPP] Crash [@ RtlEnterCriticalSection ] when ending mozilla-runtime on a page that does not contain a plugin'. r=bsmedberg. 2010-02-19 12:39:38 -08:00
Ben Turner
d1e404da85 Bug 546797 - '[OOPP] Assertion in RPCChannel's EnqueuePendingMessages: ABORT: expected mDeferred to have 0 or 1 items' r=jimm 2010-02-18 12:12:54 -08:00
Chris Jones
6f5e16b659 Bug 545757: Don't post replies to the IO thread after a connection error. r=bent 2010-02-11 17:33:53 -06:00
Chris Jones
a495a7a2c7 Bug 545338: Make the IPC hang detector tolerate spurious wake-ups. Possibly temporary. irc-r=jimm 2010-02-10 15:41:44 -06:00
Chris Jones
87f19e3cc8 Bug 540004, part 2: Detect hangs while awaiting synchronous IPC replies (on POSIX). r=bent 2010-02-09 18:02:54 -06:00
Chris Jones
b1f7c77df7 Fix linux bustage. 2010-02-09 17:04:06 -06:00
Jim Mathies
69719d7efc Bug 538918 - [OOPP] Modal system dialogs cause UI freeze w/windowless controls. r=bent, cjones. 2010-02-09 16:34:38 -06:00
Chris Jones
b8bdb19755 Follow-up to bug 540886: address review comments I forgot to before pushing. 2010-01-27 02:17:17 -06:00
Chris Jones
ab07171c3c Bug 540886, part 2: Offer a BlockChild() interface to RPC protocols that allows parents to prevent children from sending messages back of their own volition until the parent calls UnblockChild(). r=bent 2010-01-27 00:41:32 -06:00
Benjamin Smedberg
a66882514d Bug 516515 - Don't initialize XPCOM in plugin processes, r=cjones 2010-02-03 17:17:09 -05:00