Commit Graph

660 Commits

Author SHA1 Message Date
Mike Hommey
6dd000340e Bug 1097507 - Make libxul independent of libdmd when DMD is enabled. r=njn
This also effectively changes how DMD is enabled from requiring both
replace-malloc initialization and the DMD environment variable to
requiring only the former. The DMD environment variable can still be
used to specify options, but not to disable entirely.

This however doesn't touch all the parts that do enable DMD by setting
the DMD environment variable to 1, so the code to handle this value
is kept.
2014-11-18 19:21:06 +09:00
Aaron Klotz
f1ae1d08c7 Bug 1090389: Ensure that IOInterposer normalizes to long file names on Windows; r=froydnj 2014-11-12 14:01:45 -07:00
Mike Hommey
21ec48314e Bug 1077148 part 4 - Add and use new moz.build templates for Gecko programs and libraries. r=gps
There are, sadly, many combinations of linkage in use throughout the tree.
The main differentiator, though, is between program/libraries related to
Gecko or not. Kind of. Some need mozglue, some don't. Some need dependent
linkage, some standalone.

Anyways, these new templates remove the need to manually define the
right dependencies against xpcomglue, nspr, mozalloc and mozglue
in most cases.

Places that build programs and were resetting MOZ_GLUE_PROGRAM_LDFLAGS
or that build libraries and were resetting MOZ_GLUE_LDFLAGS can now
just not use those Gecko-specific templates.
2014-10-30 13:06:12 +09:00
Benjamin Bouvier
86ea81a4db Bug 997973: Call typed array and arraybuffer constructors with new in the tree; r=bz 2014-10-24 11:26:20 +02:00
Brian Marshall
a1edbc5656 Bug 1079311 - Unlock mutex before logging error in RegisterContractIDLocked. r=bsmedberg 2014-10-08 16:08:28 -07:00
Tom Schuster
2c3047badc Bug 1069694 - Remove OldDebugAPI from the browser. r=shu 2014-10-12 19:37:41 +02:00
Stephen Pohl
af02c5db64 Bug 1077282: Cleanup uses of GreD vs GreBinD, introcuded by v2 signature changes on OSX. Based on initial patch by rstrong. r=bsmedberg 2014-10-10 15:06:57 -04:00
Andrew Halberstadt
6fe6152e95 Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Bill McCloskey
39e8f2b3da Bug 930243 - Disable process type tests on Android on A CLOSED TREE 2014-10-07 13:35:34 -07:00
Bill McCloskey
c8f8625356 Bug 930243 - Add a processType flag to chrome manifest directives (r=froydnj) 2014-10-07 11:46:24 -07:00
Stephen Pohl
d16e3504d5 Mac v2 signing - Bug 1060562 - Update xpcshell-tests for the new v2 bundle structure on OSX. r=jmaher 2014-09-29 11:51:29 -07:00
Benjamin Smedberg
3ef8a2c338 Bug 1069518 - XPTCall should refuse to implement interfaces with [notxpcom] methods, r=froydnj/bholley 2014-09-22 15:10:31 -04:00
Christoph Kerschbaumer
6e585e66db Bug 1038756: Callsites creating a channel in /xpcom/ (r=bsmedberg) 2014-09-21 09:43:58 -07:00
Kyle Huey
629ac06a2c Bug 982212: Part 2 - Implement r-value reference support for nsTArray::AppendElement. r=nfroyd
--HG--
extra : rebase_source : a9235411266a5dad466746d6344c3fd0e8fafca1
2014-03-15 18:56:00 +01:00
Kyle Huey
1599f83c38 Bug 982212: Part 1 - Implement r-value reference support for nsTArray constructors and operator=. r=nfroyd
--HG--
extra : rebase_source : 6119f0043a4af61beab08cdeb6ea072222cfac8b
2014-03-15 18:55:00 +01:00
Anuj Agarwal
b7a82f2f90 Bug 1034921 - Remove dangerous public destructor of nsFoo in TestThreadUtils.cpp. r=nfroyd 2014-09-04 07:07:00 +02:00
Mike Hommey
c2a27deef9 Bug 1059090 - Don't require SOURCES to be set for CPP_UNIT_TESTS and SIMPLE_PROGRAMS. r=mshal 2014-09-03 14:16:37 +09:00
Mike Hommey
8fd95ad480 Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps 2014-09-03 14:10:54 +09:00
Ehsan Akhgari
6d473e5bb2 Bug 1061061 - Fix more bad implicit constructors in misc. code; r=bsmedberg 2014-09-02 18:24:24 -04:00
Mike Hommey
23b14feb8c Bug 1041941 - Use templates for Gecko XPCOM components. r=gps 2014-08-24 09:11:05 +09:00
Birunthan Mohanathas
8717530293 Bug 1050003 - Remove unnecessary if checks before delete-ing in xpcom/. r=froydnj 2014-08-08 07:04:45 -07:00
Birunthan Mohanathas
1d5af17e20 Bug 1049997 - Separate statements declaring multiple pointers into separate statements. r=froydnj 2014-08-08 07:04:45 -07:00
Nicholas Nethercote
ffea0fdbca Bug 1050009 - Initialize pldhash tables with a length, not a capacity. r=roc.
* * *
imported patch rm-dummy-params

