Closed
Bug 1514133
Opened 6 years ago
Closed 6 years ago
Port login-reputation classification to nsIUrlClassifierFeature
Categories
(Toolkit :: Safe Browsing, enhancement, P2)
Toolkit
Safe Browsing
Tracking
()
RESOLVED
FIXED
mozilla66
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: baku, Assigned: baku)
References
Details
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
dimi
:
review+
|
Details | Diff | Splinter Review |
This is part of bug 1513046.
Assignee | ||
Updated•6 years ago
|
Status: NEW → ASSIGNED
Whiteboard: [domsecurity-backlog1] [domsecurity-active]
Assignee | ||
Comment 1•6 years ago
|
||
Attachment #9031348 -
Flags: review?(dlee)
Comment 2•6 years ago
|
||
Comment on attachment 9031348 [details] [diff] [review]
feature_5_loginReputation.patch
Review of attachment 9031348 [details] [diff] [review]:
-----------------------------------------------------------------
LoginReputation is default disabled, so always initialize it seems wasteful.
And I think we should also make sure that if the preference is disabled, no one can get that feature.
Do you think it makes sense to do something like this?
nsIUrlClassifierFeature* UrlClassifierFeatureFactory::GetFeatureLoginReputation() {
return UrlClassifierFeatureLoginReputation::MaybeCreate();
}
UrlClassifierFeatureLoginReputation::MaybeCreate() {
if (!StaticPrefs::browser_safebrowsing_passwords_enabled()) {
return nullptr;
}
if (!gFeatureLoginReputation) {
gFeatureLoginReputation = new UrlClassifierFeatureLoginReputation();
gFeatureLoginReputation->InitializePreferences();
}
return gFeatureLoginReputation;
}
::: toolkit/components/reputationservice/LoginReputation.cpp
@@ +126,5 @@
> + }
> +
> + nsTArray<RefPtr<nsIUrlClassifierFeature>> features;
> + features.AppendElement(feature);
> +
The comment is gone?
Attachment #9031348 -
Flags: review?(dlee) → review-
Comment 3•6 years ago
|
||
We used to put login reputation changes in component SafeBrowsing
Component: DOM: Security → Safe Browsing
Priority: -- → P2
Product: Core → Toolkit
Updated•6 years ago
|
Whiteboard: [domsecurity-backlog1] [domsecurity-active]
Assignee | ||
Comment 4•6 years ago
|
||
Wrong patch.
Attachment #9031348 -
Attachment is obsolete: true
Attachment #9031400 -
Flags: review?(dlee)
Comment 5•6 years ago
|
||
Comment on attachment 9031400 [details] [diff] [review]
feature_5_loginReputation.patch
Review of attachment 9031400 [details] [diff] [review]:
-----------------------------------------------------------------
Looks good, thanks for updating this!
Attachment #9031400 -
Flags: review?(dlee) → review+
Pushed by amarchesini@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/b87408f9197d
Port Login-Reputation classification to nsIUrlClassifierFeature, r=dimi
Comment 7•6 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla66
You need to log in
before you can comment on or make changes to this bug.
Description
•