Commit Graph

10 Commits

Author SHA1 Message Date
Milan Sreckovic
ff6839a8e1 Bug 1304605: Part 1. Unit tests, including performance, for NormalizeIPv4. r=valentin.gosu
MozReview-Commit-ID: KAecFlYTUfW

--HG--
extra : rebase_source : cddfd6fd05f33d2d2c50caf66669d87dc2f79ce7
2017-04-26 11:56:16 -04:00
Dragana Damjanovic
9a3cfa6017 Bug 1334776 - Store header names into nsHttpHeaderArray. r=mcmanus 2017-04-27 16:48:36 +02:00
Alex Gaynor
9d47375e30 Bug 1074642 - When multiple HSTS headers are received, only consider the first. r=keeler,mcmanus
This implements a plaintext reading of RFC 6797, which says to only consider the
first, however it slightly conflicts with RFC 7230, which says that sending
multiple headers which can't be merged is illegal (except for a specific
whitelist which HSTS isn't in). Chrome also implements HSTS using RFC 6797's
description of the parsing algorithm.

r=mcmanus,keeler

MozReview-Commit-ID: E06uIk2IcEK

--HG--
extra : rebase_source : 4a67f067d2953d4b30c1019a61bbfc7073e55b3d
2017-04-20 10:03:53 -04:00
Valentin Gosu
68caf482f1 Bug 1351301 - Test that '.' is not required to accept subdomains in auth::URIMatchesPrefPattern. r=mayhemer
MozReview-Commit-ID: 4FXBDSo1bVG

--HG--
extra : histedit_source : 7b7f22dbc4dae53e53b68bc07b04dd84052e2bfa
2017-04-07 04:31:22 +03:00
Valentin Gosu
1d52489dd5 Bug 1334443 - Rewrite nsProtocolProxyService::LoadHostFilters to use Tokenizer r=bagder
This eliminates some of the pointer math and makes the method a bit safer.
The function's behaviour remains the same as before.

MozReview-Commit-ID: 94wBk6xvkd6

--HG--
extra : rebase_source : 9fac33114b16d0910e63b474222acf0bc1db500f
2017-03-20 20:21:15 +01:00
Valentin Gosu
179c07ad0e Bug 1334443 - Add gtest for nsProtocolProxyService::{LoadHostFilters,CanUseProxy} and fix IPv6 parsing r=bagder
While writing a gtest I discovered the parsing an IPv6 address didn't work due to the brackets.

MozReview-Commit-ID: 9mmKS72hf7Y

--HG--
extra : rebase_source : 757a19a50a50b2af232f0b44f6faacf7280b554a
2017-03-20 20:20:42 +01:00
Iris Hsiao
f0bad41648 Backed out changeset bb033983fe8d (bug 1301344), this shouldn't be landed, it's for test 2016-09-09 15:33:19 +08:00
Junior Hsu
1b0b85b2fe Bug 1301344 - Add test. r=valentin 2016-09-08 02:36:00 -04:00
Nicholas Nethercote
37301e25ad Bug 1297300 - Add missing checks to GetSpec() calls in netwerk/. r=hurley,dragana.
--HG--
extra : rebase_source : 961a82fb6e723688837e5250f57121c14ca958cb
2016-08-26 16:40:57 +10:00
Valentin Gosu
59fdb38682 Bug 1288301 - Convert TestStandardURL to gtest r=mcmanus
MozReview-Commit-ID: FscilBXGhI2

--HG--
rename : netwerk/test/TestStandardURL.cpp => netwerk/test/gtest/TestStandardURL.cpp
2016-07-25 21:48:05 +02:00