Mark Hammond
52f4cb206c
Bug 902790 - prevent browser crash if child process fails to start. r=jlebar
2013-08-09 16:23:24 +10:00
Nicholas Nethercote
d8f824e34e
Bug 898914 (part 1) - Remove JSBool.
...
--HG--
extra : rebase_source : 2d202e0e5005a7f54724b1540481c15cde3ad52e
2013-08-08 15:53:04 -07:00
Nicholas Nethercote
8ce53f9ffd
Bug 902332 - Replace JS_{FALSE,TRUE} with {false,true} almost everywhere. r=luke,bz.
...
--HG--
extra : rebase_source : 25f4de1bfae830b0af6407d260a70b787ab1dc9b
2013-08-06 23:59:54 -07:00
Ed Morley
e4bcd96d08
Merge mozilla-central and inbound
2013-08-07 16:19:03 -07:00
Terrence Cole
3438cc1b1a
Bug 902236 - Fix an exact rooting hazard in ~XPCShellEnvironment; r=jonco
2013-08-07 16:14:20 -07:00
Terrence Cole
24a5b6b39c
Bug 902231 - Fix two exact rooting hazards in XPCShellEnvironment; r=jonco
2013-08-07 16:13:34 -07:00
Ryan VanderMeulen
b6361891bd
Merge m-c to fx-team.
2013-08-07 14:46:19 -04:00
Jim Mathies
927cdb51b4
Bug 888236 - Add metro specific window classes and messages to ipc defer message processing. r=bsmedberg
2013-08-07 09:55:12 -05:00
Ms2ger
025498f403
No bug - Remove dead assignment from ipc/nfc/Makefile.in.
2013-08-02 09:09:22 +02:00
Ms2ger
ee0442e9f6
Bug 899261 - Use @DEPTH@ more; r=bsmedberg
2013-08-02 09:04:38 +02:00
Nicholas Nethercote
9624be5713
Bug 901750 - Change return type of |JSNative| from |JSBool| to |bool|. code=nnethercote,jandem. r=luke,bz.
...
--HG--
extra : rebase_source : 5b3d7cc339af6d93bde078322e25c6e740d1b617
2013-08-02 00:41:57 -07:00
Gregory Szorc
1340edfe51
Bug 899792 - Establish precompile tier and move IPDL and WebIDL build rules; r=glandium
...
A new build tier is introduced: precompile. The intention is to replace
the export subtier with something better and nonrecursive. IPDL and
WebIDL code generation have been moved into this new tier and are
performed concurrently. This appears to reduce build times due to fewer
"single threaded" build actions.
The subtier tracking UI has been updated to reflect operations that can
occur in parallel. As subtiers are started, they turn yellow. They can
then complete in any order.
Nonrecursive targets have been added to preserve the IPDL and WebIDL
build targets such that developers can type |make| from leaf directories
like they have always done.
2013-07-30 17:00:24 -07:00
Ehsan Akhgari
2824b29025
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
...
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
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 "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04:00
Ehsan Akhgari
ef4b479714
Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted
2013-07-30 10:25:31 -04:00
Nicolas Silva
8592c4c12d
Bug 858914 - New texture classes + OGL backend (preffed off). r=bas, nrc
2013-07-30 11:59:51 +02:00
Bobby Holley
98a0425f0f
Bug 899245 - Rename JS_GetGlobalForScopeChain to JS::CurrentGlobalOrNull. r=luke
...
This was done with perl/grep.
2013-07-29 16:45:27 -07:00
Nathan Froyd
dbc0a775d9
Bug 897539 - uninline ProtocolErrorBreakpoint to avoid code and string bloat; r=bent
2013-07-24 12:38:24 -04:00
Jon Coppeard
20fb51afdd
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Carsten "Tomcat" Book
ce93df92db
Backed out changeset ae8d72538dee (bug 897484) for b2g bustage
2013-07-26 12:34:25 +02:00
Jon Coppeard
9709d43d76
Bug 897484 - GC: Convert JS_GetProperty APIs to take MutableHandleValue r=terrence r=bholley r=smaug
2013-07-26 10:00:38 +01:00
Joshua Cranmer
b82a7849fb
Bug 884061 - Part 4: Remove nsAtomicRefcnt.h, r=jlebar
...
--HG--
extra : rebase_source : ce24ab345baa48104328e3c101b7266a31e81870
2013-07-11 15:21:45 -05:00
Joshua Cranmer
fd7dc9022e
Bug 884061 - Part 3m: Use NS_DECL_THREADSAFE_ISUPPORTS in ipc/, r=bent
...
--HG--
extra : rebase_source : 77f707d086624cc908a4e39935aa2a03f16543fb
2013-07-18 21:23:32 -05:00
Ed Morley
3bcb2143f6
Merge latest green inbound changeset and mozilla-central
2013-07-23 13:56:12 +01:00
Thomas Zimmermann
171a691f3a
Bug 891866: Use AtomicRefCounted for RawDBusConnection, r=Ms2ger
...
RawDBusConnection incorrectly uses detail::RefCounted, which it
shouldn't. This patch converts it to use AtomicRefCounted instead.
--HG--
extra : rebase_source : 229bbbae3b43a47b362ab73dba5d1134a5ae1dac
2013-07-23 11:00:20 +02:00
Ryan VanderMeulen
d5cffd69d5
Merge m-c to inbound on a CLOSED TREE.
2013-07-22 15:23:47 -04:00
Thomas Zimmermann
7b3b182145
Bug 891866: Support nsRefPtr<RawDBusConnection>, r=qdot
...
Instances of RawDBusConnection can now be contained in nsRefPtr. This
allows to share the DBus connection among multiple threads.
--HG--
extra : rebase_source : fb24472b3b55e77abc7354f17ef679661f62b7fb
2013-07-22 13:30:22 +02:00
Chris Lord
10605e0e62
Bug 886298 - Convert Layers fixed position margins to typed units. r=kats
2013-07-22 09:50:13 +01:00
Nathan Froyd
9f3c9da996
Bug 629668 - make ipdl.py check timestamps to determine whether parsing/codegen is necessary; r=bent
2013-07-22 14:28:53 -04:00
Ryan VanderMeulen
76ce8020e7
Merge m-c to inbound on a CLOSED TREE.
2013-07-18 14:53:05 -04:00
Justin Lebar
eacb45e46d
Bug 893242 - Part 1: Add Unsound_IsClosed() and Unsound_NumQueuedMessages() to AsyncChannel. r=bent
2013-07-17 14:31:10 -07:00
Bobby Holley
10141c7476
Bug 889714 - Remove ContextCallback junk. r=mrbkap
...
There's no reason we should be doing this.
2013-07-16 20:38:46 -07:00
Bobby Holley
cce73473fa
Bug 889714 - Use the SafeJSContext in XPCShellEnvironment. r=mrbkap
2013-07-16 20:38:46 -07:00
Bobby Holley
e00ad1e17a
Bug 889714 - Use SystemErrorReporter instead of ScriptErrorReporter. r=mrbkap
...
SystemErrorReporter is the new unified error reporter for everything non-dom.
In particular, it's used by the SafeJSContext, which we'll be switching to
here shortly.
2013-07-16 20:38:46 -07:00
Bobby Holley
9bc9976c78
Bug 889714 - Stop manually holding onto system JSPrincipals. r=mrbkap
2013-07-16 20:38:46 -07:00
Bobby Holley
5b7d51783b
Bug 889714 - Stash the XPCShellEnvironment instance on the global, rather than the cx. r=mrbkap
...
We need to stash it somewhere, because the shell-provided JSNatives need to
access it. This solution only works for script running in the scope of the
global we create. Butthat's fine here, because we only use it for load() and
quit(), which only exist in the scope of that global.
2013-07-16 20:38:45 -07:00
Bobby Holley
83d40fbac1
Bug 889714 - Reduce the number of places where we pull |env| off cx. r=mrbkap
2013-07-16 20:38:45 -07:00
Bobby Holley
848172cd58
Bug 889714 - Remove unused ExitCode machinery. r=mrbkap
...
This stuff is cribbed from xpcshell, where it makes sense. But it doens't really
make sense in the IPC context, and doesn't appear to be used either.
2013-07-16 20:38:45 -07:00
Bobby Holley
4e2f2699cb
Bug 889714 - Removed unused ShouldReportWarnings and ShouldCompoleOnly [sic] machinery. r=mrbkap
...
lol @ 'ShouldCompoleOnly'.
2013-07-16 20:38:45 -07:00
Ryan VanderMeulen
e168631670
Backed out 10 changesets (bug 889911, bug 889714) due to merge conflicts on a CLOSED TREE.
...
Backed out changeset 1a1a536121da (bug 889714)
Backed out changeset 2cd88ef9eea5 (bug 889714)
Backed out changeset 489723887eca (bug 889714)
Backed out changeset 2b38ce22cf97 (bug 889714)
Backed out changeset 87b0a59a5d51 (bug 889714)
Backed out changeset 13229bab2ba4 (bug 889714)
Backed out changeset 234bd6d1fbed (bug 889714)
Backed out changeset 4f5f62284917 (bug 889714)
Backed out changeset 18537c4436c7 (bug 889911)
Backed out changeset ca7060ab1588 (bug 889911)
2013-07-16 21:16:31 -04:00
Bobby Holley
7de9f3a1b5
Bug 889714 - Remove ContextCallback junk. r=mrbkap
...
There's no reason we should be doing this.
2013-07-16 18:04:51 -07:00
Bobby Holley
6301d9bc80
Bug 889714 - Use the SafeJSContext in XPCShellEnvironment. r=mrbkap
2013-07-16 18:04:50 -07:00
Bobby Holley
3221a3c2d6
Bug 889714 - Use SystemErrorReporter instead of ScriptErrorReporter. r=mrbkap
...
SystemErrorReporter is the new unified error reporter for everything non-dom.
In particular, it's used by the SafeJSContext, which we'll be switching to
here shortly.
2013-07-16 18:04:50 -07:00
Bobby Holley
e09e671849
Bug 889714 - Stop manually holding onto system JSPrincipals. r=mrbkap
2013-07-16 18:04:50 -07:00
Bobby Holley
86985c5de0
Bug 889714 - Stash the XPCShellEnvironment instance on the global, rather than the cx. r=mrbkap
...
We need to stash it somewhere, because the shell-provided JSNatives need to
access it. This solution only works for script running in the scope of the
global we create. Butthat's fine here, because we only use it for load() and
quit(), which only exist in the scope of that global.
2013-07-16 18:04:50 -07:00
Bobby Holley
67a185a843
Bug 889714 - Reduce the number of places where we pull |env| off cx. r=mrbkap
2013-07-16 18:04:49 -07:00
Bobby Holley
ea14aa6016
Bug 889714 - Remove unused ExitCode machinery. r=mrbkap
...
This stuff is cribbed from xpcshell, where it makes sense. But it doens't really
make sense in the IPC context, and doesn't appear to be used either.
2013-07-16 18:04:49 -07:00
Bobby Holley
33c7a75dda
Bug 889714 - Removed unused ShouldReportWarnings and ShouldCompoleOnly [sic] machinery. r=mrbkap
...
lol @ 'ShouldCompoleOnly'.
2013-07-16 18:04:49 -07:00
Mike Shal
1c7eb2843f
Bug 889787 - Define XP_LINUX globally; r=ted
2013-07-16 17:10:10 -04:00
Bobby Holley
055a4a328f
Bug 887334 - Miscellaneous JSAutoCompartments. r=luke
2013-07-17 11:53:53 -07:00
David Anderson
16668a7bf4
Don't deadlock on a child process for a CPOW (bug 905896, r=cjones).
2013-08-26 21:56:57 -07:00
Brian O'Keefe
f4815f2203
Bug 883502 - Part 1: Move 'chromium_config.mk' includes after rules.mk. r=gps
2013-07-04 08:28:43 -04:00
Trevor Saunders
f33ade0d68
bug 887483 - remove a bunch of useless assignments to FORCE_STATIC_LIB implied by LIBXUL_LIBRARY=1 r=mshal
2013-07-11 11:06:34 -04:00
Masatoshi Kimura
78388690cb
Bug 888870 - Add Windows 8.1 support to WinUtils::GetWindowsVersion. r=jimm
2013-07-12 06:26:55 +09:00
Ed Morley
6bc7d7f150
Merge mozilla-central and birch
2013-07-11 10:59:04 +01:00
Thomas Zimmermann
84597f8427
Bug 891276: Removed unused function dbus_returns_uint32, r=echou
...
AddServiceRecords was the only user of this function. This patch
cleans it up.
2013-07-11 09:58:53 +02:00
Ryan VanderMeulen
d806e1e244
Merge m-c to inbound.
2013-07-10 09:45:16 -04:00
Ryan VanderMeulen
e396d026b5
Merge birch to m-c.
2013-07-10 09:42:28 -04:00
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