Closed
Bug 1144786
Opened 10 years ago
Closed 10 years ago
create nsIURIClassifier.ClassifyLocalWithTables
Categories
(Core :: DOM: Security, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: mmc, Assigned: mmc)
References
Details
Attachments
(1 file)
(deleted),
patch
|
francois
:
review+
gcp
:
review+
|
Details | Diff | Splinter Review |
This is a slight modification to ClassifyLocal, which takes the list of tables mostly from preferences. This interface will let shumway team (or whomever) check specific tables rather than having to create new error codes (like NS_ERROR_PHISHING_URI) and associate them with table names, which is how the current code runs.
Assignee | ||
Comment 1•10 years ago
|
||
Hey Chris and Josh,
I hear lots of different things about how you are planning to use the safebrowsing API. This interface will be required if you decide to do anything other than use the tracking protection list to decide which flash ads to render with shumway.
I've talked to Francois about this change already. Basically a new interface needs to be added to https://mxr.mozilla.org/mozilla-central/source/netwerk/base/nsIURIClassifier.idl#63 with signature like
string classifyLocalWithTables(nsIPrincipal principal, string commaSeparatedListOfTablesToCheck)
where the return value is a comma-separated list of tables that match. Then https://bug1134284.bugzilla.mozilla.org/attachment.cgi?id=8568312 can just call the new function instead of ClassifyLocal. Please let me know if you have any questions.
Thanks,
Monica
Assignee | ||
Comment 4•10 years ago
|
||
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → mmc
Status: NEW → ASSIGNED
Assignee | ||
Comment 6•10 years ago
|
||
Comment on attachment 8580925 [details] [diff] [review]
Create ClassifyLocalWithTables (
Review of attachment 8580925 [details] [diff] [review]:
-----------------------------------------------------------------
https://treeherder.mozilla.org/#/jobs?repo=try&revision=71220a1f2b26
Attachment #8580925 -
Flags: review?(sworkman)
Attachment #8580925 -
Flags: review?(francois)
Updated•10 years ago
|
Attachment #8580925 -
Flags: review?(francois) → review+
Assignee | ||
Comment 7•10 years ago
|
||
Comment on attachment 8580925 [details] [diff] [review]
Create ClassifyLocalWithTables (
Review of attachment 8580925 [details] [diff] [review]:
-----------------------------------------------------------------
gcp is probably a better reviewer for this if he has time.
Attachment #8580925 -
Flags: review?(gpascutto)
Comment 8•10 years ago
|
||
Comment on attachment 8580925 [details] [diff] [review]
Create ClassifyLocalWithTables (
Review of attachment 8580925 [details] [diff] [review]:
-----------------------------------------------------------------
This looks OK to me but I can't help wondering whether eventually classifyLocalWithTables will really need to be exposed in the API. I don't think you can sanely use it without leaking a lot of stuff out of nsUrlClassifierDBService into other components.
Attachment #8580925 -
Flags: review?(gpascutto) → review+
Comment 9•10 years ago
|
||
Comment on attachment 8580925 [details] [diff] [review]
Create ClassifyLocalWithTables (
Review of attachment 8580925 [details] [diff] [review]:
-----------------------------------------------------------------
Gcp has reviewed these, so I don't think you need my review any more.
Attachment #8580925 -
Flags: review?(sworkman)
Updated•10 years ago
|
Blocks: shumway-m3
Assignee | ||
Comment 10•10 years ago
|
||
Comment 11•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•