Commit Graph
102 Commits
Author SHA1 Message Date
Ehsan Akhgari cebe9c2c89 Bug 1509555 - Part 4: Remove nsIWebProgressListener::STATE_BLOCKED_SLOW_TRACKING_CONTENT r=baku
Depends on D12830

Differential Revision: https://phabricator.services.mozilla.com/D12831
2018-11-27 08:56:39 +00:00
Ehsan Akhgari 97654a3b91 Bug 1509691 - Ensure that the antitracking backend uses the channel third-party tracking flag r=baku
This makes a difference for doubly nested trackers that are embedded
under the same top-level tracker, with a third-party origin in the
middle, as the test case in this commit has set up things.

The test case here fails without the code changes.

Differential Revision: https://phabricator.services.mozilla.com/D12855
2018-11-27 08:59:09 +00:00
Ehsan Akhgari f8ff43d290 Bug 1509667 - Remove an extremely verbose warning from GetParentPrincipalAndTrackingOrigin() r=baku
It can be expected for the top-level storage area principal to be
null here, so we shouldn't warn about it.

Differential Revision: https://phabricator.services.mozilla.com/D12835
2018-11-27 08:58:11 +00:00
Ehsan Akhgari f14967e85c Bug 1490811 - Part 1: Add a permission doorhanger for the storage access API r=baku,johannh
Differential Revision: https://phabricator.services.mozilla.com/D12467
2018-11-26 21:23:16 +00:00
Andrea Marchesini 8ece04d2f7 Bug 1509132 - Inform the 3rd party tracker window when the storage permission is granted, r=ehsan
This is needed for the LocalStorage Next-Generation project which sends storage
notifications only to content processes with an existing LocalStorage object.

I cannot write a test for this, because the current localStorage all works fine.
2018-11-23 08:12:02 +01:00
Ehsan Akhgari 4fc8f91381 Bug 1509340 - Don't dispatch STATE_COOKIES_LOADED notifications from the parent process for fastblock r=baku
Differential Revision: https://phabricator.services.mozilla.com/D12679
2018-11-22 16:49:39 +00:00
Ehsan Akhgari 0b6dceed64 Bug 1504728 - Part 1: Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin,johannh
Differential Revision: https://phabricator.services.mozilla.com/D11122
2018-11-20 14:34:49 +00:00
Boris Zbarsky a115e66ba1 Bug 1507540 part 3. Use more notxpcom attributes in netwerk/. r=valentin 2018-11-19 20:17:53 -05:00
Andrea Marchesini f89c8b8b2d Bug 1507769 - User-interaction required before granting storage access for some 3rd party trackers, r=ehsan 2018-11-19 23:56:04 +01:00
Andrea Marchesini 1ac32d5392 Bug 1505571 - Store access-storage permissions in the top-level window too, r=ehsan
This is needed for any storage access request, coming synchronously after the
setting of the permission.
2018-11-19 23:56:04 +01:00
Andrea Marchesini 2285527b85 Bug 1505571 - Don't chcek user-interaction permission when the operation starts from user-interaction, r=ehsan
The permission has been just set, but the content process haven't received it
back from the parent process.
2018-11-19 23:56:03 +01:00
Ciure Andrei 0148881172 Backed out 4 changesets (bug 1507769, bug 1505571) for browser_storageAccessWithHeuristics.js failures CLOSED TREE
Backed out changeset 401763b97e54 (bug 1507769)
Backed out changeset 838dfe679fdd (bug 1505571)
Backed out changeset 88af3329ee16 (bug 1505571)
Backed out changeset be17a8b7aefa (bug 1505571)
2018-11-19 22:06:24 +02:00
Andrea Marchesini 29a3dbab55 Bug 1507769 - User-interaction required before granting storage access for some 3rd party trackers, r=ehsan
We want to introduce a new pref to block trackers that try to workaround our
heuristic. The pref is called:
privacy.restrict3rdpartystorage.userInteractionRequiredForHosts
2018-11-19 19:16:25 +01:00
Andrea Marchesini 76b069492d Bug 1505571 - Store access-storage permissions in the top-level window too, r=ehsan
This is needed for any storage access request, coming synchronously after the
setting of the permission.
2018-11-19 19:16:24 +01:00
Andrea Marchesini 13e09d5ccd Bug 1505571 - Don't chcek user-interaction permission when the operation starts from user-interaction, r=ehsan
The permission has been just set, but the content process haven't received it
back from the parent process.
2018-11-19 19:16:24 +01:00
Narcis Beleuzu 6e37dfa8f9 Backed out 2 changesets (bug 1504728, bug 1505198) for xpcshell failures on test_WebExtensionContentScript.js. CLOSED TREE
Backed out changeset 26318538f077 (bug 1505198)
Backed out changeset fc39602006be (bug 1504728)
2018-11-16 02:34:15 +02:00
Ehsan Akhgari 9d1220d4e7 Bug 1504728 - Part 1: Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin,johannh
Differential Revision: https://phabricator.services.mozilla.com/D11122
2018-11-14 17:19:25 +00:00
Dorel Luca c4f8caba67 Backed out changeset 365e0d2414bf (bug 1504728) for browser-chrome failures. CLOSED TREE 2018-11-09 18:48:39 +02:00
Ehsan Akhgari 75f342fb34 Bug 1504728 - Add a content blocking notification for indicating when a top-level page is using cookies or site data r=baku,valentin
Differential Revision: https://phabricator.services.mozilla.com/D11122
2018-11-09 15:36:02 +00:00
Ehsan Akhgari 6a7822fda2 Bug 1504194 - Part 2: Grant access to trackers across the same eTLD+1 r=baku
Depends on D10788

