Closed Bug 1514133 Opened 6 years ago Closed 6 years ago

Port login-reputation classification to nsIUrlClassifierFeature

Categories

(Toolkit :: Safe Browsing, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla66
Tracking Status
firefox66 --- fixed

People

(Reporter: baku, Assigned: baku)

References

Details

Attachments

(1 file, 1 obsolete file)

This is part of bug 1513046.
Status: NEW → ASSIGNED
Whiteboard: [domsecurity-backlog1] [domsecurity-active]
Attached patch feature_5_loginReputation.patch (obsolete) (deleted) — Splinter Review
Attachment #9031348 - Flags: review?(dlee)
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-
We used to put login reputation changes in component SafeBrowsing
Component: DOM: Security → Safe Browsing
Priority: -- → P2
Product: Core → Toolkit
Whiteboard: [domsecurity-backlog1] [domsecurity-active]
Attached patch feature_5_loginReputation.patch (deleted) — Splinter Review
Wrong patch.
Attachment #9031348 - Attachment is obsolete: true
Attachment #9031400 - Flags: review?(dlee)
Blocks: 1514202
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
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.

Attachment

General

Created:
Updated:
Size: