Граф коммитов

135 Коммитов

Автор SHA1 Сообщение Дата
Narcis Beleuzu 0186cbe565 Backed out 8 changesets (bug 1620322) for bustages on nsContentSink.cpp . CLOSED TREE
Backed out changeset f41739c64dff (bug 1620322)
Backed out changeset be942a7f329e (bug 1620322)
Backed out changeset a916987c7c71 (bug 1620322)
Backed out changeset ead3484ffb5f (bug 1620322)
Backed out changeset 4e1e8b9afa1a (bug 1620322)
Backed out changeset 473bba698e5a (bug 1620322)
Backed out changeset 0e5e5d41597d (bug 1620322)
Backed out changeset 31b24d79db3d (bug 1620322)

--HG--
rename : toolkit/components/antitracking/ContentBlockingLog.cpp => dom/base/ContentBlockingLog.cpp
rename : toolkit/components/antitracking/ContentBlockingLog.h => dom/base/ContentBlockingLog.h
rename : toolkit/components/antitracking/ContentBlocking.cpp => toolkit/components/antitracking/AntiTrackingCommon.cpp
rename : toolkit/components/antitracking/ContentBlocking.h => toolkit/components/antitracking/AntiTrackingCommon.h
2020-03-09 22:18:36 +02:00
Ehsan Akhgari 5045d313c2 Bug 1620322 - Part 8: Rename AntiTrackingCommon to ContentBlocking; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65821

--HG--
rename : toolkit/components/antitracking/AntiTrackingCommon.cpp => toolkit/components/antitracking/ContentBlocking.cpp
rename : toolkit/components/antitracking/AntiTrackingCommon.h => toolkit/components/antitracking/ContentBlocking.h
extra : moz-landing-system : lando
2020-03-09 18:12:40 +00:00
Ehsan Akhgari f658ede842 Bug 1620322 - Part 3: Move MaybeGetDocumentURIBeingLoaded to AntiTrackingUtils; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65751

--HG--
extra : moz-landing-system : lando
2020-03-09 18:12:28 +00:00
Ehsan Akhgari 78677f7812 Bug 1620322 - Part 2: Refactor the code for content blocking events and notifications out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65743

--HG--
extra : moz-landing-system : lando
2020-03-09 18:12:26 +00:00
Noemi Erli a48fac9e3b Backed out 8 changesets (bug 1620322) for causing bustages in ContentBlockingLog.cpp CLOSED TREE
Backed out changeset 3dcf513e36cb (bug 1620322)
Backed out changeset 46714855ce1d (bug 1620322)
Backed out changeset 0eb2b5f7322f (bug 1620322)
Backed out changeset 72d640fa0740 (bug 1620322)
Backed out changeset 4533bb4e5177 (bug 1620322)
Backed out changeset 659270edd419 (bug 1620322)
Backed out changeset 6802c18b1914 (bug 1620322)
Backed out changeset 60ff34db9f15 (bug 1620322)

--HG--
rename : toolkit/components/antitracking/ContentBlockingLog.cpp => dom/base/ContentBlockingLog.cpp
rename : toolkit/components/antitracking/ContentBlockingLog.h => dom/base/ContentBlockingLog.h
rename : toolkit/components/antitracking/ContentBlocking.cpp => toolkit/components/antitracking/AntiTrackingCommon.cpp
rename : toolkit/components/antitracking/ContentBlocking.h => toolkit/components/antitracking/AntiTrackingCommon.h
2020-03-09 19:19:41 +02:00
Ehsan Akhgari 1195c302a4 Bug 1620322 - Part 8: Rename AntiTrackingCommon to ContentBlocking; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65821

--HG--
rename : toolkit/components/antitracking/AntiTrackingCommon.cpp => toolkit/components/antitracking/ContentBlocking.cpp
rename : toolkit/components/antitracking/AntiTrackingCommon.h => toolkit/components/antitracking/ContentBlocking.h
extra : moz-landing-system : lando
2020-03-09 10:23:07 +00:00
Ehsan Akhgari a860758740 Bug 1620322 - Part 3: Move MaybeGetDocumentURIBeingLoaded to AntiTrackingUtils; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65751

--HG--
extra : moz-landing-system : lando
2020-03-09 10:20:12 +00:00
Ehsan Akhgari 4bc71d0112 Bug 1620322 - Part 2: Refactor the code for content blocking events and notifications out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65743

