Go to file
Robert Hogan 093a92fb03 Add QUrl::topLevelDomain() and move TLD table from QtNetwork to QtCore
Move Qt's copy of the Mozilla public suffix list from QtNetwork
to QtCore and use it to expose a new API function QUrl::topLevelDomain().
This function returns the section of the url that is a registrar-controlled
top level domain.

QtCore now exports a couple of functions to the other Qt modules: qTopLevelDomain,
a helper function for QUrl::topLevelDomain(); and qIsEffectiveTLD(), a helper
function for QNetworkCookeieJar.

The motivation for this new API is to allow QtWebKit implement a Third-Party
Cookie blocking policy. For this QtWebKit needs to know the element of the url
that is the registry-controlled TLD. Without this knowledge it would end up
blocking third-party cookies per host rather than per registry-controlled domain.

See also https://bugs.webkit.org/show_bug.cgi?id=45455

Merge-request: 1205
Task-number: QTBUG-13601
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
(cherry picked from commit 154402f56dcf8303a6ce601a52215226af8d31ba)
2011-05-24 12:12:04 +02:00
bin Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging 2011-05-11 18:18:18 +10:00
config.profiles Fixed Qt UDA creation for Symbian 2011-05-10 12:54:47 +02:00
config.tests Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
demos Move private headers into versioned subdirectory 2011-05-02 15:30:08 +02:00
dist Changelog: Qt Designer 4.8 2011-05-05 16:17:50 +02:00
doc/src QT_USE_QSTRINGBUILDER to fix source compatibility 2011-05-18 15:17:17 +02:00
examples Removed examples and demos that are no longer in qtbase. 2011-04-27 12:06:02 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Massively update the hurd-g++ mkspec. 2011-05-10 12:54:56 +02:00
qmake Ensure that recursive QMAKE_EXTRA_TARGETS use the correct makefile 2011-05-13 08:59:43 +10:00
src Add QUrl::topLevelDomain() and move TLD table from QtNetwork to QtCore 2011-05-24 12:12:04 +02:00
tests Add QUrl::topLevelDomain() and move TLD table from QtNetwork to QtCore 2011-05-24 12:12:04 +02:00
tools Fix the build of configure.exe. 2011-05-10 12:54:54 +02:00
util Add QUrl::topLevelDomain() and move TLD table from QtNetwork to QtCore 2011-05-24 12:12:04 +02:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Add QT_xxx_VERSION macros for each library in qtbase 2011-05-10 15:15:15 +02:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-earth-staging 2011-05-16 18:33:46 +10:00
configure.exe new configure.exe binary 2011-05-03 14:49:38 +02:00
header.BSD Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.LGPL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.LGPL-ONLY Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
INSTALL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro tests: enable compilation of autotests for qtbase by default 2011-05-11 11:52:24 +10:00
sync.profile Add QT_xxx_VERSION macros for each library in qtbase 2011-05-10 15:15:15 +02:00