QUrl effective TLDs: update table
There are more than 1000 new entries since the table has been generated the last time. The autotest needs to be tweaked because the rules for the .mz domains have changed; use the .ck domain instead. Change-Id: Ife692afd46ac41a66604e966e5e8cb57c7aa649c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>bb10
parent
294c870bed
commit
557abfc327
File diff suppressed because it is too large
Load Diff
|
|
@ -9,8 +9,8 @@ Those arrays in qurltlds_p.h are derived from the Public
|
|||
Suffix List ([2]), which was originally provided by
|
||||
Jo Hermans <jo.hermans@gmail.com>.
|
||||
|
||||
The file qurltlds_p.h was last generated Wednesday,
|
||||
February 11th 14:36 2015.
|
||||
The file qurltlds_p.h was last generated Thursday,
|
||||
October 20th 8:40 2016.
|
||||
|
||||
----
|
||||
[1] list: http://mxr.mozilla.org/mozilla-central/source/netwerk/dns/effective_tld_names.dat?raw=1
|
||||
|
|
|
|||
|
|
@ -192,16 +192,16 @@ void tst_QNetworkCookieJar::setCookiesFromUrl_data()
|
|||
result += cookie;
|
||||
QTest::newRow("effective-tld1-accepted") << preset << cookie << "http://something.co.uk" << result << true;
|
||||
|
||||
// 2. anything .mz is an effective TLD ('*.mz'), but 'teledata.mz' is an exception
|
||||
// 2. anything .ck is an effective TLD ('*.ck'), but 'www.ck' is an exception
|
||||
result.clear();
|
||||
preset.clear();
|
||||
cookie.setDomain(".farmacia.mz");
|
||||
QTest::newRow("effective-tld2-denied") << preset << cookie << "http://farmacia.mz" << result << false;
|
||||
QTest::newRow("effective-tld2-denied2") << preset << cookie << "http://www.farmacia.mz" << result << false;
|
||||
QTest::newRow("effective-tld2-denied3") << preset << cookie << "http://www.anything.farmacia.mz" << result << false;
|
||||
cookie.setDomain(".teledata.mz");
|
||||
cookie.setDomain(".foo.ck");
|
||||
QTest::newRow("effective-tld2-denied") << preset << cookie << "http://foo.ck" << result << false;
|
||||
QTest::newRow("effective-tld2-denied2") << preset << cookie << "http://www.foo.ck" << result << false;
|
||||
QTest::newRow("effective-tld2-denied3") << preset << cookie << "http://www.anything.foo.ck" << result << false;
|
||||
cookie.setDomain(".www.ck");
|
||||
result += cookie;
|
||||
QTest::newRow("effective-tld2-accepted") << preset << cookie << "http://www.teledata.mz" << result << true;
|
||||
QTest::newRow("effective-tld2-accepted") << preset << cookie << "http://www.www.ck" << result << true;
|
||||
|
||||
result.clear();
|
||||
preset.clear();
|
||||
|
|
|
|||
Loading…
Reference in New Issue