Граф коммитов

1095 Коммитов

Автор SHA1 Сообщение Дата
Andrew McCreight ea6021b769 Bug 1494127 - Fix trivial calls to do_QueryInterface that return an nsresult r=smaug
Calls to do_QueryInterface to a base class can be replaced by a static
cast, which is faster.

Differential Revision: https://phabricator.services.mozilla.com/D7224

--HG--
extra : moz-landing-system : lando
2018-10-01 21:38:43 +00:00
Henri Sivonen 3a8d018880 Bug 1487398 - Remove useless use of SetCapacity(). r=froydnj,nwgh
Remove various calls to SetCapacity() that fall into various misuse categories:

 1) Mistakenly believing that the caller should advice the string about zero
    terminator.
 2) Cases where a single append does the right computation on its own.
 3) Calling SetCapacity() with a constant when the string is self-allocated
    and could be an nsAuto[C]StringN and the string doesn't get passed on
    in a way that could benefit from a heap-allocated buffer.
 4) Calling SetCapacity() before assigning a shared buffer to the string.
 5) Calling SetCapacity() before calling a function that will either calls
    SetLength() anyway or calls Adopt().

MozReview-Commit-ID: IKjfl5gLmcD

Differential Revision: https://phabricator.services.mozilla.com/D4672

--HG--
extra : moz-landing-system : lando
2018-09-25 15:36:31 +00:00
Valentin Gosu 5a6b723bff Bug 1488061 - Remove Query/Ref from the directory listing URI r=bagder
--HG--
extra : amend_source : 73175dec97cf78837ce7f956a01a94e90babdd90
2018-09-11 14:33:34 +03:00
Randell Jesup 8a5b70c6c2 Bug 1418545: Don't fire OnDataAvailable for 0 bytes r=mayhemer 2018-09-10 08:03:12 -04:00
Ehsan Akhgari aab00dc35b Bug 1489365 - Part 3: Remove the unused @mozilla.org/dirIndexListener;1 contract ID; r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D5230
2018-09-07 14:25:59 -04:00
Ehsan Akhgari babcacdc91 Bug 1489365 - Part 2: Remove the XPCOM component registration for nsDirIndexParser; r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D5229
2018-09-07 14:25:57 -04:00
Ehsan Akhgari 3a9430c8dd Bug 1489365 - Part 1: Remove the XPCOM component registration for nsDirIndex; r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D5228
2018-09-07 14:25:56 -04:00
Nicholas Nethercote ef6bbbc647 Bug 1488628 - Change nsIDirIndex's wstring/string attributes to AString/ACString. r=valentin
--HG--
extra : rebase_source : c1a6ecf98205caf45e8011b2b83c89a39b345d1f
2018-09-05 11:31:28 +10:00
Ehsan Akhgari d7274895ea Bug 1488306 - Remove the XPCOM component registration for nsUnknwonDecoder; r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D4897
2018-09-04 09:43:52 -04:00
Nicholas Nethercote 2fcd08a173 Bug 1486690 - Rename NS_str{,}dup and remove unnecessary checks after calls to them. r=glandium
The 'x' prefix makes it clearer that these are infallible.

A couple of nsJSID methods are now also infallible.

--HG--
extra : rebase_source : fcce44a00212d6d341afbf3827b31bd4f7355ad5
2018-08-28 15:58:54 +10:00
Henri Sivonen cbab098175 Bug 1485343 - Avoid locale-dependent C standard library functions in FTP code. r=valentin
MozReview-Commit-ID: CXcluPKLwIv

Differential Revision: https://phabricator.services.mozilla.com/D4315

--HG--
extra : moz-landing-system : lando
2018-08-27 09:11:30 +00:00
Kershaw Chang 9430627a9f Bug 1478950 - Add a max limit to FTP list line, r=valentin
Summary: As suggested by pdknsk, add 32k limit to list line.

Reviewers: valentin

Tags: #secure-revision

Bug #: 1478950

Differential Revision: https://phabricator.services.mozilla.com/D2995
2018-08-09 20:12:54 +03:00
Andi-Bogdan Postelnicu 90ac230485 Bug 1453795 - Necko - Initialize member fields in classes/ structures. r=michal 2018-06-14 11:19:07 +03:00
Ryan VanderMeulen cb40810a94 Bug 1443164 - Update brotli to version 1.0.4 and update Gecko callers. r=jfkthame, r=mayhemer
--HG--
extra : rebase_source : 1d5f9fe1fac61afdbdc0209aa851ce4f7ab3d230
2018-05-31 12:49:40 -04:00
Chris Peterson 71422dcaa9 Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent

MozReview-Commit-ID: KuUsnVe2h8L

--HG--
extra : source : c14655ab3df2c9b1465dd8102b9d25683359a37b
2018-04-28 12:50:58 -07:00
Andi-Bogdan Postelnicu 3f2298c2f6 Bug 1457411 - Update netwerk module to make use of newer methods introduced with c++11 and c++14. r=valentin
MozReview-Commit-ID: 666LNaHyiuQ

--HG--
extra : rebase_source : f3a24e0342d8dcdf9020dd473bc6b1045cbc533b
2018-04-30 19:46:04 +03:00
Jeff Walden 821db93ccc Bug 1453456 - Replace nsCRT::IsAscii{Alpha,Digit} with mfbt/TextUtils.h versions. r=froydnj
--HG--
extra : rebase_source : b31986c0e6828be79442cfb0cf369eb80c232139
2018-04-12 20:19:30 -07:00
Sebastian Hengst 043061beb5 merge mozilla-central to mozilla-inbound 2018-04-13 16:05:58 +03:00
Sebastian Hengst 0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Marco Castelluccio fd5bc8ec6c Bug 1413854 - Remove nsTXTToHTMLConv as it is no longer used. r=dragana
--HG--
extra : rebase_source : 29f8a6eaf02fa406499ac48fda99bb67df444506
2018-03-31 16:08:37 +02:00
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Nathan Froyd 7bb7ffd8c9 Bug 1453134 - part 1 - add a string input stream constructor that accepts move references; r=baku
This method is more efficient when we know we're not going to need the
string afterwards, and should cut down on intermediate allocations.
2018-04-11 10:06:17 -04:00
Henri Sivonen eb75469c5b Bug 1448755 - Use AssignLiteral and AssignASCII for short zero-terminated strings in networking. r=jduell.
MozReview-Commit-ID: HPzng5p6qkb

--HG--
extra : rebase_source : 20cec6b448c3152dddac5ac93d678745958a993a
2018-03-26 09:02:32 +03:00
vinoth 24cafeec62 Bug 1416045. r=mayhemer CLOSED TREE
Reviewers: mayhemer

Reviewed By: mayhemer

Subscribers: freddyb, dveditz, mayhemer, ckerschb, vinoth

Tags: PHID-PROJ-wkydohdk6pajyfn2llkb

Bug #: 1416045

Differential Revision: https://phabricator.services.mozilla.com/D675

--HG--
extra : rebase_source : 65fb235d787b6955da1433ea2ffd56082cab0b30
extra : amend_source : affac492394597daf9b3294d4aca2f61bc27fc73
2018-03-22 21:02:16 +02:00
Valentin Gosu 55537212a8 Bug 1433958 - Change code that sets nsIURI.password to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: I8igxClMM5L

--HG--
extra : rebase_source : edca02a7b10ab2e9f5f5498a1164890b9aa75985
2018-02-26 20:43:46 +01:00
Valentin Gosu 7bd0336d01 Bug 1433958 - Change code that sets nsIURI.pathQueryRef to use nsIURIMutator r=mayhemer
MozReview-Commit-ID: HVyZ3E1XuLN

--HG--
extra : rebase_source : fd122b3122e0f3eb371d429bd86ad35d09dcfbf6
2018-02-26 20:43:45 +01:00
Jan Henning faa05c4265 Bug 1433715 - Make fallback folder icon content-accessible. r=Gijs
The skin used on Firefox for Android doesn't style directory listing, hence we
fall back to using the default icon from gre/res/html. As of bug 863246, this
location is no longer accessible from content as a resource://, hence the file
needs moving into the special content-accessible directory.

MozReview-Commit-ID: obtefafqul

--HG--
extra : rebase_source : 0227487abb4914a11f5749c493d215a1fec45e46
2018-01-28 23:01:42 +01:00
Chris Peterson 37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Masatoshi Kimura 8b05ff3704 Bug 1427023 - Remove nsCRT::strncmp. r=erahm 2018-01-09 23:49:37 +09:00
Shih-Chiang Chien 7ab942f01b Bug 1390708 - remove nsBinHexDecoder r=mcmanus
MozReview-Commit-ID: 73NU592iRbX