Differential Revision: https://phabricator.services.mozilla.com/D10789
2018-11-06 07:39:42 +00:00
Ehsan Akhgari b7eca3bcee Bug 1504194 - Part 1: Make GetParentPrincipalAndTrackingOrigin() return the tracking URI r=baku
Differential Revision: https://phabricator.services.mozilla.com/D10788
2018-11-05 16:59:04 +00:00
Andrea Marchesini 5a7af97346 Bug 1502045 - Honour cookie permissions correctly in 3rd party contexts, r=ehsan 2018-11-05 10:18:05 +01:00
Ehsan Akhgari f7995c97a4 Bug 1502240 - Ensure that Content Blocking allow list is applied to all cookie policies r=baku
Unfortunately we can't test BEHAVIOR_REJECT using the AntiTracking framework,
because the AntiTracking callbacks are incompatible with it.  (The tracking
callbacks expect to be able to unblock themselves, but under BEHAVIOR_REJECT,
that can't happen.)

Differential Revision: https://phabricator.services.mozilla.com/D10664
2018-11-02 20:14:57 +00:00
Ciure Andrei 1b134e87a2 Backed out changeset 462c7102e2db (bug 1502240) for failures related to nsICookieService CLOSED TREE 2018-11-02 19:24:40 +02:00
Ehsan Akhgari 56384805d7 Bug 1502240 - Ensure that Content Blocking allow list is applied to all cookie policies r=baku
Unfortunately we can't test BEHAVIOR_REJECT using the AntiTracking framework,
because the AntiTracking callbacks are incompatible with it.  (The tracking
callbacks expect to be able to unblock themselves, but under BEHAVIOR_REJECT,
that can't happen.)

Differential Revision: https://phabricator.services.mozilla.com/D10664
2018-11-02 12:55:01 +00:00
Ehsan Akhgari 5e975a4a5f Bug 1501978 - Part 1: Stop honouring the browser.contentblocking.enabled pref in Gecko r=baku
Differential Revision: https://phabricator.services.mozilla.com/D10074
2018-10-30 14:30:15 +00:00
Ehsan Akhgari 59e276fddf Bug 1499918 - Strip URLs reported to the console by the anti-tracking module of any username/password r=baku
Differential Revision: https://phabricator.services.mozilla.com/D9055
2018-10-19 21:47:43 +00:00
Ehsan Akhgari 7dc0780b0e Bug 1499549 - Ensure that we only check the corresponding Content Blocking exception list when testing whether a top-level document is on the Content Blocking allow list r=francois
Differential Revision: https://phabricator.services.mozilla.com/D8927
2018-10-17 17:06:00 +00:00
Andrea Marchesini c8cbdbda65 Bug 1499442 - Preload user-interaction permission, r=ehsan 2018-10-17 07:38:48 +02:00
Ehsan Akhgari 40214fbb68 Bug 1498370 - Update the storage access flag when storage access is granted/denied r=baku
Differential Revision: https://phabricator.services.mozilla.com/D8550
2018-10-15 10:29:33 +00:00
Ehsan Akhgari 0839a12f82 Bug 1494476 - Part 3: Require having had first-party interaction before being granted a first-party storage exception r=baku
Depends on D8156

Differential Revision: https://phabricator.services.mozilla.com/D8157
2018-10-10 15:47:10 +00:00
Ehsan Akhgari 31d1271504 Bug 1494476 - Part 1: Make AntiTrackingCommon::AddFirstPartyStorageAccessGrantedFor() accept a principal argument instead of a string r=baku
Depends on D8238

Differential Revision: https://phabricator.services.mozilla.com/D8155
2018-10-10 15:47:40 +00:00
Ehsan Akhgari a4f9ff8be6 Bug 1494476 - Part 0: Add the HasUserInteraction function r=baku
Differential Revision: https://phabricator.services.mozilla.com/D8238
2018-10-10 15:46:31 +00:00
Dorel Luca ec1b8e7cf6 Backed out 4 changesets (bug 1494476) for build bustage and lining failure. CLOSED TREE
Backed out changeset 70d95bda8458 (bug 1494476)
Backed out changeset f89516a277dc (bug 1494476)
Backed out changeset 3c38fad722a6 (bug 1494476)
Backed out changeset 473362250320 (bug 1494476)
2018-10-10 18:29:04 +03:00
Ehsan Akhgari 2869d8f06b Bug 1494476 - Part 3: Require having had first-party interaction before being granted a first-party storage exception r=baku
Depends on D8156

Differential Revision: https://phabricator.services.mozilla.com/D8157
2018-10-10 14:51:25 +00:00
Ehsan Akhgari b262b3c70c Bug 1494476 - Part 1: Make AntiTrackingCommon::AddFirstPartyStorageAccessGrantedFor() accept a principal argument instead of a string r=baku
Differential Revision: https://phabricator.services.mozilla.com/D8155
2018-10-10 14:49:22 +00:00
arthur.iakab 1ed97ce5d8 Merge inbound to mozilla-central a=merge 2018-09-29 07:16:35 +03:00
Gabriele Svelto 665dc4ae79 Bug 1493955 - Store floating-point preferences in a locale-independent way r=njn
Differential Revision: https://phabricator.services.mozilla.com/D6796
2018-09-28 20:54:09 +00:00
Bogdan Tara 6941b61899 Backed out changeset ba1fef7b14eb (bug 1493955) for GTest failures CLOSED TREE 2018-09-28 02:42:20 +03:00
Gabriele Svelto 32494f34c7 Bug 1493955 - Store floating-point preferences in a locale-independent way r=njn
Differential Revision: https://phabricator.services.mozilla.com/D6796
2018-09-27 20:41:39 +00:00
Ehsan Akhgari 3d24b78fa9 Bug 1493211 - Make the doubly nested iframe checks specific to requests coming from trackers r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6853
2018-09-25 22:20:19 +00:00
Ehsan Akhgari 22495ddc5a Bug 1493682 - Part 1: Introduce two new prefs for controlling whether the content blocking allow list would be honoured r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6747
2018-09-25 05:40:12 +00:00
Ehsan Akhgari e08a99d1c2 Bug 1493060 - Convert an overly aggressive assertion into a runtime check r=baku
None of the callers of this function ensure the argument passed
down here is actually a tracking window, so we need to properly
check it here rather than merely assert.

Differential Revision: https://phabricator.services.mozilla.com/D6458
2018-09-24 17:18:21 +00:00
Andrea Marchesini ae4a9d42c2 Bug 1491835 - Store User-Interaction for AntiTracking purposes - part 2 - storing user-interaction, r=ehsan 2018-09-24 12:54:54 +02:00
Ehsan Akhgari 4a569b39c7 Bug 1491061 - Part 4: Synchronize the default values of the essential prefs that content blocking depends on for all platforms; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6357
2018-09-20 13:43:05 -04:00
Ehsan Akhgari 4411c36c43 Bug 1491061 - Part 1: Make Disable Protection honour both the Content Blocking UI pref and the pref controlling whether Third-Party Cookies section appears under Content Blocking UI; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D5887
2018-09-20 13:43:05 -04:00
Ehsan Akhgari 838e513e2e Bug 1493563 - Part 9: Notify about trackers being unblocked when being granted a first-party exception; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6599
2018-09-28 14:46:02 -04:00
Ehsan Akhgari 08e7f3e6fa Bug 1493563 - Part 2: Record a log of content blocking actions on each top-level document; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6592
2018-09-28 14:46:02 -04:00
Ehsan Akhgari 8986e9f26b Bug 1493563 - Part 1: Make ReportBlockingToConsole() accept an nsIURI* argument instead of an nsIHttpChannel*; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6591
2018-09-28 14:46:02 -04:00
Noemi Erli 7fb8829472 Backed out 12 changesets (bug 1493563) for failures in test_css-logic-getCssPath.html CLOSED TREE
Backed out changeset d2e83655082f (bug 1493563)
Backed out changeset 1ce58f004593 (bug 1493563)
Backed out changeset 344298c73ee7 (bug 1493563)
Backed out changeset 02b8b073f7d7 (bug 1493563)
Backed out changeset 3ef707008502 (bug 1493563)
Backed out changeset bb2720a401fe (bug 1493563)
Backed out changeset ce0211be57a1 (bug 1493563)
Backed out changeset 83d6c2bf8dc6 (bug 1493563)
Backed out changeset 1844af4cc25b (bug 1493563)
Backed out changeset c8ab17addb7a (bug 1493563)
Backed out changeset a1ff0cd62563 (bug 1493563)
Backed out changeset 932b41e211e0 (bug 1493563)
2018-09-28 21:31:18 +03:00