Nicholas Nethercote
b7346a7502
Bug 1390428 (part 1) - Remove many nsXPIDLCString local variables. r=erahm.
...
These are all easy cases where an nsXPIDLCString local variable is set via
getter_Copies() and then is only used in ways that nsCStrings can also be used
(i.e. no null checks or implicit conversions to |char*|).
In every case the patch trivially replaces the nsXPIDLCString with an
nsCString. (Also, there are a couple of unused nsXPIDLCString variables that
the patch simply removes.)
2017-08-16 13:58:35 +10:00
Tristan Bourvon
bb275a9139
Bug 1383002 - Fix UAF in nsMIMEHeaderParamImpl::DecodeRFC5987Param. r=mcmanus
...
MozReview-Commit-ID: 2tk9WwUCpsw
2017-07-21 15:23:38 +02:00
Sylvestre Ledru
9d4a84d778
Bug 1378712 - Remove all trailing whitespaces r=Ehsan
...
MozReview-Commit-ID: Kdz2xtTF9EG
2017-07-06 14:00:35 +02:00
Nicholas Nethercote
fcd4f4fa21
Bug 1376638 - Minimize uses of prmem.h. r=glandium.
...
It's silly to use prmem.h within Firefox code given that in our configuration
its functions are just wrappers for malloc() et al. (Indeed, in some places we
mix PR_Malloc() with free(), or malloc() with PR_Free().)
This patch removes all uses, except for the places where we need to use
PR_Free() to free something allocated by another NSPR function; in those cases
I've added a comment explaining which function did the allocation.
2017-06-30 19:05:41 -07:00
Nicholas Nethercote
4cbdad69e6
Bug 1374580 (part 2) - Remove nsAFlat{,C}String typedefs. r=froydnj.
...
All the instances are converted as follows.
- nsAFlatString --> nsString
- nsAFlatCString --> nsCString
2017-06-20 19:19:05 +10:00
Masatoshi Kimura
1fd69c2f1a
Bug 1369025 - Remove mozilla::dom::EncodingUtils. r=hsivonen
...
MozReview-Commit-ID: 5O5WtxbmATQ
2017-06-17 11:54:40 +09:00
Jan Keromnes
8c70b9b9ed
Bug 1372853 - Use nullptr in /netwerk (clang-tidy: modernize-use-nullptr). r=valentin
2017-06-16 01:35:00 -04:00
Henri Sivonen
7af0452b6b
Bug 1261841 part 2 - Use encoding_rs instead of uconv. r=emk,mystor.
...
MozReview-Commit-ID: 15Y5GTX98bv
2017-06-13 13:23:23 +03:00
Milan Sreckovic
381c32b166
Bug 1358297: Part 3. Create special case for stripping CR and LF on TSubstring, and use it in all the places that it is called. Use ASCIIMask to make it fast. r=froydnj
...
MozReview-Commit-ID: 5ugh3Ma0OtH
2017-05-10 13:12:36 -04:00
Wes Kocher
900a24bea8
Backed out 4 changesets (bug 1358297) for hazard build failures a=backout
...
Backed out changeset 95211a496191 (bug 1358297)
Backed out changeset 3c1b426a5cce (bug 1358297)
Backed out changeset 9201d345a1d5 (bug 1358297)
Backed out changeset c926817dea60 (bug 1358297)
MozReview-Commit-ID: 874DF43K7Dp
2017-05-05 12:45:46 -07:00
Milan Sreckovic
09ead5e859
Bug 1358297: Part 3. Create special case for stripping CR and LF on TSubstring, and use it in all the places that it is called. Use ASCIIMask to make it fast. r=froydnj
...
MozReview-Commit-ID: 3p97cCGfy6i
2017-05-05 13:37:13 -04:00
Andi-Bogdan Postelnicu
9b72d8be64
Bug 1311669 - replace string literals containing escaped characters with raw string literals. r=valentin
...
MozReview-Commit-ID: 2e9j55eNTop
2016-11-01 14:44:09 +02:00
Andi-Bogdan Postelnicu
15794c143e
Bug 1311669 - replace default bodies of special member functions with = default; r=valentin
...
MozReview-Commit-ID: YxHWVHUyDq
2016-11-01 14:44:09 +02:00
Andrew Sutherland
81e2e29447
Bug 345580 - Problem decoding quoted-printable question mark in subject r=biesi
2016-01-28 14:25:46 -05: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
Birunthan Mohanathas
eeb9aaaa94
Bug 900908 - Part 3: Change uses of numbered macros in nsIClassInfoImpl.h/nsISupportsImpl.h to the variadic variants. r=froydnj
2014-04-27 03:06:00 -04:00
Ehsan Akhgari
e4eca05943
Bug 928052 - Remove some prtypes.h inclusions from netwerk/; r=mcmanus
2013-10-18 10:45:29 -04:00
Birunthan Mohanathas
935a9d49ef
Bug 784739 - Switch from NULL to nullptr in netwerk/ (2/2); r=ehsan
2013-09-19 15:29:27 -04:00
Julian Reschke
0828b8d400
Bug 875615: re-enable RFC2047 decoding (disable bug 601933) until we have telemetry r=jduell
2013-06-14 15:52:36 -07:00
Makoto Kato
efb7bf25b2
Bug 800220 - Part 1. Replace PL_strlen with strlen. r=ehsan
2013-05-08 12:40:12 +09:00
Ms2ger
75ed76faf6
Bug 845374 - Part r: Stop including nsTArray.h in nsReadableUtils.h; r=khuey
2013-03-17 08:55:16 +01:00
Zane U. Ji
5216e7ff08
Bug 833028 - Subjects with mixed ASCII and MIME words are incorrectly displayed. r=smontagu
2013-03-07 22:16:52 +08:00
Julian Reschke
c9412a855d
Bug 601933: remove RFC 2047 encoding support for HTTP header field parameters. r=jduell
2013-02-21 05:36:00 -08:00
Zane U. Ji
b4611e4fa5
Bug 493544 - Don't decode the encoded text until it ends. r=smontagu
2012-12-22 17:54:00 +09:00
Masatoshi Kimura
3272d4c1d7
Bug 638379 - Part 2: Fix nsMIMEHeaderParamImpl. r=hsivonen
2012-12-10 09:10:51 -05:00
Jason Duell
bb0f9a5e3b
Bug 777687 - Followup to replace NSPR types with stdint. r=jduell DONTBUILD
2012-12-03 21:38:29 -08:00
Julian Reschke
a53af987ee
Bug 777687: make handling of broken %-escapes in RFC2231/5987 encoding more draconian. r=jduell
2012-11-28 06:48:00 -08:00
Randell Jesup
3b4961b603
Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg
2012-09-01 22:35:17 -04:00
075ceb7645
Bug 783502. r=jduell
2012-08-29 15:37:07 -07:00
Valentin Gosu
c2124622b0
Bug 745296 - Enable FAIL_ON_WARNINGS in more of /netwerk r=jduell
2012-08-25 11:19:00 -07: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
691ef24b2a
Bug 780618 - Move all error codes to nsError.h; r=ehsan
2012-07-27 17:03:27 +03:00
Aryeh Gregor
8b4a23fc4c
Bug 777292 part 2 - Change all nsnull to nullptr
2012-07-30 17:20:58 +03:00
Julian Reschke
49f6361b52
Bug 776399 - Fix IDL compat problem introduced by changes for bug 663057. r=bz
2012-07-24 21:37:32 -04:00
Julian Reschke
09ac2634b5
Bug 732369 - Content-Disposition parser does not require presence of ";" between params. r=jduell
2012-06-07 22:57:00 -07:00
df8fc54933
Bug 730574: handle quoted-string unescaping in RFC 2231 continuation parameters. r=jduell
2012-05-28 16:14:04 -04:00
b7fbbc55a7
Bug 663057 - support RFC2231/5987 encoding for title parameter in HTTP link header fields. r=hsivonen
2012-05-21 06:31:00 -07:00
Gervase Markham
cb6a072c2a
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
31a2210860
Bug 693806: RFC2231/5987 encoding: charset information should be treated as authoritative. r=jduell
2012-04-29 13:40:00 -07:00
Ms2ger
1127c1998c
Bug 605180 - Fix build warnings in netwerk/. r=jduell
2012-04-07 14:25:00 -07:00
dee616aa7b
Bug 384571: RFC 2231 parameters not decoded when appearing in reversed order. r=jduell
2012-03-20 14:08:30 -07:00
Jason Duell
bdf3a06655
Backed out changeset cd5ac132e763
2012-03-15 23:35:51 -07:00
7a9f35b1cb
Bug 384571: RFC 2231 parameters not decoded when appearing in reversed order r=jduell
2012-03-04 14:12:00 -08:00
Makoto Kato
c5573b4bff
Bug 717121 - crash nsMIMEHeaderParamImpl::DoParameterInternal. r=bz
2012-02-03 15:09:40 +09:00
60b4596590
Bug 704989: add workaround for broken Outlook Web APP (OWA) attachment handling (and specifically for it sending broken headers only to Firefox). r=bzbarsky
2011-11-28 07:40:08 -05:00
a3ca513083
Bug 703015 - Revert change for bug 651185 - allow double-quotes for RFC 2231/5987 encoding again; r=bz
2011-11-20 11:13:40 +00:00
Ehsan Akhgari
478ad1a412
Bug 690892 - Replace PR_TRUE/PR_FALSE with true/false on mozilla-central; rs=dbaron
...
Landing on a CLOSED TREE
2011-10-17 10:59:28 -04:00
Julian Reschke
bf2698e0b2
Bug 685192 - In RFC2231/5987 encoding, a missing charset field should be treated as error; r=bz
2011-10-15 21:07:09 +01:00
Julian Reschke
dd070ee3e0
Bug 692574 - RFC2231/5987 decoding should not tolerate missing single quotes. r=bz
2011-10-14 11:29:13 +02:00
0d7423e2ea
Bug 610054 - Clean up MIME header parsing (allow different behavior for HTTP and EMail); r=bz
2011-10-10 15:27:05 +01:00