--HG--
extra : rebase_source : 1cac9e05d615eb07f5448758e4307679189dcc22
2017-10-11 11:58:28 +08:00
Dragana Damjanovic dd.mozilla@gmail.com dc9395abcf Bug 1410146 - Fix UnknownDecoder. r=mayhemer 2017-10-24 14:23:00 -04:00
Makoto Kato 7d1d3b65bf Bug 943284 - Use FallbackEncoding instead of nsIPlatformCharset r=emk
MozReview-Commit-ID: 2pDp2RVV9zk
2017-10-19 19:28:00 +09:00
Andrew McCreight 95785a8675 Bug 1402151, part 9 - Implement gtest for FTP directory listing parsing. r=michal
This test turns the existing stand alone test for the FTP directory
listing parser into a gtest.

MozReview-Commit-ID: 7n60TfcTXTJ

--HG--
extra : rebase_source : 79c88708a9bf9bee6c27a82f2c93a95016e063dd
2017-09-25 11:19:33 -07:00
Andrew McCreight c617e8ebd2 Bug 1402151, part 8 - Add an argument to ParseFTPList to return the current time. r=michal
If the year is omitted from a listing, then the parsing code assumes
that the date occurred within the last year. To compute what the year
should be, the code thus needs to know what the current year, month
and day are. This patch parameterizes ParseFTPList over a function
that returns a PRTime. This will allow the gtest to pass in a fixed
time. Firefox itself will continue to use PR_Now to get the current
time.

MozReview-Commit-ID: 8IbVWbUBHYs

--HG--
extra : rebase_source : 41cc70a044bc19cb8556677cd3502bab3d6c95a4
2017-09-25 13:27:09 -07:00
Andrew McCreight 3b62ffa008 Bug 1402151, part 7 - Add a time zone argument to ParseFTPList. r=michal
In a few places, the FTP parser needs to know the time zone and
daylight savings time correction, encapsulated in
PRTimeParamFn. Before this patch, it would use the time zone of the
current machine, which would obviously make automated testing
difficult. This patch allows a caller to pass in a PRTimeParamFn,
which will allow the gtest to use GMT instead of whatever the local
time is.

MozReview-Commit-ID: 81R3Zbndr43

--HG--
extra : rebase_source : 274c3724259bc2f03f6a9b529ec005421c7c3ae2
2017-09-25 11:45:27 -07:00
Andrew McCreight ea0c1d283c Bug 1402151, part 3 - Move parse-ftp unit tests into the gtest directory. r=michal
This will make them easier to access from a gtest.

MozReview-Commit-ID: 3lV4DwTosXT

--HG--
rename : netwerk/streamconv/converters/parse-ftp/3-guess.in => netwerk/test/gtest/parse-ftp/3-guess.in
rename : netwerk/streamconv/converters/parse-ftp/3-guess.out => netwerk/test/gtest/parse-ftp/3-guess.out
rename : netwerk/streamconv/converters/parse-ftp/C-VMold.in => netwerk/test/gtest/parse-ftp/C-VMold.in
rename : netwerk/streamconv/converters/parse-ftp/C-VMold.out => netwerk/test/gtest/parse-ftp/C-VMold.out
rename : netwerk/streamconv/converters/parse-ftp/C-zVM.in => netwerk/test/gtest/parse-ftp/C-zVM.in
rename : netwerk/streamconv/converters/parse-ftp/C-zVM.out => netwerk/test/gtest/parse-ftp/C-zVM.out
rename : netwerk/streamconv/converters/parse-ftp/D-WinNT.in => netwerk/test/gtest/parse-ftp/D-WinNT.in
rename : netwerk/streamconv/converters/parse-ftp/D-WinNT.out => netwerk/test/gtest/parse-ftp/D-WinNT.out
rename : netwerk/streamconv/converters/parse-ftp/E-EPLF.in => netwerk/test/gtest/parse-ftp/E-EPLF.in
rename : netwerk/streamconv/converters/parse-ftp/E-EPLF.out => netwerk/test/gtest/parse-ftp/E-EPLF.out
rename : netwerk/streamconv/converters/parse-ftp/O-guess.in => netwerk/test/gtest/parse-ftp/O-guess.in
rename : netwerk/streamconv/converters/parse-ftp/O-guess.out => netwerk/test/gtest/parse-ftp/O-guess.out
rename : netwerk/streamconv/converters/parse-ftp/R-dls.in => netwerk/test/gtest/parse-ftp/R-dls.in
rename : netwerk/streamconv/converters/parse-ftp/R-dls.out => netwerk/test/gtest/parse-ftp/R-dls.out
rename : netwerk/streamconv/converters/parse-ftp/README => netwerk/test/gtest/parse-ftp/README
rename : netwerk/streamconv/converters/parse-ftp/U-HellSoft.in => netwerk/test/gtest/parse-ftp/U-HellSoft.in
rename : netwerk/streamconv/converters/parse-ftp/U-HellSoft.out => netwerk/test/gtest/parse-ftp/U-HellSoft.out
rename : netwerk/streamconv/converters/parse-ftp/U-NetPresenz.in => netwerk/test/gtest/parse-ftp/U-NetPresenz.in
rename : netwerk/streamconv/converters/parse-ftp/U-NetPresenz.out => netwerk/test/gtest/parse-ftp/U-NetPresenz.out
rename : netwerk/streamconv/converters/parse-ftp/U-NetWare.in => netwerk/test/gtest/parse-ftp/U-NetWare.in
rename : netwerk/streamconv/converters/parse-ftp/U-NetWare.out => netwerk/test/gtest/parse-ftp/U-NetWare.out
rename : netwerk/streamconv/converters/parse-ftp/U-Novonyx.in => netwerk/test/gtest/parse-ftp/U-Novonyx.in
rename : netwerk/streamconv/converters/parse-ftp/U-Novonyx.out => netwerk/test/gtest/parse-ftp/U-Novonyx.out
rename : netwerk/streamconv/converters/parse-ftp/U-Surge.in => netwerk/test/gtest/parse-ftp/U-Surge.in
rename : netwerk/streamconv/converters/parse-ftp/U-Surge.out => netwerk/test/gtest/parse-ftp/U-Surge.out
rename : netwerk/streamconv/converters/parse-ftp/U-WarFTPd.in => netwerk/test/gtest/parse-ftp/U-WarFTPd.in
rename : netwerk/streamconv/converters/parse-ftp/U-WarFTPd.out => netwerk/test/gtest/parse-ftp/U-WarFTPd.out
rename : netwerk/streamconv/converters/parse-ftp/U-WebStar.in => netwerk/test/gtest/parse-ftp/U-WebStar.in
rename : netwerk/streamconv/converters/parse-ftp/U-WebStar.out => netwerk/test/gtest/parse-ftp/U-WebStar.out
rename : netwerk/streamconv/converters/parse-ftp/U-WinNT.in => netwerk/test/gtest/parse-ftp/U-WinNT.in
rename : netwerk/streamconv/converters/parse-ftp/U-WinNT.out => netwerk/test/gtest/parse-ftp/U-WinNT.out
rename : netwerk/streamconv/converters/parse-ftp/U-hethmon.in => netwerk/test/gtest/parse-ftp/U-hethmon.in
rename : netwerk/streamconv/converters/parse-ftp/U-hethmon.out => netwerk/test/gtest/parse-ftp/U-hethmon.out
rename : netwerk/streamconv/converters/parse-ftp/U-murksw.in => netwerk/test/gtest/parse-ftp/U-murksw.in
rename : netwerk/streamconv/converters/parse-ftp/U-murksw.out => netwerk/test/gtest/parse-ftp/U-murksw.out
rename : netwerk/streamconv/converters/parse-ftp/U-ncFTPd.in => netwerk/test/gtest/parse-ftp/U-ncFTPd.in
rename : netwerk/streamconv/converters/parse-ftp/U-ncFTPd.out => netwerk/test/gtest/parse-ftp/U-ncFTPd.out
rename : netwerk/streamconv/converters/parse-ftp/U-no_ug.in => netwerk/test/gtest/parse-ftp/U-no_ug.in
rename : netwerk/streamconv/converters/parse-ftp/U-no_ug.out => netwerk/test/gtest/parse-ftp/U-no_ug.out
rename : netwerk/streamconv/converters/parse-ftp/U-nogid.in => netwerk/test/gtest/parse-ftp/U-nogid.in
rename : netwerk/streamconv/converters/parse-ftp/U-nogid.out => netwerk/test/gtest/parse-ftp/U-nogid.out
rename : netwerk/streamconv/converters/parse-ftp/U-proftpd.in => netwerk/test/gtest/parse-ftp/U-proftpd.in
rename : netwerk/streamconv/converters/parse-ftp/U-proftpd.out => netwerk/test/gtest/parse-ftp/U-proftpd.out
rename : netwerk/streamconv/converters/parse-ftp/U-wu.in => netwerk/test/gtest/parse-ftp/U-wu.in
rename : netwerk/streamconv/converters/parse-ftp/U-wu.out => netwerk/test/gtest/parse-ftp/U-wu.out
rename : netwerk/streamconv/converters/parse-ftp/V-MultiNet.in => netwerk/test/gtest/parse-ftp/V-MultiNet.in
rename : netwerk/streamconv/converters/parse-ftp/V-MultiNet.out => netwerk/test/gtest/parse-ftp/V-MultiNet.out
rename : netwerk/streamconv/converters/parse-ftp/V-VMS-mix.in => netwerk/test/gtest/parse-ftp/V-VMS-mix.in
rename : netwerk/streamconv/converters/parse-ftp/V-VMS-mix.out => netwerk/test/gtest/parse-ftp/V-VMS-mix.out
extra : rebase_source : a9924b40cd6d51750c875fce0f85262f6b86c85d
2017-09-25 10:58:11 -07:00
Andrew McCreight 1560fa65f4 Bug 1402151, part 2 - Clamp the number of blocks for a VMS file. r=michal
strtoul returns an |unsigned long|, and clamps the return value to
ULONG_MAX if the input is out of range. This means that the value
returned for large numbers differs between 32-bit and 64-bit
systems. To make testing easier, this patch clamps the return value to
UINT32_MAX, ensuring that 32-bit and 64-bit builds of Firefox will be
consistent.

