Andrea Marchesini
1141f6e316
Bug 1171603 - Better size check in nsTSubstring::ReplacePrep. r=ehsan
2015-07-06 14:27:35 -04:00
Hamzata Diallo
3f804c88be
Bug 1178513 - Export libxul symbols needed by ACL. r=mattwoodrow
2015-07-02 15:19:35 -07:00
Ryan VanderMeulen
c94ac8e7d6
Backed out changeset 97c7e83acb6b (bug 1171603) for Windows Werror bustage.
...
CLOSED TREE
2015-07-02 15:33:10 -04:00
Andrea Marchesini
b24596b172
Bug 1171603 - Better size check in nsTSubstring::ReplacePrep. r=ehsan
2015-07-02 14:51:42 -04:00
Eric Rahm
ddc8ac650b
Bug 1165518 - Part 2: Replace prlog.h with Logging.h. rs=froydnj
2015-05-19 11:15:34 -07:00
Neil Rashbrook
3ac6e8ce7a
Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan
2015-05-16 09:07:10 +01:00
Wes Kocher
aae9c961fe
Backed out changeset 17cfad44e12b (bug 1155963) for breaking b2g builds
2015-05-14 16:35:18 -07:00
Neil Rashbrook
8d294091b1
Bug 1155963 Only allow NS_LITERAL_CSTRING to be used on compile-time literals r=froydnj,ehsan
2015-05-15 00:00:33 +01:00
Mike Hommey
4d93988786
Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
...
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
David Major
de0cdb20c0
Bug 1157835: Remove the MSVC_ENABLE_PGO flag from the build system. r=glandium
2015-04-27 19:59:27 -04:00
Nathan Froyd
955b71f629
Bug 1156407 - part 1 - use static_assert instead of PR_STATIC_ASSERT; r=mccr8
...
We have better, C++-ier ways of doing compile-time assertions now. Fold in the
nsTSubstring.cpp change in passing, since mccr8 suggested it in his review.
2015-04-20 13:56:46 -04:00
Jim Blandy
2bb4503427
Bug 1145051: Use MOZ_WARN_UNUSED_RESULT instead of NS_WARN_UNUSED_RESULT. r=glandium
2015-03-19 00:46:40 -07:00
Randall Barker
2ee4f9a372
Bug 1093934 - Create a XPCOM library that can be used to support standalone WebRTC. r=nfroyd
2015-04-03 15:52:00 +02:00
Wes Kocher
b4465e0af8
Backed out changeset 0f5799df920b (bug 1093934) for various test failures CLOSED TREE
2015-04-02 13:42:34 -07:00
Randall Barker
762a6748a9
Bug 1093934 - Create a XPCOM library that can be used to support standalone WebRTC r=froydnj
2015-04-02 12:12:37 -07:00
Mike Hommey
338d086ead
Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd
2015-04-01 13:51:45 +09:00
Ehsan Akhgari
ea41d8de48
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-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 MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
William Chen
1847cddd95
Bug 1131348 - Use fallible Append in content serializers. r=smaug,nfroyd
2015-03-17 01:55:22 -07:00
Andrew McCreight
98c88bc1bd
Bug 1139050, part 2 - Move nsAlgorithm.h to xpcom/base. r=froydnj
2015-03-10 16:41:38 -07:00
Andrew McCreight
887df57f0a
Bug 1139050 - Add moz.build BUG_COMPONENT metadata for xpcom/. r=froydnj
2015-03-10 16:41:38 -07:00
Tom Tromey
dce08473a3
Bug 1135081 - Fix typo in nsTString::AssertValidDepedentString. r=froydnj
2015-02-20 08:02:00 -05:00
Nicholas Nethercote
0247de46d8
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
2015-02-09 14:34:50 -08:00
Andrew McCreight
e048a7df33
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
40ab0270d5
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
2015-02-04 20:05:36 -08:00
Mike Hommey
715db83e04
Bug 1126593 - Add a global fallible instance, so that using fallible works directly, everywhere. r=njn
2015-02-02 09:56:13 +09:00
Trevor Saunders
a0c27273f6
bug 1122100 - more MOZ_OVERRIDE in xpcomish stuff r=froydnj
2015-01-19 17:41:12 -05:00
Ehsan Akhgari
0f02dbc8c0
Bug 1097452 - Use fallible allocation when setting the value of an <input> or <textarea> element; r=jst,froydnj
...
This patch handles most of the call sites for these allocations except
for a few where I added TODO comments with some information. Handling
those places may require reworking lots of code, so I prefer to not do
that here.
2015-01-14 17:31:41 -05:00
Ehsan Akhgari
a7f747ec15
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
Ehsan Akhgari
0dcceb0b64
Bug 1113005 - Copy only the necessary number of bytes from the source buffer; r=froydnj
2014-12-20 10:25:02 -05:00
Ehsan Akhgari
60b3090c10
Bug 1101337 - Make the ReplaceSubstring() XPCOM string API linear; r=froydnj
...
ReplaceSubstring() is an O(n*m) algorithm (n being the length of the
string and m being the number of occurrences of aTarget) because we have
to move the remainder of the string, search it again and potentially
memmove most of it again as we find more matches. This patch rewrites
that function to make it O(n+m).
Note that we currently don't build TestStrings.cpp, so the test case in
this patch is not run automatically, but the test case has been verified
to pass separately by moving the test function into Gecko and calling it
during startup and stepping through it in the debugger.
2014-12-12 18:57:09 -05:00
Wes Kocher
dabb117549
Backed out changeset 95377313608b (bug 1101337) for linux debug build bustage
2014-12-12 16:34:43 -08:00
Ehsan Akhgari
f859fa7e98
Bug 1101337 - Make the ReplaceSubstring() XPCOM string API linear; r=froydnj
...
ReplaceSubstring() is an O(n*m) algorithm (n being the length of the
string and m being the number of occurrences of aTarget) because we have
to move the remainder of the string, search it again and potentially
memmove most of it again as we find more matches. This patch rewrites
that function to make it O(n+m).
Note that we currently don't build TestStrings.cpp, so the test case in
this patch is not run automatically, but the test case has been verified
to pass separately by moving the test function into Gecko and calling it
during startup and stepping through it in the debugger.
2014-12-12 18:57:09 -05:00
Ehsan Akhgari
92e38be3c8
Backed out 2 changesets (bug 1101337) because of ASAN bustage landed on a CLOSED TREE
...
Backed out changeset ffef93ec94aa (bug 1101337)
Backed out changeset 2954a37bc2df (bug 1101337)
2014-12-12 13:04:44 -05:00
Ehsan Akhgari
d11a3a5d3b
Bug 1101337 follow-up: Move the Segment class to nsTString_CharT in order to satisfy older gcc's used on b2g, landed on a CLOSED TREE to fix build bustage
2014-12-12 12:43:04 -05:00
Ehsan Akhgari
a90dd4dace
Bug 1101337 - Make the ReplaceSubstring() XPCOM string API linear; r=froydnj
...
ReplaceSubstring() is an O(n*m) algorithm (n being the length of the
string and m being the number of occurrences of aTarget) because we have
to move the remainder of the string, search it again and potentially
memmove most of it again as we find more matches. This patch rewrites
that function to make it O(n+m).
Note that we currently don't build TestStrings.cpp, so the test case in
this patch is not run automatically, but the test case has been verified
to pass separately by moving the test function into Gecko and calling it
during startup and stepping through it in the debugger.
2014-12-12 11:47:55 -05:00
Chris Peterson
83fa2577db
Bug 1107814 - Part 1: Mark more directories as FAIL_ON_WARNINGS for all compilers. r=gps
2014-12-04 16:24:03 -08:00
David Major
1cffc1fff8
No bug - add a comment to clarify the code. DONTBUILD
2014-11-13 08:57:09 +13:00
David Major
d85f8b5439
Bug 1097283: Fix count/byte mismatches in NS_ABORT_OOM calls. r=froydnj
2014-11-12 21:13:44 +13:00
David Major
4954e07571
Backed out changeset 8a4595cc5ec4 for Linux build failure on a CLOESD TREE
...
just kidding it's a CLOSED TREE
2014-11-12 17:19:15 +13:00
David Major
3da2a00813
Bug 1097283: Fix count/byte mismatches in NS_ABORT_OOM calls. r=froydnj
2014-11-12 15:42:53 +13:00
David Major
48c6b690f0
Bug 1096155: Report the correct OOM size when the caller doesn't specify a length. r=froydnj
2014-11-11 10:31:13 +13:00
Nicholas Nethercote
7ffeb89e6c
Bug 1067699 (part 1) - Export double-conversion.h normally from MFBT. r=froydnj.
2014-09-16 23:33:05 -07:00
Jeff Walden
db928c6d22
Bug 1065774 - Be more precise in PromiseFlatString docs about why assigning PromiseFlatString(...) to a reference is safe. r=froydnj
2014-09-11 13:25:56 -07:00
Birunthan Mohanathas
b89e87846b
Bug 1045801 - Rename SafeCast to AssertedCast. r=Waldo
2014-08-25 12:17:32 -07:00
Birunthan Mohanathas
da27cbd66f
Bug 1046841 - Fix more style violations in previously touched .h files in xpcom/. r=froydnj
2014-08-25 12:17:24 -07:00
Birunthan Mohanathas
6e9ec233ed
Bug 1046841 - Fix more style violations in previously touched .cpp files in xpcom/. r=froydnj
2014-08-25 12:17:15 -07:00
Ben Kelly
4ef8190c22
Bug 1025183 P2 Document how UTF16CharEnumerator treats buffer position on error. r=bz
2014-08-01 16:23:48 -04:00
Ben Kelly
1138f72ca4
Revert bug 1025183 (revs 69373df15281, dd6d84edf08e, 728a5d18bcd9, 71babe0bc84b, c60f9054acf6) for bustage. r=me
2014-08-01 14:10:40 -04:00
Ben Kelly
8f0b4cef90
Bug 1025183 P2 Document how UTF16CharEnumerator treats buffer position on error. r=bz
2014-08-01 13:56:59 -04:00
Mike Hommey
ea36b79845
Bug 1041860 - Avoid setting FINAL_LIBRARY to libraries that further use a FINAL_LIBRARY. r=mshal
2014-07-23 08:37:51 +09:00