--HG--
extra : moz-landing-system : lando
2020-03-09 10:16:54 +00:00
Ehsan Akhgari 5a4c537105 Bug 1620322 - Part 1: Refactor the code for content blocking allow list out of AntiTrackingCommon.cpp; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D65662

--HG--
extra : moz-landing-system : lando
2020-03-06 16:36:01 +00:00
Simon Giesecke b50347f917 Bug 1611415 - Prefer using std::move over forget. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-13 14:38:48 +00:00
shindli 91aa0518dd Backed out changeset 0c982bc69cb3 (bug 1611415) for causing build bustages in /builds/worker/workspace/build/src/obj-firefox/dist/include/nsCOMPtr CLOSED TREE 2020-02-12 20:13:29 +02:00
Simon Giesecke f604a47fa5 Bug 1611415 - Applied FixItHints from mozilla-non-std-move. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D60980

--HG--
extra : moz-landing-system : lando
2020-02-12 17:24:41 +00:00
Dimi Lee 3f336cb71f Bug 1599046 - P4. Report content blocking log to console while running in the parent process r=Ehsan
Depends on D57630

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

--HG--
extra : moz-landing-system : lando
2020-01-27 19:23:05 +00:00
Dimi Lee d58587be36 Bug 1599046 - P3. Remove unused IPC method in nsIParentChannel.idl. r=timhuang,Ehsan
The following methods are removed:
1. notifyChannelClassifierProtectionDisabled
2. notifyCookieAllowed
3. notifyCookieBlocked

Depends on D56875

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

--HG--
extra : moz-landing-system : lando
2020-01-27 10:39:38 +00:00
Dimi Lee 6b66f4ad81 Bug 1599046 - P2. Remove calling NotifyOnContentBlocking in the child process r=timhuang,Ehsan
This patch does the followings:
1. Remove NotifyOnContentBlocking in WindowOuter and all the call sites.
   This is because all the content blocking event handling is moved to the parent.

2. Replace UrlClassifierCommon::NotifyChannelBlocked with AntiTrackingCommon:::NotifyContentBlockingEventInParent.
   This is because we don't need to pass the request to the child anymore, which was implemented in NotifyChannelBlocked previously.

3. Add NotifyContentBlockingEvent* utility functions to AntiTrackingCommon.cpp.

4. Update AntiTrackingCommon::NotifyBlockingDecision, when it is called in the parent,
   do not send requests to the child, notify the parent directly

Depends on D56874

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

--HG--
extra : moz-landing-system : lando
2020-01-27 10:39:43 +00:00
Brindusan Cristian 00b2950b8d Backed out 4 changesets (bug 1599046) for xpcshell failures at test_ext_cookieBehaviors. CLOSED TREE
Backed out changeset 721f54870498 (bug 1599046)
Backed out changeset 2e165c119a4f (bug 1599046)
Backed out changeset 2bc0fa3bbe0e (bug 1599046)
Backed out changeset 805fb67be8a3 (bug 1599046)
2020-01-27 12:36:11 +02:00
Dimi Lee 1a9cf4eaa6 Bug 1599046 - P4. Report content blocking log to console while running in the parent process r=Ehsan
Depends on D57630

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

--HG--
extra : moz-landing-system : lando
2020-01-27 09:13:34 +00:00
Dimi Lee 9b6c954be8 Bug 1599046 - P3. Remove unused IPC method in nsIParentChannel.idl. r=timhuang,Ehsan
The following methods are removed:
1. notifyChannelClassifierProtectionDisabled
2. notifyCookieAllowed
3. notifyCookieBlocked

Depends on D56875

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

--HG--
extra : moz-landing-system : lando
2020-01-27 09:13:27 +00:00
Dimi Lee 9b9787812e Bug 1599046 - P2. Remove calling NotifyOnContentBlocking in the child process r=timhuang,Ehsan
This patch does the followings:
1. Remove NotifyOnContentBlocking in WindowOuter and all the call sites.
   This is because all the content blocking event handling is moved to the parent.

2. Replace UrlClassifierCommon::NotifyChannelBlocked with AntiTrackingCommon:::NotifyContentBlockingEventInParent.
   This is because we don't need to pass the request to the child anymore, which was implemented in NotifyChannelBlocked previously.

3. Add NotifyContentBlockingEvent* utility functions to AntiTrackingCommon.cpp.

