Andrea Marchesini
4aba8e6370
Bug 1489077 - Report to console when cookie permission is granted for trackers, r=ehsan
2018-09-09 20:03:09 +02:00
Ehsan Akhgari
22ab98633f
Bug 1488785 - Part 1: Don't save persistent storage access permissions for private browsing contexts; r=baku
...
Differential Revision: https://phabricator.services.mozilla.com/D5046
2018-09-05 13:52:10 -04:00
Andrea Marchesini
20fd0bbfa7
Bug 1488712: Wrong assertion in AntiTrackingCommon::MaybeIsFirstPartyStorageAccessGrantedFor, r=ehsan
2018-09-05 18:59:36 +02:00
Ehsan Akhgari
9bf68ef428
Bug 1488784 - Part 2: Remove the XPCOM component registration for nsCookiePermission; r=jdm
...
Differential Revision: https://phabricator.services.mozilla.com/D5038
2018-09-05 11:56:17 -04:00
Andrea Marchesini
e623b333f0
Bug 1487600 - Report to console any content blocking, r=ehsan
2018-09-04 18:50:16 +02:00
Gurzau Raul
a196226bf3
Backed out changeset 77566fd9183f (bug 1487600) for assertion failures on AntiTrackingCommon.cpp:200 on a CLOSED TREE
2018-09-04 21:39:34 +03:00
Andrea Marchesini
07a83df374
Bug 1487600 - Report to console any content blocking, r=ehsan
2018-09-04 18:50:16 +02:00
Andrea Marchesini
7ac8ce2d25
Bug 1487390 - Notify when a channel is aborted because of fastblocking, r=ehsan
2018-08-31 11:02:33 +02:00
Andrea Marchesini
f22c625493
Bug 1487331 - STATE_BLOCKED_TRACKING_COOKIES must tell why cookies are blocked, r=ehsan
...
Introduce these new blocking state values:
const unsigned long STATE_COOKIES_BLOCKED_BY_PERMISSION = 0x10000000;
const unsigned long STATE_COOKIES_BLOCKED_TRACKER = 0x20000000;
const unsigned long STATE_COOKIES_BLOCKED_ALL = 0x40000000;
const unsigned long STATE_COOKIES_BLOCKED_FOREIGN = 0x80000000;
2018-08-31 11:02:33 +02:00
Andrea Marchesini
73bc794651
Bug 1487093 - Propagate cookie blocking notification to child nsIChannel, r=ehsan, r=valentin
2018-08-30 17:44:39 +02:00
Andrea Marchesini
bcc9ba8ba6
Bug 1487093 - Implement AntiTrackingCommon::NotifyRejection, r=ehsan
2018-08-30 17:44:38 +02:00
Andrea Marchesini
ff12334416
Bug 1487093 - Call AntiTrackingCommon::NotifyRejection when cookies are rejected because of cookie policies, r=ehsan
2018-08-30 17:44:38 +02:00
Ehsan Akhgari
3ef7184f88
Bug 1486944 - Part 1: Make the reject foreign cookie behavior also depend on the browser.contentblocking.enabled pref; r=baku
2018-08-29 14:30:32 -04:00
Ehsan Akhgari
98fb638575
Bug 1486926 - Part 5: Pass the URI being checked to IsThirdPartyChannel() in IsFirstPartyStorageAccessGrantedFor(); r=baku
...
Otherwise, this function will fail when the THIRD_PARTY_FORCE_ALLOW flag has
been set on the channel.
2018-08-29 14:26:22 -04:00
Ehsan Akhgari
4901bf5ff6
Bug 1486926 - Part 4: Check the return value of IsThirdPartyChannel() in IsFirstPartyStorageAccessGrantedFor(); r=baku
2018-08-29 14:26:22 -04:00
Ehsan Akhgari
f869de0a0b
Bug 1486926 - Part 1: Make the Disable Protection button in the control centre UI work for the reject foreign cookie behavior; r=baku
2018-08-29 14:26:22 -04:00
Tiberius Oros
99248d7be2
Backed out 5 changesets (bug 1486944, bug 1486926)for multiple failures on a CLOSED TREE
...
Backed out changeset b536e2deff08 (bug 1486944)
Backed out changeset 5fc45a7e2b35 (bug 1486944)
Backed out changeset fef913dda33d (bug 1486926)
Backed out changeset f6533c40954f (bug 1486926)
Backed out changeset 20f625526901 (bug 1486926)
2018-08-29 16:50:15 +03:00
Ehsan Akhgari
f61f7467ba
Bug 1486944 - Part 1: Make the reject foreign cookie behavior also depend on the browser.contentblocking.enabled pref; r=baku
2018-08-29 08:28:14 -04:00
Ehsan Akhgari
f672146f98
Bug 1486926 - Part 1: Make the Disable Protection button in the control centre UI work for the reject foreign cookie behavior; r=baku
2018-08-29 08:27:15 -04:00
Ehsan Akhgari
4259861149
Bug 1486185 - Part 1: Make the Disable Protection button in the control centre UI work for the reject tracker cookie behavior; r=baku
2018-08-28 08:29:32 -04:00
arthur.iakab
3b1733c97b
Backed out 2 changesets (bug 1486185)for build bustages on Logging.h CLOSED TREE
...
Backed out changeset fc7618dd27c9 (bug 1486185)
Backed out changeset 83388bace8ff (bug 1486185)
2018-08-27 17:25:31 +03:00
Ehsan Akhgari
882649bb9e
Bug 1486185 - Part 1: Make the Disable Protection button in the control centre UI work for the reject tracker cookie behavior; r=baku
2018-08-27 10:05:05 -04:00
Ehsan Akhgari
398c2ae4c8
Bug 1486092 - Part 2: Make the reject tracker cookie behavior also depend on the browser.contentblocking.enabled pref; r=baku
...
The semantics implemented are as follows: the feature requires this new
pref to also be set to true, otherwise cookies from trackers will be
accepted.
2018-08-27 09:22:01 -04:00
Ehsan Akhgari
8e16655fef
Bug 1485005 - Part 2: Get the cookie behavior from the top-level principal on the channel code path for IsFirstPartyStorageAccessGrantedFor(); r=baku
...
This isn't related to this bug report, but while reading this code,
I noticed that we are using the wrong principal object here too.
2018-08-24 13:15:46 -04:00
Ehsan Akhgari
a24b1a3c44
Bug 1485005 - Part 1: Fall back to the top-level principal when computing the parent principal on the channel code path for IsFirstPartyStorageAccessGrantedFor(); r=baku
...
This is the fix for the bug. In this case, the top-level principal is
picked from the loading principal of the load info object, and it is
different from the triggering principal.
Since we already fall back to the triggering principal while computing
the top-level principal, there is no need to do that explicitly here.
In fact we need all of the same rules as previously implemented above
in the same function, so we may as well use the toplevelPrincipal
variable.
I couldn't think of a good way to write a test case for this, sadly.
2018-08-24 13:15:46 -04:00
Ehsan Akhgari
b77390d439
Bug 1484876 - Part 6: Truncate the tracking URIs in the anti-tracking logs to 128 characters since they may be really long; r=francois
2018-08-22 12:02:45 -04:00
Ehsan Akhgari
62ac88d880
Bug 1484876 - Part 3: Refactor the code responsible for checking whether the top window URI is on the content blocking allow list into AntiTrackingCommon; r=francois
2018-08-22 12:02:43 -04:00
Cosmin Sabou
d951062b76
Backed out 6 changesets (bug 1484876) for eslint failure on PrivateBrowsingUtils. CLOSED TREE
...
Backed out changeset e80737d6af55 (bug 1484876)
Backed out changeset b1cb63d8c8bb (bug 1484876)
Backed out changeset cd2ced689895 (bug 1484876)
Backed out changeset d31e39a47704 (bug 1484876)
Backed out changeset babf6abc7f4c (bug 1484876)
Backed out changeset 1c9895ab06c6 (bug 1484876)
2018-08-22 16:26:33 +03:00
Ehsan Akhgari
1301e222dc
Bug 1484876 - Part 6: Truncate the tracking URIs in the anti-tracking logs to 128 characters since they may be really long; r=francois
2018-08-22 09:08:22 -04:00
Ehsan Akhgari
f373106b06
Bug 1484876 - Part 3: Refactor the code responsible for checking whether the top window URI is on the content blocking allow list into AntiTrackingCommon; r=francois
2018-08-22 09:08:10 -04:00
Ehsan Akhgari
f87eaa9437
Bug 1485099 - Add some logging to the AntiTracking component for the saving and reading of storage access permissions; r=smaug
2018-08-21 16:23:37 -04:00
Andrea Marchesini
30d7732d9c
Bug 1480780 - Merge the privacy.3rdpartystorage.enabled pref with the network.cookie.cookieBehavior pref; r=ehsan
...
This patch introduces a new cookie behavior policy called
BEHAVIOR_REJECT_TRACKER. It also makes it possible to override that
behavior with cookie permissions similar to other cookie behaviors.
2018-08-13 16:01:16 -04:00
Andrea Marchesini
e01da52a2c
Bug 1480131 - AntiTrackingCommon::IsFirstPartyStorageAccessGrantFor() should not grant permission to sub-sub-iframe channels; r=ehsan
2018-08-10 14:59:33 -04:00
Ehsan Akhgari
ceb59c5f64
Bug 1476796 - Enable AntiTrackingCommon::AddFirstPartyStorageAccessGrantedFor() to notify consumers about completion of asynchronous results; r=baku
...
Right now consumers can't know when the parent process has finished talking
to the permission manager. It would be nice to enable consumers to depend
on the status of the asynchronous task using a promise.
2018-07-19 17:04:56 -04:00
Coroiu Cristina
ca183bc7ce
Backed out changeset bc6d7dc3f10f (bug 1476796) for build bustage on a CLOSED TREE
2018-07-19 23:51:35 +03:00
Ehsan Akhgari
3008233a4a
Bug 1476796 - Enable AntiTrackingCommon::AddFirstPartyStorageAccessGrantedFor() to notify consumers about completion of asynchronous results; r=baku
...
Right now consumers can't know when the parent process has finished talking
to the permission manager. It would be nice to enable consumers to depend
on the status of the asynchronous task using a promise.
2018-07-19 16:20:20 -04:00
Andrea Marchesini
f0f86ef31f
Bug 1476324 - Storage activation via window.open(URL) applies across top-level domains - part 1 - window.open() from top-level, r=ehsan
2018-07-18 15:44:55 +02:00
Ehsan Akhgari
dd33951b8c
Bug 1476126 - Switch privacy.restrict3rdpartystorage.expiration to be stored in seconds; r=baku
2018-07-17 22:31:10 +03:00
Andrea Marchesini
46a52fa5d2
Bug 1475236 - Expiration time for the anti-tracking permission should be controllable via pref, r=ehsan
2018-07-13 19:19:26 +02:00
Andrea Marchesini
f01cd22e66
Bug 1475189 - Block storage access in tracking sub-resources when not in iframes - part 3 - image cache, r=ehsan
2018-07-13 12:02:19 +02:00
Andrea Marchesini
739a7a02ec
Bug 1475189 - Block storage access in tracking sub-resources when not in iframes - part 2 - subresources, r=ehsan
2018-07-13 12:02:19 +02:00
Andrea Marchesini
92d23f8621
Bug 1474812 - No needs to store granted storage access in nsILoadInfo and in the inner window, r=ehsan
2018-07-13 12:02:19 +02:00