--HG--
extra : rebase_source : c25987eb11bae197218d5fc53b77def19afa36ac
2014-08-06 06:31:21 -07:00
Mike Hommey
cbe32e4bb3 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
Mike Hommey
1cb5547cd1 Bug 1045783 - Move most OS_LIBS to moz.build and do some related cleanup. r=mshal 2014-08-06 07:25:33 +09:00
Ehsan Akhgari
a635ff39b2 Bug 1048280 - Fix more bad implicit constructors in XPCOM; r=froydnj 2014-08-05 09:36:59 -04:00
Eric Rahm
8cce93854c Bug 1027921 - Part 9: Add DeadlockDetector memory reporter. r=njn, r=froydnj 2014-08-04 16:20:37 -07:00
Eric Rahm
487c50c57f Bug 1027921 - Part 7: Extend scalability tests. r=froydnj 2014-08-04 16:16:43 -07:00
Eric Rahm
b723bc8791 Bug 1027921 - Part 6: Increase scalability test load. r=froydnj 2014-08-04 16:16:33 -07:00
Eric Rahm
9feabff7f9 Bug 1027921 - Part 5: Enable DeadlockDetector tests on OS X. r=froydnj 2014-08-04 16:16:20 -07:00
Nicholas Nethercote
91e553b138 Bug 1045920 (part 1) - Rename xpcom/tests/TestRefPtr.cpp as TestNsRefPtr.cpp, to avoid clashing with the soon-to-be-added mfbt/tests/TestRefPtr.cpp. r=froydnj.
--HG--
rename : xpcom/tests/TestRefPtr.cpp => xpcom/tests/TestNsRefPtr.cpp
2014-07-30 06:59:32 -07:00
Mike Hommey
42f57b6138 Bug 1043802 - Remove TOOLS_DIRS and TEST_TOOLS_DIRS. r=gps 2014-07-29 08:55:55 +09:00
Mike Hommey
7ca0de0fb4 Bug 1041936 part 2 - Directly use the static library "xul" to link into "xul-gtest" instead of having an intermediate library "xul" used by "xul-shared" and "xul-gtest". r=gps 2014-07-23 13:33:09 +09:00
Mike Hommey
171507509c Bug 1036894 part 9 - Replace all EXTRA_DSO_LDOPTS, SHARED_LIBRARY_LIBS and LIBS with EXTRA_LIBS, OS_LIBS or OS_LDFLAGS, appropriately. r=gps
OS_LIBS for libraries that are not part of the gecko tree, EXTRA_LIBS for
libraries, such as NSPR, that are in the tree, but are not handled by
moz.build just yet. Those EXTRA_LIBS may also come from a system library.
However, in cases where the expanded variables are always empty for the
in-tree case, OS_LIBS is used (as for, e.g. MOZ_ZLIB_LIBS). OS_LDFLAGS is
used exclusively for non-library linker flags.