Explicitly declaring that the intermediate value numBlocks is a
uint64_t also avoids (well-defined) integer overflow in the case of a
large file.

This patch also changes PRId64 to PRIu64, because the value being
printed is unsigned. However, this should not make a difference in
practice, because, with clamping, the maximum value being printed is
|UINT32_MAX * 512|.

I also cleaned up the comment that was a little garbled and contained
information about both the old and new ways this was handled, and
removed some code that has been ifdef'd out for at least 14 years.

MozReview-Commit-ID: HELmWmtx24O

--HG--
extra : rebase_source : d7a9f5ab09fcb97d5f6319e5fa1fca1a4f72aa52
2017-09-28 09:32:48 -07:00
Andrew McCreight 1cec304d04 Bug 1402151, part 1 - Improve handling of two digit years. r=michal
The tm_year field of PRExplodedTime is an absolute year, not years
since 1900, so fix a few places that try to do the latter.

I also made the conversion of 2 digit years more consistent.

MozReview-Commit-ID: GetS2wmXHhA

--HG--
extra : rebase_source : abdec76586add29b9741db5237bce77d976c8cdc
2017-09-21 16:34:07 -07:00
Andrew McCreight d49d38778b Bug 1371891 - Use CheckedInt to compute guess for the location of -> in FTP parser. r=michal 2017-10-09 13:50:02 -04:00
Nicholas Nethercote d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Shih-Chiang Chien 10b963a865 Bug 1372065 - fix cppcheck linter error in Necko. r=jduell
For netwerk/cache2/CacheFileInputStream.cpp:148 and netwerk/protocol/http/nsHttpHeaderArray.cpp:358,
missing "()" in the if statement.

For netwerk/base/rust-url-capi/test/test.cpp:29, netwerk/streamconv/converters/nsHTTPCompressConv.cpp:297,
and netwerk/streamconv/converters/nsHTTPCompressConv.cpp:300, null pointer will be returned but the
original memory buffer will not be freed if |realloc| fails.  We should remember the original memory
buffer and free it if error is detected.

MozReview-Commit-ID: 2ggXsL73jYV

--HG--
extra : rebase_source : e47e41f2b37f717207bd13990efead22a14db1c0
2017-06-12 11:51:26 +08:00
Nicholas Nethercote dfd3b7e7aa Bug 1400459 (part 2) - Devirtualize nsIAtom. r=heycam.
This patch merges nsAtom into nsIAtom. For the moment, both names can be used
interchangeably due to a typedef. The patch also devirtualizes nsIAtom, by
making it not inherit from nsISupports, removing NS_DECL_NSIATOM, and dropping
the use of NS_IMETHOD_. It also removes nsIAtom's IIDs.

These changes trigger knock-on changes throughout the codebase, changing the
types of lots of things as follows.

- nsCOMPtr<nsIAtom> --> RefPtr<nsIAtom>

- nsCOMArray<nsIAtom> --> nsTArray<RefPtr<nsIAtom>>
  - Count() --> Length()
  - ObjectAt() --> ElementAt()
  - AppendObject() --> AppendElement()
  - RemoveObjectAt() --> RemoveElementAt()