4. Update AntiTrackingCommon::NotifyBlockingDecision, when it is called in the parent,
   do not send requests to the child, notify the parent directly

Depends on D56874

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

--HG--
extra : moz-landing-system : lando
2020-01-27 09:13:19 +00:00
Ehsan Akhgari d02527e65d Bug 1607518 - Make ClassifierDummyChannel implement nsIClassifiedChannel; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D59932

--HG--
extra : moz-landing-system : lando
2020-01-20 02:02:17 +00:00
Tim Huang 327d5ae1e8 Bug 1599043 - Part 9: Set channel matched info in channels in parent process. r=dimi
This patch makes the matched info also set into the channels in the
parent process. This info is neeced for the ContentBlocking telemetry
and GeckoView also relies on it.

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

--HG--
extra : moz-landing-system : lando
2020-01-13 14:09:03 +00:00
Tim Huang 954fc76e45 Bug 1599043 - Part 4: Notify the OnContentBlockingEvent in the parent process in UrlClassifierCommon. r=dimi,Ehsan
We make the OnContentBlockingEvent to be notified in the parent procees
for UrlClassifierCommon. There are two place would trigger this,
UrlClassifierCommon::SetBlockedContent and
UrlClassifierCommon::AnnotateChannel. But we still send to the child
process to notify the content blocking since we need to update the log
in the content process in this stage.

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

--HG--
extra : moz-landing-system : lando
2020-01-13 14:08:20 +00:00
Oana Pop Rus 53f1ba7c69 Backed out 10 changesets (bug 1599043) for build bustages in nsGlobalWindowOuter.cpp on a CLOSED TREE
Backed out changeset 463b815557e4 (bug 1599043)
Backed out changeset 7c3f0a58cc6c (bug 1599043)
Backed out changeset 1eadd9f5b50e (bug 1599043)
Backed out changeset e4ea0d47136b (bug 1599043)
Backed out changeset 6b97581c33b6 (bug 1599043)
Backed out changeset a68bd2acf5d6 (bug 1599043)
Backed out changeset c8ed9c52508c (bug 1599043)
Backed out changeset aaf83f7806b4 (bug 1599043)
Backed out changeset 0ad30634e416 (bug 1599043)
Backed out changeset 68219c132efc (bug 1599043)
2019-12-12 17:14:54 +02:00
Tim Huang e3647eeee3 Bug 1599043 - Part 9: Set channel matched info in channels in parent process. r=dimi
This patch makes the matched info also set into the channels in the
parent process. This info is neeced for the ContentBlocking telemetry
and GeckoView also relies on it.

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

--HG--
extra : moz-landing-system : lando
2019-12-12 10:15:20 +00:00
Tim Huang 4d90cf0737 Bug 1599043 - Part 4: Notify the OnContentBlockingEvent in the parent process in UrlClassifierCommon. r=dimi,Ehsan
We make the OnContentBlockingEvent to be notified in the parent procees
for UrlClassifierCommon. There are two place would trigger this,
UrlClassifierCommon::SetBlockedContent and
UrlClassifierCommon::AnnotateChannel. But we still send to the child
process to notify the content blocking since we need to update the log
in the content process in this stage.

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

--HG--
extra : moz-landing-system : lando
2019-12-11 15:00:44 +00:00
Gabriele Svelto 5dc21d568c Bug 1600545 - Remove useless inclusions of header files generated from IDL files in modules/, netwerk/, parser/, security/, startupcache/, storage/, toolkit/, tools/, uriloader/, widget/, xpcom/ and xpfe/ r=Ehsan
The inclusions were removed with the following very crude script and the
resulting breakage was fixed up by hand. The manual fixups did either
revert the changes done by the script, replace a generic header with a more
specific one or replace a header with a forward declaration.

find . -name "*.idl" | grep -v web-platform | grep -v third_party | while read path; do
    interfaces=$(grep "^\(class\|interface\).*:.*" "$path" | cut -d' ' -f2)
    if [ -n "$interfaces" ]; then
        if [[ "$interfaces" == *$'\n'* ]]; then
          regexp="\("
          for i in $interfaces; do regexp="$regexp$i\|"; done
          regexp="${regexp%%\\\|}\)"
        else
          regexp="$interfaces"
        fi
        interface=$(basename "$path")
        rg -l "#include.*${interface%%.idl}.h" . | while read path2; do
            hits=$(grep -v "#include.*${interface%%.idl}.h" "$path2" | grep -c "$regexp" )
            if [ $hits -eq 0 ]; then
                echo "Removing ${interface} from ${path2}"
                grep -v "#include.*${interface%%.idl}.h" "$path2" > "$path2".tmp
                mv -f "$path2".tmp "$path2"
            fi
        done
    fi
