Commit Graph

1337 Commits

Author SHA1 Message Date
Andrea Marchesini
47607ea561 Bug 1513298 - Fingerprinting url-classifier feature, r=dimi 2019-01-08 23:05:41 +01:00
Andrea Marchesini
a45e910940 Bug 1517308 - Add a search field in about:url-classifier - part 1 - nsIUrlClassifier.getFeatureNames(), r=dimi 2019-01-08 23:05:40 +01:00
Andrea Marchesini
518057c967 Bug 1515286 - Get rid of nsIURIClassifier.asyncClassifyLocalWithTables, r=dimi 2019-01-05 09:10:56 +01:00
Andrea Marchesini
d5625220f1 Bug 1515286 - Introduce nsIURIClassifier.getFeatureByName() and nsIURIClassifier.createFeatureWithTables(), r=dimi 2019-01-05 09:10:45 +01:00
Andrea Marchesini
b24a2262ea Bug Bug 1515272 - Get rid of nsIURIClassifier.classifyLocal(), r=dimi, r=froydnj 2019-01-04 14:46:30 +01:00
Andrea Marchesini
1eb4df4dfe 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
dlee
48f039cbe8 Bug 1504774 - Fix url-classifier worker thread is not aborted while shutting down. r=francois
In Bug 1453038, |mUpdateInterrupted| is set in Classifer::Close() which is
called by PreShutdown to abort an ongoing update. That doesn't handle
all the cases.

The SafeBrowsing update involves two threads, worker thread, and update
thread. Update thread takes care of most of the update work, when it finishes
its task, it posts a task back to the worker thread to apply the updated database
and also do some cleanup stuff. Then the update is complete.

The fix in Bug 1453038 doesn't abort an update if the woker thread is doing
the job. This is because the |mUpdateInterrupted| flag is set in the
worker thread. The PreShutdown event which eventually sets the flag has to
wait until the worker thread's current task is done.

In this patch:
1. Check nsUrlClassifierDBService::ShutdownHasStarted() to abort shutdown.
This is set by main thread so both worker thread and update thread can
be interrupted now.
2. mIsClosed is now replaced by the mUpdateInterrupted. The semantics of
mUpdateInterrupted is now changed to abort update for any internal APIs
which should cause an update to abort.
3. Remove |mUpdateInterrupted| and |ShutdownHasStarted()| checks and
unify with |ShouldAbort()|

Differential Revision: https://phabricator.services.mozilla.com/D12229
2018-12-19 10:03:19 +00:00
Andrea Marchesini
2544084eff Bug 1514133 - Port Login-Reputation classification to nsIUrlClassifierFeature, r=dimi 2018-12-15 09:54:02 +01:00
Andrea Marchesini
a669db6616 Bug 1511436 - Cleanup URL-Classifier code - part 4 - lookup optimization, r=dimi 2018-12-14 12:40:18 +01:00
Andrea Marchesini
d2ac02202c Bug 1511436 - Cleanup URL-Classifier code - part 3 - AsyncUrlChannelClassifier, r=dimi 2018-12-14 12:40:17 +01:00
Andrea Marchesini
e247fa8583 Bug 1511436 - Cleanup URL-Classifier code - part 2 - nsUrlClassifierDBService::AsyncClassifyLocalWithFeatures, r=dimi 2018-12-14 12:40:17 +01:00
Andrea Marchesini
a5aa66ee92 Bug 1511436 - Cleanup URL-Classifier code - part 1 - nsIUrlClassifierFeature, r=dimi 2018-12-14 12:40:16 +01:00
Sylvestre Ledru
577bc46708 Bug 1512961 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D14060
2018-12-10 19:23:16 +00:00
Ehsan Akhgari
61fe3c0a09 Bug 1510911 - Part 2: Backout changeset f8849239da42 (bug 1493563 - Part 5) for regressing performance 2018-12-03 14:27:53 -05:00
Andrea Marchesini
a7e27233f3 Bug 1505931 - Tests for tracking annotation lists vs tracking protection lists, r=francois 2018-12-01 13:04:20 +01:00
Andrea Marchesini
aa261d7721 Bug 1505931 - URL-Classifier should consider all the prefs, r=francois 2018-12-01 13:04:20 +01:00
Sylvestre Ledru
e5a134f73a Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Ehsan Akhgari
41ae97b060 Bug 1509555 - Part 5: Remove fastblock from tests r=baku
Depends on D12831

Differential Revision: https://phabricator.services.mozilla.com/D12832
2018-11-27 08:57:53 +00:00
Eugen Sawin
e54716978d Bug 1503560 - [1.2] Override tracking protection pref on GeckoView to re-enable blocklist updates. r=francois 2018-11-12 18:47:17 +01:00
Ehsan Akhgari
5f5eeea40c Bug 1504194 - Part 3: Add tests for granting access to trackers across the same eTLD+1 r=baku
Depends on D10789

Differential Revision: https://phabricator.services.mozilla.com/D10790
2018-11-05 17:10:49 +00:00
matthias
fca9c2fd5e Bug 1462499 - changed priority of harmful. r=francois
Differential Revision: https://phabricator.services.mozilla.com/D6570
2018-09-24 15:51:50 +00:00
Ehsan Akhgari
5a784329db Bug 1501978 - Part 2: Remove the browser.contentblocking.enabled pref from the tests that set it to true needlessly r=baku
Depends on D10074

Differential Revision: https://phabricator.services.mozilla.com/D10075
2018-10-30 07:47:56 +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
Julian Descottes
15aaadb6c7 Bug 1499096 - Update tests using ok() to is();r=Standard8
This changeset updates all the test that were wrongly using ok() and wanted to
use is() AND for which the assert is still passing without any modification
required.

Differential Revision: https://phabricator.services.mozilla.com/D8739
2018-10-23 07:12:23 +00:00
Dimi Lee
16c28822da Bug 1439450 - Ignore has_first_value() check in ProtocolParser. r=francois
Sometimes the protocol buffer data (RiceEncodingData) sent by Google's Safe Browsing server has the following properties:

1. |has_first_value| is false
2. |num_entries| > 0

In this case, we can still parse the data and apply partial update correctly by assuming that the first value is equal to 0.

Differential Revision: https://phabricator.services.mozilla.com/D6393
2018-10-16 10:36:01 +00:00
Francois Marier
e1e6936b5e Bug 1498736 - Log the number of prefixes loaded from disk. r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D8622
2018-10-13 20:21:45 +00:00
Andreas Farre
7463bf2449 Bug 1437064 - Remove tracking timeouts list from TimeoutManager. r=chutten,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D7878
2018-10-12 18:01:19 +00:00
Liang-Heng Chen
05b1f24def Bug 1495110 - make slow-iframe as a separated file r=mayhemer
The slowIframe added in bug 1488974 shares the same target HTML page with fastIframe, and the resource will be canceled by ChannelUnifier and only loaded once.
Sometimes, when slowIframe is loaded faster than fastIframe, the resource in fastIframe will be canceled, that's the root cause of the intermittent.

Differential Revision: https://phabricator.services.mozilla.com/D8423
2018-10-12 13:39:09 +00:00
Cristina Coroiu
7c037a338c Bug 1495110 - Disable test_fastblock_bug1477046.html for multiple failures on windows7 and mac r=jmaher 2018-10-07 15:37:00 +03:00
arthur.iakab
1ed97ce5d8 Merge inbound to mozilla-central a=merge 2018-09-29 07:16:35 +03:00
Francois Marier
3f5ff70fb0 Bug 1488974 - Disable FastBlock after the load event has fired. r=mayhemer,Ehsan
The test used to assume that the load event didn't matter and so
the expected values had to be updated to match the new behavior.

A new "slowIFrame" test was added to capture what was previously
tested by the "badIFrame".

