Closed Bug 406856 Opened 17 years ago Closed 17 years ago

url-classifier not handling expiration ranges

Categories

(Toolkit :: Safe Browsing, defect, P1)

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: dcamp, Assigned: dcamp)

References

Details

Attachments

(2 files)

Attached patch v1 (deleted) — Splinter Review
Apparently expirations can be ranges of chunks, not just a single chunk. Attached patch handles that case.
Attachment #291512 - Flags: review?(tony)
Flags: blocking-firefox3?
Blocks: 406865
Comment on attachment 291512 [details] [diff] [review] v1 Looks good, thanks for the tests!
Attachment #291512 - Flags: review?(tony) → review+
Comment on attachment 291512 [details] [diff] [review] v1 This is another pretty bad update bug that'd be nice to get in for beta2.
Attachment #291512 - Flags: approval1.9?
Attachment #291512 - Flags: approval1.9? → approval1.9+
Checking in src/nsUrlClassifierDBService.cpp; /cvsroot/mozilla/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp,v <-- nsUrlClassifierDBService.cpp new revision: 1.43; previous revision: 1.42 done Checking in tests/unit/test_dbservice.js; /cvsroot/mozilla/toolkit/components/url-classifier/tests/unit/test_dbservice.js,v <-- test_dbservice.js new revision: 1.8; previous revision: 1.7 done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Flags: in-testsuite+
Flags: blocking-firefox3? → blocking-firefox3+
I'm reopening this bug because the fix is incomplete. Expirations can actually be complete chunk lists, not just chunk ranges.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Attached patch followup patch (deleted) — Splinter Review
This followup patch fixes the expirations to handle complete lists, not just single items or ranges. As a side effect it should significantly reduce allocations when parsing chunk lists (which will let us close 403354).
Attachment #301772 - Flags: review?(tony)
Blocks: 403354
Attachment #301772 - Flags: review?(tony) → review+
Priority: -- → P1
Checking in src/nsUrlClassifierDBService.cpp; /cvsroot/mozilla/toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp,v <-- nsUrlClassifierDBService.cpp new revision: 1.59; previous revision: 1.58 done Checking in tests/unit/test_addsub.js; /cvsroot/mozilla/toolkit/components/url-classifier/tests/unit/test_addsub.js,v <-- test_addsub.js new revision: 1.6; previous revision: 1.5 done
Status: REOPENED → RESOLVED
Closed: 17 years ago17 years ago
Resolution: --- → FIXED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: