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

23 Коммитов

Автор SHA1 Сообщение Дата
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
dlee daa17adb9e Bug 1545033 - P1. Pass matched hash values to ProcessChannel. r=baku
In origin telemetry, we want to record the matching statistic of each entry
in our tracking tables. To identify which entry a given URL matches, it needs
the hash value that matches the safe browsing database.

This patch passes the hash value to ProcessChannel so Features can obtain the
information and pass it.

Note that it is possible that an URL may find multiple matches. If an URL matches
hash A of list 1 and hash B of list 2, the parameter in ProcessChannel looks like:
aList = [list 1, list2]
aHashes = [hash A, hash B]

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

--HG--
extra : moz-landing-system : lando
2019-04-26 13:02:35 +00:00
Ryan Hunt 9185e0f072 Bug 1534395 - Unified build fixes. r=nika
File renames cause some unified build issues. This commit adds the missing headers.

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

--HG--
extra : rebase_source : 1bc74b73e90caddfa80503b1cb0283142e32c462
2019-04-09 17:38:11 -05:00
Andrea Marchesini 10b25d6759 Bug 1539637 - Make cryptomining and fingerprinting annotations use the "strict" list always, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D25266

--HG--
extra : moz-landing-system : lando
2019-04-04 05:31:44 +00:00
Dimi Lee 632a821b8a Bug 1501458 - Remove unused tracking protection code from nsUrlClassifierDBService. r=baku
No one is using the aUseTrackingProtection parameter and also tracking
protection related preference in Classify API. And we shouldn't use it
that way in the future.

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

--HG--
extra : moz-landing-system : lando
2019-01-17 21:24:43 +00:00
Dimi Lee 53158f3fcb Bug 1514488 - Check if IPC still opens before sending classify result. r=baku
The crash happens when parent process tries to send classify result to
the content process while the IPC connection is already closed.

The only case that we needs IPC for classification is for Flash classification, but flash
classification is moved to parent process after Bug 1514202.

Although right now there is no consumer for the IPC version of
nsUrlClassifierDBService::AsyncClassifyLocalWithFeatures, we should
still fix this bug.

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

--HG--
extra : moz-landing-system : lando
2019-01-14 08:24:39 +00:00
Andrea Marchesini e34612e16e Bug 1514202 - Port flash url-classifier to nsIUrlClassifierFeature - part 1 - Flash feature, r=dimi, r=edgar, r=valentin 2019-01-04 14:45:42 +01:00
Andrea Marchesini 6b9fe3a6cf Bug 1511436 - Cleanup URL-Classifier code - part 3 - AsyncUrlChannelClassifier, r=dimi 2018-12-14 12:40:17 +01:00
Andrea Marchesini 71b120ca17 Bug 1511436 - Cleanup URL-Classifier code - part 2 - nsUrlClassifierDBService::AsyncClassifyLocalWithFeatures, r=dimi 2018-12-14 12:40:17 +01:00
Sylvestre Ledru 265e672179 Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset

--HG--
extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
2018-11-30 11:46:48 +01:00
Andrea Marchesini c80c929412 Bug 1476967 - Allow the adding of tracking-protection entries via prefs, r=francois 2018-08-27 21:01:14 +02:00
Henry Chang eec96acbf0 Bug 1343425 - Supports nsIURIClassifier.asyncClassifyLocalWithTables. r=baku
We add a new "on-off" protocol PURLClassifierLocal which calls
nsIURIClassifier.asyncClassifyLocalWithTables on construction and
calls back on destruction. Pretty much the same design as PURLClassifier.

In order to avoid code duplication, the actor implementation is templatized
and |MaybeInfo| in PURLClassifier.ipdl is moved around.

Test case is included and the custom event target is not in place for labelling.
The custom event target will be done in Bug 1353701.

MozReview-Commit-ID: IdHYgdnBV7S

--HG--
extra : rebase_source : ab1c896305b9f76cab13a92c9bd88c2d356aacb7
2017-04-07 14:15:16 +08:00
Thomas Nguyen 2b86f73c62 Bug 1339006 - Specify event target if we run nsIURIClassifier.clasify() from content process.r=ehsan, r=gcp
MozReview-Commit-ID: BztjVMlQngi
2017-03-08 11:06:36 +08:00
Thomas Nguyen 65d9ef988a Bug 1288633 - Add more information when an URL matches Safe Browsing list. r=dragana,francois
MozReview-Commit-ID: 6u0dUOB838F

--HG--
extra : rebase_source : 8800e60e6a3b787f1ebaeafb48057e3a3d509468
2017-02-21 09:46:36 +08:00
Ehsan Akhgari b4fa73d470 Bug 1325651 - Assume failure in case of early returns in a couple of places; r=bzbarsky 2016-12-31 11:40:49 -05:00
Wes Kocher 1a2e2404c4 Backed out changeset 263b1b07c2ac (bug 1325651) for being a possible cause of valgrind leaks a=backout 2016-12-30 10:56:57 -08:00
Ehsan Akhgari 9fc596c6c1 Bug 1325651 - Assume failure in case of early returns in a couple of places; r=bzbarsky 2016-12-30 11:41:04 -05:00
Ehsan Akhgari 41b2cc8dd4 Bug 1325255 - Don't crash during shutdown if the deserialization of the principal fails; r=bkelly 2016-12-22 15:09:12 -05:00
Ehsan Akhgari 8d51b7e4f4 Bug 1323220 - Don't attempt to delete the child actor twice in URLClassifierParent; r=baku 2016-12-14 10:53:14 -05:00
Phil Ringnalda 3094022bf6 Backed out changeset 8508fca15e2f (bug 1323220) for e10s ASan reftest bustage
CLOSED TREE

MozReview-Commit-ID: 5xEV8szfp77
2016-12-13 16:54:55 -08:00
Ehsan Akhgari 5da6979a0b Bug 1323220 - Include some more diagnostic information in the crash reports; r=mccr8 2016-12-13 19:09:20 -05:00
Ehsan Akhgari 8ccfaa7a63 Bug 1322204 - Fail gracefully when the URL classifier service isn't available because we're in safe mode; r=smaug 2016-12-08 15:20:14 -10:00
Ehsan Akhgari 7009c0e03a Bug 1318768 - Part 2: Make nsIURIClassifier::Classify() available in the content process; r=gcp,baku 2016-11-22 08:17:26 -05:00