[webkit-qt] Third-Party Cookie blocking

Robert Hogan lists at roberthogan.net
Sat Jun 18 03:16:56 PDT 2011


Hi all,

I'm hoping to bug someone into r+'ing my patch for Third-Party Cookie 
blocking support in the next few days. It creates new API, namely:

QWebSettings::ThirdPartyCookiePolicy

This enum describes the policies configurable for accepting and sending
third-party cookies. These are cookies that are set or retrieved when 
fetching a resource that is stored in a different TLD from the page 
containing it.

\value AlwaysAllowThirdPartyCookies Allow third-party resources to set and 
retrieve cookies.
\value AlwaysBlockThirdPartyCookies Never allow third-party resources to 
set and retrieve cookies.
\value AllowThirdPartyWithExistingCookies If the cookie jar already 
contains cookies from a third-party, allow it to set and retrieve new and 
existing cookies.

It uses an addition to the QUrl API QUrl::topLevelDomain() to determine if 
the two hosts are under the same registry-controlled domain name.

If you have any thoughts/comments, please add them to:

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

Thanks,
Robert


More information about the webkit-qt mailing list