Michael Layzell
759039eee0
Bug 1320179 - Part 1: Move nsresult value calculation into a python script, r=froydnj
...
This patch makes the error codes in nsError.h be generated by a python script.
This gives us the opportunity to add rust code generation in parallel with the
C++ code generation, which will happen in part 2.
This patch also reworks the name calculation in ErrorNames.cpp to use generated
code by the python script.
MozReview-Commit-ID: 5wxbdZwxe7q
2017-04-06 18:36:22 -04:00
Wes Kocher
3edcd86647
Backed out 4 changesets (bug 1320179) for causing merge conflicts a=backout
...
Backed out changeset b8aa677f7452 (bug 1320179)
Backed out changeset 9e2f77570128 (bug 1320179)
Backed out changeset 470d8143b350 (bug 1320179)
Backed out changeset ea4f1b3cc7b1 (bug 1320179)
2017-04-06 15:29:24 -07:00
Michael Layzell
dde6ff63cd
Bug 1320179 - Part 1: Move nsresult value calculation into a python script, r=froydnj
...
This patch makes the error codes in nsError.h be generated by a python script.
This gives us the opportunity to add rust code generation in parallel with the
C++ code generation, which will happen in part 2.
This patch also reworks the name calculation in ErrorNames.cpp to use generated
code by the python script.
MozReview-Commit-ID: 5wxbdZwxe7q
2017-04-06 17:22:00 -04:00
Boris Zbarsky
f672e3514c
Bug 1339540 part 1. Introduce an ErrorResult-specific nsresult module. r=smaug
2017-02-15 00:01:57 -05:00
DimiL
3cb66c6aee
Bug 1311910 - Add telemetry to measure update error and update timeout rate for V2 and V4. r=francois,henry
...
MozReview-Commit-ID: JL4aZrUOGH7
2016-12-19 09:43:02 +08:00
Kaku Kuo
b191636c92
Bug 1291997 - add media related dom exceptions; r=bz
...
MozReview-Commit-ID: Def98wbKxGI
2016-08-04 11:46:45 +08:00
Chris Peterson
c35faf4632
Bug 1277775 - Replace MOZ_CONSTEXPR{_VAR,_TMPL} with constexpr. r=froydnj
2016-07-08 14:39:53 -07:00
Kyle Huey
5ec2e680df
Bug 1259294: Part 1 - Add MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:14 -07:00
Trevor Saunders
a01f5597cd
bug 1252104 - make NS_ERROR_GET_CODE() and NS_ERROR_GET_MODULE() constexpr r=froydnj
2016-02-29 14:49:45 -05:00
Kit Cambridge
3019e8045b
Bug 1206302 - Use DOMException for Push errors. r=mt
2015-11-05 10:38:35 -08:00
Cameron McCormack
f5fbfc3734
Bug 1208951 - Part 9: Implement KeyframeEffectReadOnly constructor. r=bzbarsky r=birtles
2015-10-22 19:22:38 +11:00
Masatoshi Kimura
35c704892d
Bug 1128273 - Stop using |typedef enum class tag_nsresult { ... } nsresult;| trick. r=froydnj
2015-02-02 23:44:25 +09:00
Masatoshi Kimura
ff44a7420c
Bug 1126269 - Part 3: Always use the C++11 enum class for nsresult. r=froydnj
2015-01-30 08:53:47 +09:00
Masatoshi Kimura
90898b1eb4
Bug 1111290 - Part 3: Remove TypedEnum.h and fold TypedEnumInternal.h into TypedEnumBits.h. r=waldo
2015-01-26 07:22:11 +09:00
Masatoshi Kimura
9f53c25023
Bug 895582 - Get rid of MOZ_ENUM_TYPE. r=waldo
2015-01-21 22:35:19 +09:00
Vlatko Markovic
317d8a8562
Bug 1059216 - Verification of Trusted Hosted Apps manifest signature, part 1. r=dkeeler,rlb
2014-09-22 07:58:59 -07:00
Jamin Liu
fa53a88b42
Bug 1032755 - Add NS_ERROR_MODULE_DOM_BLUETOOTH to nsError list and allow it to be used to create dom exception. r=smaug, f=dhylands, btian
2014-08-25 14:51:20 +08:00
Birunthan Mohanathas
e44da12c54
Bug 995730 - Fix style violations in xpcom/base/. r=froydnj,continuation
2014-05-13 20:41:38 +03:00
Birunthan Mohanathas
34a78370e0
Bug 995730 - Change xpcom/base/ to use 2 space indentation
...
This also removes trailing whitespace in reindented files.
2014-05-05 20:30:39 +03:00
Yuan Xulei
22b80430dc
Bug 910412 - Implement |getRoot|, |createDirectory| and |get| for Directory. r=dhylands, r=smaug
2014-03-05 11:25:40 +08:00
Ryan VanderMeulen
f3e7f70e31
Backed out 5 changesets (bug 910412) for intermittent crash whack-a-mole.
...
Backed out changeset e3eb9463b3e1 (bug 910412)
Backed out changeset d5863d302bde (bug 910412)
Backed out changeset 422b66d4b1ca (bug 910412)
Backed out changeset 3431d59d752e (bug 910412)
Backed out changeset b1c0310cdac1 (bug 910412)
2014-03-11 12:17:03 -04:00
Yuan Xulei
d688dc7974
Bug 910412 - Implement |getRoot|, |createDirectory| and |get| for Directory. r=dhylands, r=smaug
2014-03-05 11:25:40 +08:00
Aryeh Gregor
e195b479cc
Bug 916568 - Remove xpcom/base/nsErrorAsserts.cpp; r=ehsan
2013-09-17 14:05:12 +03:00
Ehsan Akhgari
6d396d8bcb
Bug 872127 - Part 2: Replace mozilla/StandardInteger.h with stdint.h; r=Waldo,ted
2013-07-30 10:25:31 -04:00
Jeff Walden
5246af0732
Bug 836438 - Always implement nsresult using an unsigned 32-bit integer type. r=ehsan
2013-01-30 15:32:44 -08:00
Jeff Walden
648903e0b1
Bug 835648 - Move typed enum support to a new header. r=Ms2ger
2013-01-28 16:33:17 -08:00
Ehsan Akhgari
6be78c8f6a
Bug 830765 - Remove the unneeded code which tracks the list of loaded modules because it is unused and can cause multi-second hangs; r=sicking a=removes-code-from-libxul
2013-01-21 15:55:31 -05:00
Masatoshi Kimura
afc5dc3a9b
Bug 795433 - Use #define for nsresult values in C code. r=ehsan,glandium; feedback=njn
2013-01-05 12:55:22 +09:00
Brian Smith
614eb199ab
Bug 772365, Part 1: Implement JARSignatureVerification, r=honzab, parts r=ehsan
...
* * *
Bug 772365, Part 2.1: Generate test cases for signed app signature verification
* * *
Bug 772365, Part 2.2: Test JAR signature verification
2012-11-14 15:31:39 -08:00
Jacek Szpot
09f9b9a1c3
Bug 792180 - Replace NS_{UN,}LIKELY with MOZ_{UN,}LIKELY; r=ehsan
2012-10-26 15:32:10 +02:00
Mats Palmgren
0b334193f6
Bug 802473 - Make NS_FAILED return 0 or 1 (false/true typed as bool for C++). Use branch prediction macros for NS_FAILED/NS_SUCCEEDED. r=ehsan,bsmedberg
2012-10-18 02:43:06 +02:00
Jacek Caban
540d86d089
Bug 801589 - Avoid redefining ERROR in ErrorList.h when wingdi.h is also included r=ehsan
2012-10-16 11:01:58 +02:00
Aryeh Gregor
04a00eb896
Bug 779473 - Make nsresult an enum class; r=ehsan
2012-08-02 11:55:58 +03:00
Ehsan Akhgari
905d4a92de
Bug 795238 follow-up - #include Attributes.h which defines MOZ_HAVE_CXX11_ENUM_TYPE
2012-10-09 09:39:32 -04:00
Ehsan Akhgari
e86c30c005
Bug 795238 - Make nsresult a uint32_t enum everywhere that C++11 typed enums are supported; r=Aryeh
2012-10-09 09:23:52 -04:00
Daniel Holbert
bba0160ec8
Bug 793580 followup: Fix added comment to be C-style instead of C++-style, to fix build warning for .c files that include nsError.h. rs=Ms2ger (DONTBUILD because comment-only)
2012-09-28 12:34:54 -07:00
Masatoshi Kimura
3494a55571
Bug 764234 - Implement StringEncoding API. r=dougt,smontagu
2012-09-28 11:19:18 +01:00
Makoto Kato
e5c7a592d9
Bug 793580 - Part 2: give the nsresult enum an explicit type on Win64; r=ehsan
2012-09-27 14:37:59 +09:00
Aryeh Gregor
f10becd123
Bug 777292 - Make nsresult an enum; r=ehsan,cjones,bsmedberg
2012-08-07 11:27:45 +03: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
d00190ad35
Bug 768865 - Make NS_SUCCEEDED/NS_FAILED always inline functions for C++; r=bsmedberg
2012-06-27 17:54:01 +03:00
Aryeh Gregor
691ef24b2a
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Jan Varga
141d5b92c8
Bug 726593 - Implement FileHandle. r=bent
2012-06-03 18:33:52 +02:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Ms2ger
b550e24288
Bug 744347 - Remove last traces of EventException; r=smaug
2012-04-14 14:57:07 +02:00
Ms2ger
54f1f6b78d
Backing out bf0a78471e5e:dc7022e2d807 for inexplicable windows crashes.
2012-04-14 17:52:34 +02:00
Ms2ger
2ecda7fc06
Bug 744347 - Remove last traces of EventException; r=smaug
2012-04-14 14:57:07 +02:00
Daniel Holbert
c900e25604
Bug 711047, followup to part 2: use C-style comment in nsError.h, to fix build warnings for its inclusion in .c files. rs=sicking
2012-03-16 15:16:40 -07:00
Ekanan Ketunuti
eb3bd5ea7a
Bug 722180 - Remove error codes for proxies. r=khuey
2012-02-01 18:53:29 +07:00
Aryeh Gregor
7d05f10c9e
Bug 711047 Part 2 - Remove RangeException in favor of DOMException. r=sicking
2012-03-01 13:35:48 -05:00