Differential Revision: https://phabricator.services.mozilla.com/D7031
2018-09-28 19:12:10 +00:00
Ehsan Akhgari
7bddc35620 Bug 1493563 - Part 5: Present the old state and the content blocking log to the web progress listeners; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6595
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
Ehsan Akhgari
6c662bd61e Bug 1493563 - Part 5: Present the old state and the content blocking log to the web progress listeners; r=baku
Differential Revision: https://phabricator.services.mozilla.com/D6595
2018-09-28 13:24:41 -04:00
Jonathan Kingston
03ff4a44fb Bug 1485305 - toolkit/ Ensure loadURI always passes a triggeringPrincipal() r=Mossop
Differential Revision: https://phabricator.services.mozilla.com/D4563
2018-08-29 15:49:12 +01:00
Brindusan Cristian
6c0094d53f Backed out 10 changesets (bug 1485305) for browser-chrome failures on docshell/test/browser/browser_loadURI.js. CLOSED TREE
Backed out changeset 50439ec01661 (bug 1485305)
Backed out changeset a05e40ef7215 (bug 1485305)
Backed out changeset c99b97b4348b (bug 1485305)
Backed out changeset 75220b2f6669 (bug 1485305)
Backed out changeset e698f2fc1c1a (bug 1485305)
Backed out changeset acce14683c13 (bug 1485305)
Backed out changeset 323773a395cc (bug 1485305)
Backed out changeset 1b74152cabc1 (bug 1485305)
Backed out changeset 4b5c9d5929fc (bug 1485305)
Backed out changeset 238d92348159 (bug 1485305)
2018-09-19 18:47:27 +03:00
Jonathan Kingston
dabc469c77 Bug 1485305 - toolkit/ Ensure loadURI always passes a triggeringPrincipal() r=Mossop
Differential Revision: https://phabricator.services.mozilla.com/D4563
2018-08-29 15:49:12 +01:00
Liang-Heng Chen
3bcd723aa3 Bug 1492087 - Disable browser.fastblock.limit in tests r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D6135
2018-09-18 11:14:01 +00:00
Dimi Lee
293fcd3f58 Bug 1481819 - Make Safe Browsing directory-based file copy interruptible. r=francois
A directory-based file copy without checkpoint to abort may take lots
of time to finish. This cause an issue that if firefox is shutting down
and try to close an ongoing update thread, main-thread may be blocked
for a long time.

This patch adds a wrapper for copying an entire directory, within this
wrapper, we use file-based copy and add checkpoints to let update thread
has a chance to abort.

Differential Revision: https://phabricator.services.mozilla.com/D3414
2018-09-18 14:29:20 +00:00
Liang-Heng Chen
591c74931f Bug 1477046 - Part 3: Add FastBlock redirect tests; r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D5806
2018-09-17 14:57:52 +00:00
Gurzau Raul
ce0d647947 Backed out changeset 6f6886c89554 (bug 1481819) for failing at url-classifier/tests/mochitest/test_classified_annotations.html 2018-09-14 21:49:04 +03:00
Dimi Lee
459daf3a1b Bug 1481819 - Make Safe Browsing directory-based file copy interruptible. r=francois
A directory-based file copy without checkpoint to abort may take lots
of time to finish. This cause an issue that if firefox is shutting down
and try to close an ongoing update thread, main-thread may be blocked
for a long time.

This patch adds a wrapper for copying an entire directory, within this
wrapper, we use file-based copy and add checkpoints to let update thread
has a chance to abort.

Differential Revision: https://phabricator.services.mozilla.com/D3414
2018-09-14 15:33:24 +00:00
Liang-Heng Chen
d670c8778c Bug 1477046 - Part 2: Add FastBlock iframe tests; r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D4770
2018-09-13 21:30:39 +00:00
Liang-Heng Chen
7d7bee3e1e Bug 1477046 - Part 1: Add basic FastBlock automation tests; r=mayhemer
Basic parts of FastBlock tests, no iframe/xhr tests in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D4655
2018-09-13 21:27:54 +00:00
Andreea Pavel
11db669fba Backed out changeset d965284aca14 (bug 1477046) for failing toolkit/components/url-classifier/tests/mochitest/test_fastblock_bug1477046.htm 2018-09-13 19:31:32 +03:00
Liang-Heng Chen
de14d53f95 Bug 1477046 - Part 1: Add basic FastBlock automation tests; r=mayhemer
Basic parts of FastBlock tests, no iframe/xhr tests in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D4655
2018-09-13 15:07:07 +00:00
Andreea Pavel
4016718d69 Backed out 2 changesets (bug 1477046) for failing eslint on a CLOSED TREE
Backed out changeset dcbe562ce87a (bug 1477046)
Backed out changeset 757bbd2e3176 (bug 1477046)
2018-09-13 15:22:19 +03:00
Liang-Heng Chen
6491b53ab8 Bug 1477046 - Part 2: Add FastBlock iframe tests; r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D4770
2018-09-13 09:06:17 +00:00
Liang-Heng Chen
dd5c328c0a Bug 1477046 - Part 1: Add basic FastBlock automation tests; r=mayhemer
Basic parts of FastBlock tests, no iframe/xhr tests in this patch.

Differential Revision: https://phabricator.services.mozilla.com/D4655
2018-09-13 12:03:41 +00:00
Francois Marier
225086a87e Bug 1441345 - Force the use of the Linux phishing list on Android. r=dimi
Reviewers: dimi

Reviewed By: dimi

Subscribers: dveditz, francois, dimi

Bug #: 1441345

Differential Revision: https://phabricator.services.mozilla.com/D5479
2018-09-12 18:07:26 +03:00