done

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

--HG--
extra : moz-landing-system : lando
2019-12-06 09:17:57 +00:00
Dimi Lee 890d2ceb9d Bug 1584931 - P2. Disable flashblock when fission is enabled. r=bytesized
This patch does the following:
  1. Disable flashblock when fission is enabled.
  2. Update flashblock tests to expect "unknown" classification when fission is
     enabled.
  3. Remove skip-if=fission in flashblock mochitests.

Depends on D51098

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

--HG--
extra : moz-landing-system : lando
2019-12-04 09:00:28 +00:00
Ehsan Akhgari 8909341af2 Bug 1589476 - Emit a separate notification when a tracker from the Level 2 Disconnect blocklist is observed on a page and use this code to avoid using the URL classifer service in the front-end; r=nhnt11,droeh
Differential Revision: https://phabricator.services.mozilla.com/D49660

--HG--
extra : moz-landing-system : lando
2019-11-18 20:56:36 +00:00
Nihanth Subramanya 2164478f1e Bug 1584479 - Part 1: Add flag for blocked social cookies in the content blocking log. r=Ehsan,droeh
Differential Revision: https://phabricator.services.mozilla.com/D47427

--HG--
extra : moz-landing-system : lando
2019-11-01 23:24:25 +00:00
Dorel Luca b9074d53a1 Backed out 4 changesets (bug 1584479) for Browser-chrome failures in toolkit/components/antitracking/test/browser/browser_socialtracking.js
Backed out changeset b0d9877bd8b0 (bug 1584479)
Backed out changeset d2c56bd61b08 (bug 1584479)
Backed out changeset 0edb22786545 (bug 1584479)
Backed out changeset 7e03b392edb3 (bug 1584479)
2019-11-02 01:18:42 +02:00
Nihanth Subramanya e7620d9a8c Bug 1584479 - Part 1: Add flag for blocked social cookies in the content blocking log. r=Ehsan,droeh
Differential Revision: https://phabricator.services.mozilla.com/D47427

--HG--
extra : moz-landing-system : lando
2019-11-01 21:02:09 +00:00
Nicholas Nethercote a518709339 Bug 1587162 - Fix UBSAN complaints about pref callbacks. r=erahm
Lots of these callbacks have a non-`void*` final parameter, which UBSAN
complains about. This commit changes them to have a `void*` parameter.

This requires undoing the machinery added in the first two commits of bug
1473631: `TypePrefChangeFunc` and `PREF_CHANGE_METHOD`. The resulting code is
simpler (which is good) and more boilerplate-y (which is bad) but avoids the
undefined behaviour (which is good).

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

--HG--
extra : moz-landing-system : lando
2019-11-01 02:57:20 +00:00
DimiDL 3937de1977 Bug 1570159 - CreatePairwiseWhitelistURI return success when it cannot get host from the top-level page. r=Ehsan
Before this patch, when we cannot get the host name from the top-level page, for example,
aboout page, UrlClassifeirCommon::CreatePairwiseWhitelistURI returns an error.

After this patch, when |GetHost| fails, we returns NS_OK to just skip looking up
whiltelist for this URI. Note that the lookup against blacklist tables will
still be performed.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 07:31:12 +00:00
Jean-Yves Avenard e6d0e7dfda Bug 1588899 - P1. Move classification flags related method to nsIClassifiedChannel. r=Ehsan,baku
This is where it should have been in the first place. Those attributes belong there.

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

--HG--
extra : moz-landing-system : lando
2019-10-19 04:30:24 +00:00
DimiDL 9527b7473c Bug 1584174 - Sync log module macro in ChannelClassifier and AsyncChannelClassifier. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D48643

--HG--
extra : moz-landing-system : lando
2019-10-09 12:04:19 +00:00
Honza Bambas c6b75b3965 Bug 1584183 - Set nsILoadInfo.requestBlockingReason in UrlClassifierCommon::SetBlockedContent, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D47243

--HG--
extra : moz-landing-system : lando
2019-09-27 07:50:17 +00:00
DimiL bb84e08de3 Bug 1580416 - P1. Use a different fragment method when the URI is a pairwiseWhitelistedURI. r=Ehsan
This patch does the following to support matching a whitelisted URI when
its domain is eTLD+1:

