gecko-dev/netwerk/protocol/ftp
Francois Marier 309a23afc3 Bug 1482950 - Use the correct 3rdparty check in tracking annotations. r=dimi,Ehsan,mayhemer!,ehsan!
The mIsTrackingResource flag on nsIHttpChannel was split into two separate
flags depending on whether or not the resource is third-party. The correct
flag will be set by the channel classifier. Similarly, a new function was
introduced, GetIsThirdPartyTrackingResource(), for those consumers (like TP)
who only care about third-party trackers.

The existing function, GetIsTracking(), will continue to look at both
first-party and third-party trackers (the behavior since first party
tracking was added to annotations in bug 1476324).

The OverrideTrackingResource() function now allows nsHTMLDocument to
override both mIsFirstPartyTrackingResource and
mIsThirdPartyTrackingResource, but since this function is a little dangerous
and only has a single user, I added an assert to make future callers think
twice about using it to opt out of tracking annotations.

Currently, only the default storage restrictions need to look at first-party
trackers so every other consumer has been moved to
mIsThirdPartyTrackingResource or GetIsThirdPartyTrackingResource().

This effectively reverts the third-party checks added in bug 1476715 and
replaces them with the more complicated check that was added in bug 1108017.
It follows the approach that Ehsan initially suggested in bug 1476715. It
also reverts the changes in the expected values of the tracking annotation
test since these were, in hindsight, a warning about this regression.

Depends on D3722

Differential Revision: https://phabricator.services.mozilla.com/D3723

--HG--
extra : moz-landing-system : lando
2018-08-20 23:53:45 +00:00
..
doc
test/frametest
FTPChannelChild.cpp Bug 1459666 - Ensure that DivertToParent is only called during OnStartRequest r=dragana 2018-06-04 20:05:56 +02:00
FTPChannelChild.h Bug 1459666 - Ensure that DivertToParent is only called during OnStartRequest r=dragana 2018-06-04 20:05:56 +02:00
FTPChannelParent.cpp Bug 1482950 - Use the correct 3rdparty check in tracking annotations. r=dimi,Ehsan,mayhemer!,ehsan! 2018-08-20 23:53:45 +00:00
FTPChannelParent.h Bug 1447191 - Pass loadFlags when creating FTP IPDL channel r=mayhemer 2018-05-21 22:24:25 +02:00
PFTPChannel.ipdl
ftpCore.h
moz.build
nsFTPChannel.cpp Bug 1436311 - Fix a bug in suspending a ftp channel during a divertion from the child to the parent. r=jduell 2018-04-27 11:41:00 -04:00
nsFTPChannel.h Bug 1467102 - Fix the ftp diversion. r=bagder 2018-07-11 10:01:43 -04:00
nsFtpConnectionThread.cpp Bug 1476306 - Moving NullPrincipal/ContentPrincipal/SystemPrincipal under mozilla namespace - part 1 - NullPrincipal, r=ckerschb 2018-07-17 21:37:48 +02:00
nsFtpConnectionThread.h
nsFtpControlConnection.cpp Bug 1453795 - Necko - Initialize member fields in classes/ structures. r=michal 2018-06-14 11:19:07 +03:00
nsFtpControlConnection.h
nsFtpProtocolHandler.cpp Bug 1469769 - Part 6: Replace non-failing NS_NOTREACHED with MOZ_ASSERT_UNREACHABLE. r=froydnj 2018-06-17 22:43:11 -07:00
nsFtpProtocolHandler.h Bug 1374114 - Add a pref to disable ftp. r=valentin 2017-11-26 20:46:31 +00:00
nsIFTPChannel.idl
nsIFTPChannelParentInternal.idl