- ns*Hashtable<nsISupportsHashKey, ...> -->
  ns*Hashtable<nsRefPtrHashKey<nsIAtom>, ...>

- nsInterfaceHashtable<T, nsIAtom> --> nsRefPtrHashtable<T, nsIAtom>
  - This requires adding a Get() method to nsRefPtrHashtable that it lacks but
    nsInterfaceHashtable has.

- nsCOMPtr<nsIMutableArray> --> nsTArray<RefPtr<nsIAtom>>
  - nsArrayBase::Create() --> nsTArray()
  - GetLength() --> Length()
  - do_QueryElementAt() --> operator[]

The patch also has some changes to Rust code that manipulates nsIAtom.

MozReview-Commit-ID: DykOl8aEnUJ

--HG--
extra : rebase_source : 254404e318e94b4c93ec8d4081ff0f0fda8aa7d1
2017-09-26 08:33:21 +10:00
Chris Peterson b98afa1d19 Bug 870698 - Part 11: Replace Insert(NS_LITERAL_STRING("")) with InsertLiteral(u""). r=erahm
The NS_LITERAL_STRING macro creates a temporary nsLiteralString to encapsulate the char16_t string literal and its length, but AssignLiteral() can determine the char16_t string literal's length at compile-time without nsLiteralString.

MozReview-Commit-ID: L9UE3gXHG4Q

--HG--
extra : source : 37d74bf745b23542251cc6b021d6aabb5ffadea1
extra : intermediate-source : 0402b4bd34c293b44c76de22418899420c8e405b
2017-09-07 18:08:18 -07:00
Chris Peterson a0c8081df4 Bug 870698 - Part 4: Replace Equals("") with EqualsLiteral(""). r=erahm
MozReview-Commit-ID: G1GhyvD29WK

--HG--
extra : rebase_source : 115842c37a40041bdca7b4e1ff0a5680b02ced15
extra : source : 90bfff9c01d80086cdc17637f310e898fea295ea
2017-09-06 01:13:45 -07:00
Gerald Squelart 7dbe315e25 Bug 1398999 - nsDequeFunctor::operator() doesn't need to return anything - r=froydnj
Its return value is never used, and most implementations return nullptr anyway.

MozReview-Commit-ID: 8rxC053mmE8

--HG--
extra : rebase_source : 61a0b8b1373396182efd27d3c01b96e5e5541364
2017-02-09 14:06:36 +11:00
Nicholas Nethercote f582d96b98 Bug 1390428 (part 9) - Remove nsXPIDLCString. r=erahm.
This is straightforward, with only two notable things.

- `#include "nsXPIDLString.h" is replaced with `#include "nsString.h"`
  throughout, because all nsXPIDLString.h did was include nsString.h. The
  exception is for files which already include nsString.h, in which case the
  patch just removes the nsXPIDLString.h inclusion.

- The patch removes the |xpidl_string| gtest, but improves the |voided| test to
  cover some of its ground, e.g. testing Adopt(nullptr).

--HG--
extra : rebase_source : 452cc4a08046a1adb1a8099a7e85a1917de5add8
2017-08-17 15:29:03 +10:00
Nicholas Nethercote 9160e1cba8 Bug 1390428 (part 6) - Remove nsXPIDLCString class members. r=erahm.
These are all straightforward except for InternalLoadEvent::mTypeHint, which
requires a bit of care to preserve existing behaviour.

--HG--
extra : rebase_source : 9b152122b011cf49b9acccdc98b4693548b8bdd2
2017-08-17 14:17:27 +10:00
Eric Rahm a33f11e0f5 Bug 1391803 - Use nsStringFwd.h for forward declaring string classes. r=froydnj
We should not be declaring forward declarations for nsString classes directly,
instead we should use nsStringFwd.h. This will make changing the underlying
types easier.

--HG--
extra : rebase_source : b2c7554e8632f078167ff2f609392e63a136c299
2017-08-16 16:48:52 -07:00
Sebastian Hengst 75955d0246 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 8fJX1xXgzhD
2017-08-22 11:49:04 +02:00
Nicholas Nethercote 8a72cf2251 Bug 1390428 (part 2, attempt 2) - Remove more nsXPIDLCString local variables. r=erahm.
--HG--
extra : rebase_source : 69d58b0cfb56efc6b03d8e2d7be2ce3c3e6cd843
2017-08-21 20:01:27 +10:00