Milan Sreckovic
165feb045f
Bug 1358225: Validate characters with a cached lookup array. About 10-15% improvement on TestStandardURL.Perf gtest. r=valentin.gosu
...
MozReview-Commit-ID: KMABJ3X6IZ1
2017-05-15 11:53:40 -04:00
Milan Sreckovic
944bf0d6b9
Bug 1304605: Part 2. Optimizing NormalizeIPv4. Seems to be 4-6x faster. r=valentin.gosu
...
MozReview-Commit-ID: FjkNmbW5I93
2017-04-26 12:02:58 -04:00
Milan Sreckovic
da61522450
Bug 1304605: Part 1. Unit tests, including performance, for NormalizeIPv4. r=valentin.gosu
...
MozReview-Commit-ID: KAecFlYTUfW
2017-04-26 11:56:16 -04:00
dOn'tReallycAre
f20686dbe9
Bug 1357155 - Convert PRCList usage in nsStandardURL to LinkedList. r=erahm
2017-04-21 01:46:12 +09:00
Valentin Gosu
20b6a7013f
Bug 1326175 - Stop preserving empty passwords in URLs r=mcmanus
...
MozReview-Commit-ID: 7wdZSJmpErF
2017-03-27 23:56:28 +02:00
Valentin Gosu
029e26bc91
Bug 1342438 - Remove url .hash encoding/decoding prefs r=bagder
...
These prefs have been added close to two years ago:
dom.url.encode_decode_hash and dom.url.getters_decode_hash
The main reason for their existence was in case we encounter any web-compat issues. At this point the extra code is mostly useless, and flipping the pref may lead to crashes.
MozReview-Commit-ID: LhAHkYmv0TR
2017-03-08 22:19:34 +01:00
Valentin Gosu
d658c247ea
Bug 1324243 - Normalize IPv6 r=manishearth
...
MozReview-Commit-ID: 1UFIdeWrz1E
2017-03-09 00:55:05 +01:00
Carsten "Tomcat" Book
ef29ab69a8
Backed out changeset 189b914221f4 (bug 1324243) for wpt-11 bustage
2017-03-06 14:13:03 +01:00
Valentin Gosu
754adfd0d5
Bug 1324243 - Normalize IPv6 r=manishearth
...
MozReview-Commit-ID: Kxe9eLqvKp6
2017-03-01 00:01:15 +01:00
Eric Rahm
56140bb9f9
Bug 1332202 - Followup to fix comment to say infallible. DONTBUILD r=me
...
MozReview-Commit-ID: ByRWrv7nGnM
2017-02-16 11:52:54 -08:00
Junior Hsu
ae3461bdbe
Bug 1338154 - not normalize ipv4 for resource and chrome uri. r=valentin
2017-02-13 03:10:00 +08:00
Valentin Gosu
7dfe84b0f2
Bug 1337629 - Restrict allowed hostname characters r=mcmanus
...
MozReview-Commit-ID: H8u2C5oSiT9
2017-02-09 01:55:49 +01:00
Valentin Gosu
7b83c9315d
Bug 1275746 - Don't allow empty host name for URLTYPE_AUTHORITY URLs r=mcmanus
...
* Return NS_ERROR_MALFORMED_URI if mURLType is URLTYPE_AUTHORITY and the hostname is empty.
* Make sure nsStandardURL::SetFile calls init with the correct arguments
MozReview-Commit-ID: 7t3mZtAbMF3
2016-07-07 15:06:08 +03:00
Valentin Gosu
07e364244c
Bug 1320925 - Backout changeset b80531102366 (bug 1254098) a=backout
...
MozReview-Commit-ID: 1tX0Keg66Dc
2017-02-07 21:07:30 +01:00
Eric Rahm
6bbd759663
Bug 1332202 - Convert most infallible NS_EscapeURL calls to fallible version. r=froydnj
...
This makes most users of |NS_EscapeURL| use the fallible version. A few are
left infallible as it seems like the entire function is assumed to be
infallible.
MozReview-Commit-ID: Cy1L5jQwjO1
2017-01-24 11:11:44 -08:00
Masatoshi Kimura
92eaf70c38
Bug 1321705 - Remove "network.standard-url.(escape|encode)-utf8". r=valentin.gosu
...
MozReview-Commit-ID: D6fRD9ElrBd
2016-12-30 20:32:29 +09:00
Sebastian Hengst
2db67552f3
Backed out changeset daabf6b822f0 (bug 1321705) for Android bustage. r=backout
2016-12-30 12:39:58 +01:00
Masatoshi Kimura
bc0de3b080
Bug 1323683 - Fold nsIURIWithQuery into nsIURI. r=valentin.gosu
...
MozReview-Commit-ID: BFfgr42sNyx
2016-12-28 20:40:21 +09:00
Masatoshi Kimura
775eb31c94
Bug 1321705 - Remove "network.standard-url.(escape|encode)-utf8". r=valentin.gosu
...
MozReview-Commit-ID: D6fRD9ElrBd
2016-12-30 10:28:18 +09:00
Henri Sivonen
e83e8b3cdf
Bug 1225255 - Encode URL query string segments to bytes with HTML numeric character references for unmappable characters. r=valentin
...
MozReview-Commit-ID: HDJxSSZZYlw
2016-07-15 14:49:22 +03:00
Manish Goregaokar
22ca343bd6
Bug 1324251 - Unconditionally parse windows drive letters in file paths; r=valentin
...
MozReview-Commit-ID: 6nBPHYHNprF
2016-12-18 18:38:01 -08:00
Valentin Gosu
c96760ef2d
Bug 1318432 - Make it possible to switch on rust-url at runtime r=bagder
...
MozReview-Commit-ID: 3BfqFWIpS7F
2016-11-22 01:53:43 +01:00
Valentin Gosu
2b74227270
Bug 1151899 - Add code to run both URL parsers at the same time; r=bagder,ted,valentin
...
MozReview-Commit-ID: Jd2RgPmdPrn
2016-11-08 00:42:36 +01:00
Valentin Gosu
cf10de34d0
Bug 1151899 - Add RustURL which implements nsIURI,nsIURL,nsIStandardURL,etc; r=bagder
...
MozReview-Commit-ID: 2rVu4t66cfD
2016-11-08 00:42:27 +01:00
Sebastian Hengst
0bb80a0248
Backed out changeset f87f327d7ef2 (bug 1151899)
2016-11-17 20:22:34 +01:00
Sebastian Hengst
82746c9b50
Backed out changeset 910b4b74261d (bug 1151899)
2016-11-17 20:21:55 +01:00
Valentin Gosu
deb781f973
Bug 1151899 - Add code to run both URL parsers at the same time; r=bagder,ted,valentin
...
MozReview-Commit-ID: Jd2RgPmdPrn
2016-11-08 00:42:36 +01:00
Valentin Gosu
4821d0dfc3
Bug 1151899 - Add RustURL which implements nsIURI,nsIURL,nsIStandardURL,etc; r=bagder
...
MozReview-Commit-ID: 2rVu4t66cfD
2016-11-08 00:42:27 +01:00
Andrea Marchesini
d722c927a8
Bug 1310483 - Implement nsIURIWithQuery for having query part in simple URI, r=valentin
2016-11-14 13:04:33 +01:00
Gerald Squelart
9a3fb4229e
Bug 1316432 - Fix nsCOMPtr constructions&assignments from 0 - r=froydnj
...
Giving '0' (literal zero) to nsCOMPtr is now ambiguous, as both
nsCOMPtr(decltype(nullptr)) and nsCOMPtr(T*) could be used.
In any case, our coding standards mandate the use of 'nullptr' for pointers.
So I'm changing all zeroes into nullptr's where necessary.
MozReview-Commit-ID: LXiZTu87Ck6
2016-11-10 14:11:27 +11:00
Valentin Gosu
e0de246d6b
Bug 1314859 - SetHost should also call NormalizeIPv4 r=mcmanus
...
MozReview-Commit-ID: 79sQrld6TBG
2016-11-06 23:26:04 +01:00
Manish Goregaokar
2bbb804b70
Bug 1151899 - Include rust-url-capi (leave-open); r=valentin,ted
...
MozReview-Commit-ID: 1ITlPLvwzF4
2016-10-28 16:34:21 -07:00
Valentin Gosu
eaba41adc8
Bug 1305204 - (Part 3) Backout bug 1275746 a=backout
...
MozReview-Commit-ID: B627xyv9BRm
2016-10-23 14:24:49 +02:00
Manish Goregaokar
404a46fa74
Bug 1301621 - Parse URL ports as 16 bit; r=valentin
...
MozReview-Commit-ID: 5FbRUsYzJdy
2016-09-09 15:42:42 +08:00
Carsten "Tomcat" Book
6c6013c457
Backed out changeset fc9963bf6d98 (bug 1301621) for xpcshell bustage
2016-09-14 12:28:50 +02:00
Manish Goregaokar
cc69edf939
Bug 1301621 - Parse URL ports as 16 bit; r=valentin
...
MozReview-Commit-ID: 5FbRUsYzJdy
2016-09-09 15:42:42 +08:00
Junior Hsu
7a7eae6309
Bug 1301344 - Bail out from canonicalizing IPv4 first. r=valentin
2016-09-08 02:59:00 -04:00
Dragana Damjanovic
f504a79cc5
Bug 1295636 - SetHostPort should reset the port if the host parameter does not have a port number. r=valentin, r=smaug
2016-08-17 23:25:00 -04:00
Junior Hsu
3bb8490a85
Bug 1288049 - Canonicalize IPv4 for nsStandardURL, r=valentin
2016-08-09 03:18:00 +02:00
Gijs Kruitbosch
9f4419ee72
Bug 1280584 - implement cloneWithNewRef and thereby make hash/ref links use a simple unified codepath in the IO service, r=valentin
...
MozReview-Commit-ID: 8FIyclkJPDp
2016-07-26 23:38:46 +01:00
Valentin Gosu
6dca1cf69d
Bug 1275746 - Don't allow empty host name for URLTYPE_AUTHORITY URLs r=mcmanus
...
* Return NS_ERROR_MALFORMED_URI if mURLType is URLTYPE_AUTHORITY and the hostname is empty.
* Make sure nsStandardURL::SetFile calls init with the correct arguments
MozReview-Commit-ID: 7t3mZtAbMF3
2016-07-13 15:19:33 +03:00
Ralph Giles
3722053e86
Bug 1275744 - Reference MOZ_LOG in netwerk comments. r=erahm
...
NSPR_LOG_MODULES is deprecated.
Programs in the test directory still use PR_NewLogModule,
so NSPR_LOG_MODULES is accurate for them. Getting these
to link against libxul for LazyLogModule is still to do,
so leave those for now.
MozReview-Commit-ID: 3uMR3YPJyyi
2016-05-25 16:13:54 -07:00
Andi-Bogdan Postelnicu
2dcae5904e
Bug 1276622 - initialize member variable |mDebugCList|. r=valentin
...
MozReview-Commit-ID: FJZz94Gi2dd
2016-05-30 13:51:45 +03:00
Valentin Gosu
f95096cb4b
Bug 1272284 - Encode C0 controls in path, query and hash r=mcmanus
...
MozReview-Commit-ID: 1zGRjVmAWts
2016-05-25 16:23:38 +02:00
Valentin Gosu
7b211d3707
Bug 1271955 - Strip leading and trailing C0 controls and space for urls passed to new URL() r=mcmanus
...
MozReview-Commit-ID: B7BiKE6P7GA
2016-05-25 16:23:37 +02:00
Patrick McManus
e01f1d0309
Bug 1274376 - more mozilla::net namespaces r=dragana
2016-05-18 22:02:57 -04:00
Daniel Holbert
c810333f7a
Bug 1274044: Relax assertion in nsStandardURL for case when mDefaultPort is -1. r=valentin
...
The assertion is trying to require that the caller should never pass in mDefaultPort; instead, the caller should pass -1. BUT, if mDefaultPort is itself -1 (i.e. there's no default port), then we need to allow the caller to pass in -1 without spamming an assertion.
MozReview-Commit-ID: GKxndkJoXcv
2016-05-19 10:05:17 -07:00
Andrea Marchesini
0f456029ea
Bug 1267130 - Improve the URL segment calculation, r=valentin
2016-05-10 10:52:19 +02:00
Stone Shih
fe17c21f2b
Bug 1254098 - Part 1: Don't use base url encoding to encode url when charset override is absent. r=valentin
2016-04-06 11:13:30 +08:00
Kyle Huey
20d0dc7286
Bug 1259294: Part 2 - Use MOZ_ALWAYS_SUCCEEDS. r=froydnj
2016-03-28 10:28:15 -07:00