Closed
Bug 1336909
Opened 9 years ago
Closed 9 years ago
Restrict URLCLASSIFIER_PREFIX_MATCH to profiles that have working V4
Categories
(Toolkit :: Safe Browsing, defect, P2)
Toolkit
Safe Browsing
Tracking
()
RESOLVED
FIXED
mozilla54
| Tracking | Status | |
|---|---|---|
| firefox54 | --- | fixed |
People
(Reporter: francois, Assigned: dimi)
References
Details
Attachments
(2 files)
|
4.18 KB,
patch
|
Details | Diff | Splinter Review | |
|
59 bytes,
text/x-review-board-request
|
francois
:
review+
|
Details |
It's possible that URLCLASSIFIER_PREFIX_MATCH includes matches on machines where V4 is disabled (by the user) or because of a missing Google API key, thereby inflating the difference between V2 and V4.
We should try to only send that probe when we detect that both V2 and V4 are working.
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → dlee
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•9 years ago
|
||
| Comment hidden (mozreview-request) |
| Reporter | ||
Comment 3•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8834769 [details]
Bug 1336909 - Restrict URLCLASSIFIER_PREFIX_MATCH to profiles that have working V4.
https://reviewboard.mozilla.org/r/110612/#review111886
::: toolkit/components/url-classifier/Classifier.cpp:455
(Diff revision 1)
> } else {
> return NS_ERROR_FAILURE;
> }
> }
>
> + // Only record telemetry when both v2 and v4 have data.
Is it possible that we have a database but no lookup cache yet?
(i.e. because we've downloaded the list but we haven't used it in a lookup yet)
::: toolkit/components/url-classifier/LookupCache.cpp:476
(Diff revision 1)
> }
>
> +bool
> +LookupCacheV2::IsEmpty()
> +{
> + bool IsEmpty;
nit: `isEmpty` (lowercase `i`)
::: toolkit/components/url-classifier/LookupCacheV4.cpp:123
(Diff revision 1)
> }
>
> +bool
> +LookupCacheV4::IsEmpty()
> +{
> + bool IsEmpty;
nit: `isEmpty` (lowercase `i`)
::: toolkit/components/url-classifier/LookupCacheV4.cpp:124
(Diff revision 1)
>
> +bool
> +LookupCacheV4::IsEmpty()
> +{
> + bool IsEmpty;
> + mVLPrefixSet->IsEmpty(&IsEmpty);
Do we also need to check the fixed-length prefix set here?
Attachment #8834769 -
Flags: review?(francois)
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 5•9 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8834769 [details]
Bug 1336909 - Restrict URLCLASSIFIER_PREFIX_MATCH to profiles that have working V4.
https://reviewboard.mozilla.org/r/110612/#review111886
> Is it possible that we have a database but no lookup cache yet?
>
> (i.e. because we've downloaded the list but we haven't used it in a lookup yet)
lookup cache contains prefix set(database) and cache(completions).
So as long as we have data in database, we will have lookup cache.
> Do we also need to check the fixed-length prefix set here?
fixed-length prefix set is included in the IsEmpty call of VLPrefixSet.
| Reporter | ||
Comment 6•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8834769 [details]
Bug 1336909 - Restrict URLCLASSIFIER_PREFIX_MATCH to profiles that have working V4.
https://reviewboard.mozilla.org/r/110612/#review111892
Attachment #8834769 -
Flags: review?(francois) → review+
Pushed by fmarier@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2f0968db9234
Restrict URLCLASSIFIER_PREFIX_MATCH to profiles that have working V4. r=francois
Comment 8•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•