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

1110 Коммитов

Автор SHA1 Сообщение Дата
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
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