1. add an URIType to indicate whether a URI is generated by
   UrlClassifierCommoon::CreatePairwiseWhiteListURI(), which crafts a
   whitelist URL like "toplevel.page/?resource=third.party.domain"

2. call LookupCache::GetLookupWhitelistFragments() if URIType is
   nsIUrlClassifierFeature::pairwiseWhitelistedURI before initiating
   a lookup.

3. implement LookupCache::GetLookupWhitelistFragments() which creates
   an additional fragment by removing the leading component of
   third.party.domain

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

--HG--
extra : moz-landing-system : lando
2019-09-27 13:22:18 +00:00
Ehsan Akhgari 3bd685e0df Bug 1581160 - Part 2: Do not prevent the local database from being checked in UrlClassifierSkipListService.jsm; r=johannh,leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D46029

--HG--
extra : moz-landing-system : lando
2019-09-16 21:48:26 +00:00
arthur.iakab be0104c954 Backed out changeset 92ed48a0afb3 (bug 1581160) for causing xpcshell failures on test_http2-proxy.js CLOSED TREE
test_http2-proxy.js
2019-09-16 19:49:30 +03:00
Ehsan Akhgari e8e4f4ae9c Bug 1581160 - Part 2: Do not prevent the local database from being checked in UrlClassifierSkipListService.jsm; r=johannh,leplatrem
Differential Revision: https://phabricator.services.mozilla.com/D46029

--HG--
extra : moz-landing-system : lando
2019-09-16 15:02:06 +00:00
dlee f981c3905f Bug 1575811 - Remove |IsAllowListed| check in UrlClassifierCommon::AnnotateChannel. r=Ehsan
When URL Classifier reports a channel is a tracker, we should only notify the classification
result when it is a third-party channel.
That means, |IsAllowListed| should not take into consideation here.

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

--HG--
extra : moz-landing-system : lando
2019-08-28 13:40:33 +00:00
Ehsan Akhgari 05feeeb79b Bug 1572240 - Part 5: Use the principal-based version of the permission manager APIs in Gecko when checking the content blocking allow list; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D42206

--HG--
extra : moz-landing-system : lando
2019-08-19 14:38:45 +00:00
Tom Schuster d2d9c3ff60 Bug 1558915 - Use infallible nsIURI::SchemeIs in netwerk/. r=baku
Sorry I had some problems figuring out who can review netwerk/. Most people seem to be on PTO.

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

--HG--
extra : moz-landing-system : lando
2019-08-08 13:02:36 +00:00
Ehsan Akhgari b05ce1a78b Bug 1571893 - Remove the prefs that can cause Gecko to stop honouring the Content Blocking allow list; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D40895

--HG--
extra : moz-landing-system : lando
2019-08-07 15:54:54 +00:00
Andrea Marchesini 01a1f139a1 Bug 1570971 - Enable all the annotation URL-Classifier features and remove their prefs, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D40420

--HG--
extra : moz-landing-system : lando
2019-08-05 11:34:24 +00:00
Andrea Marchesini 7044fec84c Bug 1566961 - Integrate SocialTracking and ETP, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D38451

--HG--
extra : moz-landing-system : lando
2019-07-29 12:20:39 +00:00
Andrea Marchesini 2e169ffe17 Bug 1566961 - Integrate SocialTracking and ETP - Remove YOUTUBE classification, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D38450

--HG--
extra : moz-landing-system : lando
2019-07-29 12:20:35 +00:00
Csoregi Natalia 755219489e Backed out 3 changesets (bug 1566961) for eslint failure on browser_socialtracking.js. CLOSED TREE
Backed out changeset a85686cb5dfa (bug 1566961)
Backed out changeset 9cb916e52712 (bug 1566961)
Backed out changeset 4c747eb1c370 (bug 1566961)
2019-07-29 15:17:28 +03:00
Andrea Marchesini 7f34a5abc1 Bug 1566961 - Integrate SocialTracking and ETP, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D38451

--HG--
extra : moz-landing-system : lando
2019-07-29 11:27:23 +00:00
Andrea Marchesini ce99b99d11 Bug 1566961 - Integrate SocialTracking and ETP - Remove YOUTUBE classification, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D38450

--HG--
extra : moz-landing-system : lando
2019-07-29 10:40:31 +00:00