Always pass EXTRA_LIBS before OS_LIBS on linker command lines.

Forbid EXTRA_DSO_LDOPTS, SHARED_LIBRARY_LIBS and LIBS in Makefiles.
2014-07-23 13:31:02 +09:00
Mike Hommey
5659a611dd Bug 1036894 part 8 - Move most in-tree library linkage information to moz.build, as USE_LIBS. r=gps 2014-07-23 13:30:52 +09:00
Mike Hommey
af37eab57f Bug 1036894 part 6 - Emit SimplePrograms for CPP_UNIT_TESTs, and make the corresponding moz.build config look like that of SIMPLE_PROGRAMS. r=gps 2014-07-23 13:29:44 +09:00
Mike Hommey
bc97b68005 Bug 1036894 part 1 - Move MAKE_FRAMEWORK, SDK_LIBRARY, SHARED_LIBRARY_NAME and STATIC_LIBRARY_NAME to moz.build. r=gps
At the same time, make the Library data more useful in the build frontend.
2014-07-23 13:29:09 +09:00
Ehsan Akhgari
25093af257 Bug 1040041 - Give FakeInputStream a private destructor; r=bjacob
--HG--
extra : rebase_source : 84714cdecb28b2dbbac6ffc98adfc079c8e87a2f
2014-07-17 16:48:00 -04:00
Ehsan Akhgari
ea38d20a97 Bug 1038213 - Give nsTestComFactory a private destructor; r=bjacob 2014-07-15 14:58:34 -04:00
Ehsan Akhgari
3ed2124a30 Bug 1033887 - Do not build TestSTLWrappers.cpp with clang-cl; r=bsmedberg 2014-07-03 11:56:16 -04:00
Benoit Jacob
edbefa40b5 Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd 2014-06-30 18:11:53 -04:00
Wes Kocher
5414ff6193 Backed out 4 changesets (bug 1028588) for build bustage
Backed out changeset 13a8bae671ca (bug 1028588)
Backed out changeset 19a19833f1d6 (bug 1028588)
Backed out changeset d5fae80054de (bug 1028588)
Backed out changeset 5942ad3859b8 (bug 1028588)
2014-06-30 15:50:19 -07:00
Benoit Jacob
027818fcb7 Bug 1028588 - Fix dangerous public destructors in xpcom/ - r=bsmedberg,khuey,nfroyd 2014-06-30 18:11:53 -04:00
Jim Blandy
b6b202b6bb Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Byron Campen [:bwc]
37caa12137 Bug 1024765 - Part 1: Add test case for timers firing when the target thread is not running. r=bwc 2014-06-17 13:37:04 -07:00
Birunthan Mohanathas
c910458886 Bug 1016240 - Exterminate CR+LF line endings. r=briansmith,cpearce,ehsan,gavin 2014-06-18 17:56:02 -07:00
Carsten "Tomcat" Book
7e9904e113 Backed out changeset 1b81b771aee6 (bug 1017418) 2014-06-02 11:26:12 +02:00
Nicholas Nethercote
4aecb3fdd1 Bug 1017418 (part 2) - Avoid more slop in nsTArray. r=froydnj. 2014-06-01 16:08:50 -07:00
Will Hawkins
ca4e10c2c7 Bug 996310 - nsIBinaryOutputStream should return number of bytes read. r=bsmedberg 2014-05-22 13:56:56 -07:00
Birunthan Mohanathas
fa0eb27120 Bug 869836 - Part 6: Use EqualsLiteral instead of Equals where possible. r=ehsan 2014-05-22 06:48:51 +03:00