Michal Novotny
36833d30c0
Bug 1478950 - Fix parsing filename in OS/2 FTP listing, r=valentin
...
The parsing code uses filename without checking its presence. This patch ensures that the filename contains at least one non white space character.
Differential Revision: https://phabricator.services.mozilla.com/D34485
--HG--
extra : moz-landing-system : lando
2019-06-11 19:18:36 +00:00
Boris Zbarsky
9de72a3ac6
Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
...
Differential Revision: https://phabricator.services.mozilla.com/D34196
--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
Andrea Marchesini
aa84d3c812
Bug 1436674 - nsICookieService.idl should use ACString XPIDL type in place of the string type, r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D32662
--HG--
extra : moz-landing-system : lando
2019-05-31 09:36:44 +00:00
Sylvestre Ledru
993c03acb1
Bug 1552795 - Remove all trailing whitespaces in idl files r=Ehsan
...
Differential Revision: https://phabricator.services.mozilla.com/D31769
--HG--
extra : moz-landing-system : lando
2019-05-22 22:37:14 +00:00
Sylvestre Ledru
e226046cb8
Bug 1547143 - Format the tree: Be prescriptive with the pointer style (left) r=Ehsan
...
# ignore-this-changeset
Depends on D28954
Differential Revision: https://phabricator.services.mozilla.com/D28956
--HG--
extra : moz-landing-system : lando
2019-05-01 08:47:10 +00:00
Rob Wu
1af4c55c01
Bug 1544834 - Replace non-test uses of deprecated Array generics r=evilpie,dao
...
- `Array.forEach` becomes for-of loop or `array.forEach`.
- `Array.slice(a)` or `Array.slice(a, 0)` becomes `Array.from(a)`.
- `Array.map` becomes `Array.from`
- `Array` copy + concatenation becomes Array literal + spread syntax.
- All other `Array.X(a, ...)` become `Array.prototype.X.call` or `Array.from(a).X(...)`
Differential Revision: https://phabricator.services.mozilla.com/D27802
--HG--
extra : moz-landing-system : lando
2019-04-17 19:03:17 +00:00
Dorel Luca
0e9ffb4c4f
Merge mozilla-inbound to mozilla-central. a=merge
2019-03-14 18:25:40 +02:00
Christoph Kerschbaumer
459ec2f354
Bug 1533159: Add MOZ_RELEASE_ASSERT to all SetLoadInfo implementations to ensure loadinfo is never null. r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D23302
--HG--
extra : moz-landing-system : lando
2019-03-14 11:38:23 +00:00
Sylvestre Ledru
4aa92e3091
Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
...
# ignore-this-changeset
Differential Revision: https://phabricator.services.mozilla.com/D22514
2019-03-13 10:19:06 +01:00
Ryan Hunt
3c3b5fab3d
Bug 1523969 part 19 - Move method definition inline comments to new line in 'netwerk/'. r=dragana
...
Differential Revision: https://phabricator.services.mozilla.com/D21120
--HG--
extra : rebase_source : e16845aa3669ed7b5bf9da57cdd08636e5b4500c
2019-02-25 16:11:11 -06:00
Cosmin Sabou
00f3836a87
Merge mozilla-inbound to mozilla-central. a=merge
2019-02-28 12:57:50 +02:00
Jonathan Kingston
f6680698bd
Bug 1525319 - Removing context from OnDataAvailable r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20881
--HG--
extra : moz-landing-system : lando
2019-02-27 23:42:27 +00:00
Jonathan Kingston
c4853316e7
Bug 1525319 - Removing context from OnStopRequest r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20770
--HG--
extra : moz-landing-system : lando
2019-02-27 23:41:31 +00:00
Jonathan Kingston
f7e35ae39e
Bug 1525319 - Removing context from OnStartRequest r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20769
--HG--
extra : moz-landing-system : lando
2019-02-27 23:41:04 +00:00
Jeff Walden
a25f0304c2
Bug 1453456
- Remove nsCRT::IsAscii(char16_t) in favor of mozilla::IsAscii. r=froydnj
2019-02-25 12:21:15 -08:00
Dorel Luca
4a4dcd57fa
Backed out 4 changesets (bug 1525319) for Android failures in dom/base/test/test_progress_events_for_gzip_data.html
...
Backed out changeset b73f033efb41 (bug 1525319)
Backed out changeset 1d318d5c6b98 (bug 1525319)
Backed out changeset 6d73418988d4 (bug 1525319)
Backed out changeset 84ca79bd2dc3 (bug 1525319)
2019-02-25 04:06:11 +02:00
Jonathan Kingston
63ab2bd8aa
Bug 1525319 - Removing context from OnDataAvailable r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20881
--HG--
extra : moz-landing-system : lando
2019-02-24 20:27:55 +00:00
Jonathan Kingston
332531fa9c
Bug 1525319 - Removing context from OnStopRequest r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20770
--HG--
extra : moz-landing-system : lando
2019-02-24 20:26:59 +00:00
Jonathan Kingston
2441197975
Bug 1525319 - Removing context from OnStartRequest r=valentin
...
Differential Revision: https://phabricator.services.mozilla.com/D20769
--HG--
extra : moz-landing-system : lando
2019-02-24 20:26:16 +00:00
Jonathan Kingston
3421b8fcff
Bug 1520868 - Replacing AsyncOpen2 with AsyncOpen always r=valentin
...
Replacing js and text occurences of asyncOpen2
Replacing open2 with open
Differential Revision: https://phabricator.services.mozilla.com/D16885
--HG--
rename : layout/style/test/test_asyncopen2.html => layout/style/test/test_asyncopen.html
extra : moz-landing-system : lando
2019-02-12 16:08:25 +00:00
Ehsan Akhgari
e5e885ae31
Bug 1521000 - Part 2: Adjust our clang-format rules to include spaces after the hash for nested preprocessor directives r=sylvestre
...
# ignore-this-changeset
--HG--
extra : amend_source : 7221c8d15a765df71171099468e7c7faa648f37c
extra : histedit_source : a0cce6015636202bff09e35a13f72e03257a7695
2019-01-18 10:16:18 +01:00
Jonathan Kew
db954198b4
Bug 1512647 - Use unicode::ClusterIterator and decode surrogates when scanning text for marked-up words. r=valentin
2018-12-10 14:41:00 +00:00
Fabian Henneke
082be04eec
Bug 1509493 - Fix markup generation for nested email addresses r=BenB
...
In mozTXTToHTMLConv, FindURL is not able to correctly calculate replaceBefore for nested email addresses/URLs such as john@doe.org}john@doe.org. As a workaround, we keep track of the end of the last URL HTML markup in the output string and skip any subsequent URLs whose replaceBefore would cut into this markup.
Depends on D13645
Differential Revision: https://phabricator.services.mozilla.com/D13646
--HG--
extra : moz-landing-system : lando
2018-12-02 16:18:29 +00:00
Fabian Henneke
5574403ce0
Bug 1509493 - Do not include unmatched ')' in email addresses r=BenB
...
Depends on D13644
Differential Revision: https://phabricator.services.mozilla.com/D13645
--HG--
extra : moz-landing-system : lando
2018-12-02 16:20:03 +00:00
Fabian Henneke
0d5da0fca2
Bug 1509493 - Always linkify common URL schemes in plain text r=BenB
...
Differential Revision: https://phabricator.services.mozilla.com/D13511
--HG--
extra : moz-landing-system : lando
2018-12-02 16:20:05 +00:00
Jorg K
3776a84fb4
Bug 1505911 - Follow-up: fix error in part 1. r=valentin
2018-12-02 07:13:50 +01:00
Simon Montagu
38f9527fbd
Bug 1505911 - Use IsAlpha/IsDigit instead of IsAsciiAlpha/IsAsciiDigit for full Unicode support. r=valentin
...
--HG--
extra : rebase_source : bb3c6af51aa6f20b4ab4a3f8d538fd71b8f0b0bc
2013-09-01 12:23:43 +03:00
Valentin Gosu
cc7f59b418
Bug 1505911 - Change interfaces to use AString instead of wstring r=juhsu
...
--HG--
extra : rebase_source : ddca32a4dc8a37445110ce785c87f3d48c4775c3
2018-11-30 18:57:24 +01:00
Tooru Fujisawa
7983faeb5d
Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp
2018-12-01 04:52:05 +09:00
Sylvestre Ledru
265e672179
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Andreea Pavel
50096c9761
Backed out 3 changesets (bug 1509493) for failng win xpcshell at netwerk/test/unit/test_mozTXTToHTMLConv.js on a CLOSED TREE
...
Backed out changeset 05562b7d3eff (bug 1509493)
Backed out changeset 6498765e1d65 (bug 1509493)
Backed out changeset 5e4a5cf81c26 (bug 1509493)
2018-11-29 20:54:22 +02:00
Fabian Henneke
51d3d2f9c6
Bug 1509493 - Fix markup generation for nested email addresses r=BenB
...
In mozTXTToHTMLConv, FindURL is not able to correctly calculate replaceBefore for nested email addresses/URLs such as john@doe.org}john@doe.org. As a workaround, we keep track of the end of the last URL HTML markup in the output string and skip any subsequent URLs whose replaceBefore would cut into this markup.
Differential Revision: https://phabricator.services.mozilla.com/D13391
--HG--
extra : moz-landing-system : lando
2018-11-29 15:49:29 +00:00
Fabian Henneke
a898f276d0
Bug 1509493 - Do not include unmatched ')' in email addresses r=BenB
...
Differential Revision: https://phabricator.services.mozilla.com/D13390
--HG--
extra : moz-landing-system : lando
2018-11-29 14:04:57 +00:00
Ehsan Akhgari
490e611801
Bug 1508472 - Part 5: Fifth batch of comment fix-ups in preparation for the tree reformat r=sylvestre
...
This is a best effort attempt at ensuring that the adverse impact of
reformatting the entire tree over the comments would be minimal. I've used a
combination of strategies including disabling of formatting, some manual
formatting and some changes to formatting to work around some clang-format
limitations.
Differential Revision: https://phabricator.services.mozilla.com/D13371
--HG--
extra : moz-landing-system : lando
2018-11-29 10:30:46 +00:00
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