Wes Kocher
28c6b17a8f
Backed out changeset 296fd9d50c25 (bug 1240985)
...
--HG--
extra : commitid : 1uiqg6HJ5kS
2016-01-26 09:55:24 -08:00
Jan de Mooij
ffba220766
Bug 1240985 followup - Make CancelMessage constructor |explicit|. r=bustage, CLOSED TREE
2016-01-26 08:49:48 +01:00
Bill McCloskey
43897699b1
Bug 1240985 - Stop returning MsgNotAllowed (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
004730c364
Bug 1240985 - Check WasTransactionCanceled after timeout (and avoid timing out) (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
3e1276dc1a
Bug 1240985 - Null out mRecvd if message it corresponds to is cancelled (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
1ea1154361
Bug 1240985 - Always enqueue OnMaybeDequeueOne task when receiving a message (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
bed9507f92
Bug 1240985 - Hold off processing some messages during timeout (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
20989f2902
Bug 1240985 - Make intentional crash happen sooner when cancelling a racy sync message (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
230e3aab23
Bug 1240985 - Fix some timeout/cancel interactions (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
6c7d6d7d7e
Bug 1240985 - Add mLastError to track sync Send errors better (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
27e6da673a
Bug 1240985 - Crash when trying to cancel while dispatching urgent message (r=dvander)
2016-01-25 21:49:42 -08:00
Bill McCloskey
dd544927e1
Bug 1240985 - Back out "Stop returning MsgNotAllowed" patch.
2016-01-24 17:31:11 -08:00
Bill McCloskey
548907bd62
Bug 1240985 - Fix transaction ID when sending cancel message
2016-01-24 17:30:51 -08:00
Nicholas Nethercote
2e3da0d24d
Bug 1241370 - Don't strdup() the message name in InterruptFrame. r=billm.
...
It's not necessary, because all message names are string literals.
--HG--
extra : rebase_source : 5adc437f4747589ee5e2a8582e2666dc569ef569
2016-01-20 19:00:01 -08:00
Bill McCloskey
0cbd486903
Bug 1240985 - Make sure to queue mDequeueOneTasks after cancellation (r=dvander)
2016-01-21 07:38:27 -08:00
Bill McCloskey
dc169e992e
Bug 1240985 - Stop returning MsgNotAllowed (r=dvander)
2016-01-21 07:38:26 -08:00
Bill McCloskey
78d4767d25
Bug 1240985 - Return false when trying to Send while dispatching urgent (r=dvander)
2016-01-21 07:38:25 -08:00
Bill McCloskey
e64d1645e5
Bug 1240985 - Check for cancellation during ProcessPendingRequests (r=dvander)
2016-01-21 07:38:24 -08:00
Bill McCloskey
596df96eee
Bug 1240985 - Fix cancel during timeout (r=dvander)
2016-01-21 07:38:22 -08:00
Bill McCloskey
538d2f8db9
Bug 1240985 - Add some MessageChannel logging (r=dvander)
2016-01-21 07:38:21 -08:00
Wes Kocher
7b2fec233a
Backed out 9 changesets (bug 1240985) for various Windows build failures CLOSED TREE
...
Backed out changeset 1a5165c7be18 (bug 1240985)
Backed out changeset 26e6fe3875a5 (bug 1240985)
Backed out changeset b87f893bd6aa (bug 1240985)
Backed out changeset 3fcd50d83821 (bug 1240985)
Backed out changeset 488690ba4c8f (bug 1240985)
Backed out changeset a7eecc68ca20 (bug 1240985)
Backed out changeset 12de76467424 (bug 1240985)
Backed out changeset 34f87cc8ac24 (bug 1240985)
Backed out changeset fddcf8b3b088 (bug 1240985)
--HG--
extra : commitid : HHtLm1o5wWx
2016-01-20 17:22:12 -08:00
Andrew McCreight
4e8ae41af1
Bug 1240985 - Fix variadic macro on Windows. r=bustage CLOSED TREE
2016-01-20 17:05:15 -08:00
Bill McCloskey
d7d6c573c8
Bug 1240985 - Make sure to queue mDequeueOneTasks after cancellation (r=dvander)
2016-01-20 16:21:16 -08:00
Bill McCloskey
01a23f6bef
Bug 1240985 - Stop returning MsgNotAllowed (r=dvander)
2016-01-20 16:21:16 -08:00
Bill McCloskey
961f4af53c
Bug 1240985 - Return false when trying to Send while dispatching urgent (r=dvander)
2016-01-20 16:21:16 -08:00
Bill McCloskey
adab8ac1e6
Bug 1240985 - Check for cancellation during ProcessPendingRequests (r=dvander)
2016-01-20 16:21:16 -08:00
Bill McCloskey
227fa04346
Bug 1240985 - Fix cancel during timeout (r=dvander)
2016-01-20 16:21:16 -08:00
Bill McCloskey
eddd3a1616
Bug 1240985 - Add some MessageChannel logging (r=dvander)
2016-01-20 16:21:16 -08:00
Jan de Mooij
e649af9a9f
Bug 1237201 part 4 - Handle Vector OOM in ipc/. r=billm
2016-01-14 15:19:24 +01:00
Nigel Babu
19bdaf442f
Backed out changeset 4ad4623f3840 (bug 1237458) for build bustage ON A CLOSED TREE
...
--HG--
extra : commitid : HVpJXHDvGIX
2016-01-07 11:51:34 +05:30
Bill McCloskey
e61565a99e
Bug 1237458 - Use release assertions in IPC (r=jld)
2016-01-06 21:53:58 -08:00
chaithanya
4482e6ef5c
Bug 1197306 - remove PR_snprintf calls in ipc/; r=froydnj
2015-12-14 13:32:56 -05:00
Bill McCloskey
35328ff29a
Bug 1215167 - Forbid unsafe browser CPOWs (disabled by default for now) (r=mrbkap)
2015-11-05 13:17:04 -08:00
Wes Kocher
cad6f9789a
Backed out changeset 89446bf8d6b8 (bug 1215167) for introducing a hazard
...
--HG--
extra : commitid : 19K8BX0d4Wz
2015-11-04 16:16:59 -08:00
Bill McCloskey
ac2ca63fc1
Bug 1215167 - Forbid unsafe browser CPOWs (disabled by default for now) (r=mrbkap)
2015-11-04 13:40:15 -08:00
Andrew McCreight
2e351e563c
Bug 1217640 - MessageChannel::Call() should delete aMsg when the channel is not connected. r=jld
...
Otherwise, the message will leak.
2015-10-26 12:38:19 -07:00
Trevor Saunders
dda4730c3c
bug 1212906 - don't handle windows messages while waiting for a sync a11y ipc message r=billm
...
Windows messages can trigger sync ipc messages to the child process. That
means if we handle windows messages while waiting for the response to a sync
a11y ipc message we can end up reentering the code to send ipc messages which
is bad. Try and avoid this situation by not handling windows messages while
waiting for a sync a11y message.
2015-10-14 14:02:47 -04:00
Bill McCloskey
1b725eb6bc
Back out bug 1191143 - Cancel CPOWs from both sides
2015-10-07 11:15:11 -07:00
Bill McCloskey
47202f14e8
Back out bug 1191145 - Stop blocking scripts in CPOW IPCs
2015-10-07 11:15:11 -07:00
Bill McCloskey
0f09a1e1ef
Bug 1210821 - Fix possible IPC cancellation bug (r=dvander)
2015-10-05 13:15:15 -07:00
Bill McCloskey
6efa744de9
Bug 1191145 - Stop blocking scripts in CPOW IPCs (r=dvander)
2015-09-29 16:11:49 -07:00
Bill McCloskey
e633fa0e76
Bug 1191143 - Cancel CPOWs from both sides (r=dvander)
2015-09-29 16:11:49 -07:00
Michael Layzell
0097c41e01
Bug 1201190 - Part 3: Mark every consumer of GUARD_OBJECT as MOZ_RAII, r=ehsan
2015-09-12 16:53:33 -04:00
Aaron Klotz
b5620ac836
Bug 1189709 - Reduce scope of MessageChannel window neutering. r=jimm
...
CLOSED TREE
--HG--
extra : amend_source : 76d39b5b5e7af9384c583b71659adddb72ab169c
2015-08-26 15:57:29 -06:00
Aaron Klotz
1074da1019
Bug 1185639 - Allow deferred message processing to happen between consecutive IPC message dispatches. r=jimm
2015-07-21 01:21:51 -06:00
Ryan VanderMeulen
555a3164b2
Backed out changeset b2d0e28fe539 (bug 1185639) test_plugin_focus.html timeouts.
2015-07-27 16:06:03 -04:00
Aaron Klotz
5e0cb1c026
Bug 1185639: Allow deferred message processing to happen between consecutive IPC message dispatches; r=jimm
...
--HG--
extra : rebase_source : e6567ce8fa5c663970862a9b93c82464b2429250
2015-07-21 01:21:51 -06:00
Bill McCloskey
d46d9878a8
Bug 1177013 - Bug fixes for CPOW cancelation (r=dvander)
2015-07-15 14:37:11 -07:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Aaron Klotz
7649b5e4d2
Bug 1170231: Part 1 - Remove condition that may cause deadlock in IPC when mediating interrupt races; r=dvander
...
--HG--
extra : rebase_source : 21c89d04308650e5529be3d085492cf9b97a1f7e
extra : histedit_source : 3325249d22394c6d919c46d67c66e0b0bb7f080a
2015-06-26 11:01:26 -07:00
Bill McCloskey
5a4480fbd2
Bug 1177013 - Avoid memory leaks when returning errors from IPC Send (r=dvander)
2015-07-06 19:58:46 -07:00
Bill McCloskey
be0af84bba
Bug 1177013 - Telemetry for CPOW cancelation (r=dvander)
2015-07-06 19:58:46 -07:00
Bill McCloskey
a6bf5dd949
Bug 1177013 - Fix big IPC comment (r=dvander)
2015-07-06 19:58:45 -07:00
Bill McCloskey
73129c2b81
Bug 1177013 - Crash in IPC situations where we don't know what to do (r=dvander)
2015-07-06 19:58:45 -07:00
Bill McCloskey
43786e09b5
Bug 1177013 - Use CancelCurrentTransaction to avoid crashes (r=dvander)
2015-07-06 19:58:44 -07:00
Bill McCloskey
64b777ec3f
Bug 1177013 - CancelCurrentTransaction IPC support (r=dvander)
2015-07-06 19:58:44 -07:00
Bill McCloskey
fe7eba5f60
Bug 1177013 - Don't allow prio messages while dispatching sync messages (r=dvander)
2015-07-06 19:58:43 -07:00
Bill McCloskey
541869bf48
Bug 1177013 - Change IPC locking to get transaction ID correct (r=dvander)
2015-07-06 19:58:42 -07:00
Phil Ringnalda
166cfe8460
Back out 12 changesets (bug 1177013) on suspicion of causing b2g emulator debug test bustage
...
CLOSED TREE
Backed out changeset 912aae0815f8 (bug 1177013)
Backed out changeset 3b6448172e50 (bug 1177013)
Backed out changeset 2af18bef5703 (bug 1177013)
Backed out changeset e6bf35115c11 (bug 1177013)
Backed out changeset 4d7f5205b60b (bug 1177013)
Backed out changeset f7de893911bc (bug 1177013)
Backed out changeset de79eba232f0 (bug 1177013)
Backed out changeset 978a77b60f2a (bug 1177013)
Backed out changeset f5b52fa19511 (bug 1177013)
Backed out changeset e14a7b70b6fa (bug 1177013)
Backed out changeset d0f5a3474659 (bug 1177013)
Backed out changeset bff9f07dad52 (bug 1177013)
2015-07-02 22:08:54 -07:00
Bill McCloskey
37a31058b1
Bug 1177013 - Avoid memory leaks when returning errors from IPC Send (r=dvander)
2015-07-02 17:18:12 -07:00
Bill McCloskey
43fd180e15
Bug 1177013 - Telemetry for CPOW cancelation (r=dvander)
2015-07-02 17:18:11 -07:00
Bill McCloskey
b6bec6d887
Bug 1177013 - Fix big IPC comment (r=dvander)
2015-07-02 17:18:11 -07:00
Bill McCloskey
7869156360
Bug 1177013 - Crash in IPC situations where we don't know what to do (r=dvander)
2015-07-02 17:18:11 -07:00
Bill McCloskey
72a845c0e6
Bug 1177013 - Use CancelCurrentTransaction to avoid crashes (r=dvander)
2015-07-02 17:18:10 -07:00
Bill McCloskey
44dfabe655
Bug 1177013 - CancelCurrentTransaction IPC support (r=dvander)
2015-07-02 17:18:10 -07:00
Bill McCloskey
db93151932
Bug 1177013 - Don't allow prio messages while dispatching sync messages (r=dvander)
2015-07-02 17:18:09 -07:00
Bill McCloskey
bfbc982009
Bug 1177013 - Change IPC locking to get transaction ID correct (r=dvander)
2015-07-02 17:18:09 -07:00
Bill McCloskey
b053e2eeeb
Bug 1176096 - Ensure we don't do self-moves in move assignment (r=bent)
2015-07-01 13:30:49 -07:00
Blake Kaplan
25d39ad698
Bug 1155494 - Add a 'compressall' message flag. f=handyman r=billm (parts of this patch were written by handyman with r=billm)
2015-05-05 16:20:42 -07:00
Aaron Klotz
28a06e03b9
Bug 1159037: Ensure correct parent and child message are passed to MessageListener::MediateInterruptRace; r=dvander
...
--HG--
extra : rebase_source : d0c50c69b8124ea1993b823ceadccf28ac91fd6b
2015-04-27 17:24:07 -06:00
Bill McCloskey
86e65c20f2
Bug 1154990 - Better error messages when IPC send fails (r=bent)
2015-04-20 23:32:59 -07:00
Bill McCloskey
79abd6e01a
Bug 1128457 - Change handling of urgent messages during timeout (r=dvander)
2015-04-13 18:11:49 -07:00
Bill McCloskey
e55b3abff3
Bug 1128457 - Make sure received messages are dispatched during timeouts (r=dvander)
2015-04-01 17:37:14 -07:00
Bill McCloskey
ba40fd679d
Bug 1142109 - Process incoming urgent messages before sending (r=dvander)
2015-03-17 13:43:34 -07:00
Aaron Klotz
d186a94983
Bug 1128768: Part 1 - Modify IPC to allow retrieval of topmost routing id on the stack; r=dvander
...
--HG--
extra : rebase_source : d6d92ae478e3f43468b035cfa759e89d7ac0eaab
2015-02-18 23:05:54 -07:00
David Parks
6d03295e45
Bug 1130051 - Restore old semantics of IPDL 'compress' attribute. r=billm
...
In bug 1076820, the semantics of the IPDL 'compress' attribute were
changed to remove *all* duplicate messages of a type from the IPDL
message queue. This restores the original behavior, where duplicates
were only removed if they were adjacent in the message queue.
2015-02-12 12:32:03 -08:00
Bill McCloskey
c04f106018
Bug 1124933 - Include crash reason when intentionally crashing content process (r=bent)
2015-02-03 09:09:27 -08:00
Bill McCloskey
f6534c08fb
Bug 1118618 - [e10s] Slow script/plugin hang UI (r=mrbkap,mconley,bent)
2015-01-16 18:34:47 -08:00
Carsten "Tomcat" Book
1160541f6f
Backed out changeset f7d82a8a8e94 (bug 1118618) for Bustage on a CLOSED TREE
2015-01-13 08:44:29 +01:00
Bill McCloskey
eec94c71f5
Bug 1118618 - IPDL notifications when sending sync messages (r=bent)
2015-01-12 23:06:48 -08:00
Ehsan Akhgari
4354953b4f
Bug 1118486 - Part 1: Use `= delete` instead of MOZ_DELETE directly; r=Waldo
...
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:
#!/bin/bash
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "*/.git*" \
! -wholename "obj-*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-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 MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Brad Lassey
b536664cf4
bug 1097998 - Warn when using CPOWs when content process isn't in a safe state r=billm, bholley
2015-01-02 13:50:21 -05:00
Aaron Klotz
37a6150ab4
Bug 1116827: Add check for null mMonitor in MessageChannel::CanSend(); r=dvander
...
--HG--
extra : rebase_source : c4e4b864fa511d60c2b0dc22e498d2f666c8148f
2014-12-31 13:15:38 -07:00
Aaron Klotz
0876759d20
Bug 998863: Asynchronous Plugin Initialization, Part 3: ipc/glue changes; r=dvander
2014-12-29 16:12:47 -07:00
Phil Ringnalda
0c888c27eb
Backed out 15 changesets (bug 1070755, bug 998863) for e10s bustage
...
CLOSED TREE
Backed out changeset 076d1d47d601 (bug 1070755)
Backed out changeset 43819af59ca5 (bug 998863)
Backed out changeset 5f587697ae63 (bug 998863)
Backed out changeset e2cf239e8572 (bug 998863)
Backed out changeset fe21b6b789ce (bug 998863)
Backed out changeset 404f59f86edc (bug 998863)
Backed out changeset 5dd57abaf2b0 (bug 998863)
Backed out changeset 6c1f006a03bc (bug 998863)
Backed out changeset 9e69875e3667 (bug 998863)
Backed out changeset c6b68f8f72ba (bug 998863)
Backed out changeset 713799a7afe4 (bug 998863)
Backed out changeset 4244d662787c (bug 998863)
Backed out changeset ba058cc7a1b2 (bug 998863)
Backed out changeset dabc69b0b09a (bug 998863)
Backed out changeset 18dad6d2e7cc (bug 998863)
2014-12-24 18:28:45 -08:00
Aaron Klotz
fc2f0c6a2e
Bug 998863: Asynchronous Plugin Initialization, Part 3: ipc/glue changes; r=dvander
2014-12-24 17:56:06 -07:00
Chris Peterson
27902ec6b5
Bug 1114724 - Define PRIuSIZE format specifiers for size_t. r=Waldo
2014-12-21 23:30:06 -08:00
Bill McCloskey
2d185c3202
Bug 1109883
- Allow urgent prio messages to be sent to child (r=dvander)
2014-12-18 17:35:48 -08:00
Bill McCloskey
73c276ef13
Bug 1110938 - Add timeout for CPOWs (default to 0) (r=dvander)
2014-12-18 17:35:44 -08:00
Bill McCloskey
ac2be68f94
Bug 1110938 - Use message sequence number for transaction ID in MessageChannel (r=dvander)
2014-12-18 17:34:25 -08:00
Bobby Holley
455f15535d
Bug 1103324 - Instantiate an AutoNoJSAPI when dispatching IPC messages. r=billm
2014-12-06 09:51:14 -08:00
David Parks
4741aa886c
Bug 1076820 - Redraw on resize performance for content is pretty bad with e10s r=billm
...
Modern OSs adjust process scheduling based on CPU-boundedness and Interface-boundedness. A process performing a lot of UI tasks requires lower-latency than a CPU-bound process. For this reason, at least on Windows (but probably also Linux and Mac), in e10s, resize events are sent at a much higher rate than non-e10s, where the main process has to do the work to respond to them. This was supposed to be handled by the 'compress' option in IPDL but its duplicate-event test was very imprecise - it only tested the *oldest* message in the queue. This patch searches the messagequeue/deque to remove *any* duplicate. deque::erase is linear but this is a very uncommon case - currently only two compressed IPDL messages exist in the entire code base. Also, these queues are small.
2014-11-07 14:21:08 -08:00
Nathan Froyd
8340380af1
Bug 1092010 - part 3 - don't use IPC::Message::operator=(IPC::Message const&) in MessageChannel.cpp; r=dvander
2014-11-01 07:00:54 -04:00
Nathan Froyd
b4ca2351fe
Bug 1092010 - part 2 - use move semantics in MessageChannel.cpp; r=dvander
2014-10-31 11:21:01 -04:00
Ryan VanderMeulen
199b533463
Backed out changesets a7d4914ea11a and f3d36cf13ac1 (bug 1092010) for non-unified bustage.
2014-11-01 00:10:08 -04:00
Nathan Froyd
da125a46bd
Bug 1092010 - part 2 - use move semantics in MessageChannel.cpp; r=dvander
2014-10-31 11:21:01 -04:00
Bill McCloskey
2035b00c59
Bug 1062713 - Handle normal priority messages while sending sync messages more efficiently (r=dvander)
2014-10-30 13:06:24 -07:00
Andrew McCreight
78d06724f8
Bug 1089833 - Delete reply in MessageChannel::DispatchSyncMessage and DispatchInterruptMessage if channel isn't connected. r=billm
2014-10-28 13:53:15 -07:00
Bill McCloskey
2ab547d3ab
Bug 1049879 - Remove urgent and rpc message types and replace with message priorities (r=dvander,bent,ehsan)
2014-10-07 21:32:45 -07:00
Carsten "Tomcat" Book
4985d0ee76
Backed out changeset e56bf4ea89fb (bug 1049879) for bustage in emulator debug builds on a CLOSED TREE
2014-10-08 08:03:57 +02:00