Closed
Bug 1161630
Opened 10 years ago
Closed 10 years ago
Don't blindly delete all favicons
Categories
(Firefox for iOS :: Data Storage, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
fxios | + | --- |
People
(Reporter: rnewman, Assigned: wesj)
References
Details
Attachments
(1 file)
FaviconsTable.delete just deletes all favicons. Presumably we don't want to do this all the time: we want to delete icons that *aren't being used* by faviconSites or bookmarks.
Updated•10 years ago
|
tracking-fennec: --- → ?
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → wjohnston
tracking-fennec: ? → +
Updated•10 years ago
|
tracking-fxios:
--- → +
Assignee | ||
Comment 1•10 years ago
|
||
This adds a method to the faviconTable for removing any unused favicons. It calls it when history or bookmarks are removed. Refactored bookmarks a little bit to make that happen (but not all the way it needs to go...)
Attachment #8620569 -
Flags: review?(rnewman)
Assignee | ||
Comment 2•10 years ago
|
||
Hmm... This is actually going to be a bit messy when this is more sync-aware. All our beautiful Cascades go away? I wonder if we'd be better to move these deleted entries to a different table instead of marking them the way we do.
Reporter | ||
Comment 3•10 years ago
|
||
(In reply to Wesley Johnston (:wesj) from comment #2)
> Hmm... This is actually going to be a bit messy when this is more
> sync-aware. All our beautiful Cascades go away?
When a user doesn't have an account, we can directly delete, rather than marking. In that situation the cascades will apply.
And when they do have an account, and we're marking history with is_deleted, we're at least immediately discarding visits… which will cascade to visit_sites, which will orphan favicons, and this patch will work.
(And then a few minutes later we'll sync, and the history rows will be deleted.)
We don't sync favicons, so nothing to worry about on that front yet.
Reporter | ||
Comment 4•10 years ago
|
||
Comment on attachment 8620569 [details] [review]
PR https://github.com/mozilla/firefox-ios/pull/585
A few questions on the PR.
Attachment #8620569 -
Flags: review?(rnewman) → feedback+
Assignee | ||
Comment 5•10 years ago
|
||
Comment on attachment 8620569 [details] [review]
PR https://github.com/mozilla/firefox-ios/pull/585
Updated with a run([(String: Args?)]) method.
Attachment #8620569 -
Flags: feedback+ → review?(rnewman)
Reporter | ||
Comment 6•10 years ago
|
||
Sorry, Wes -- could you rebase this?
Status: NEW → ASSIGNED
Flags: needinfo?(wjohnston)
Assignee | ||
Comment 7•10 years ago
|
||
Rebased. I know there's another bug being worked on for this somewhere.... I'll find and try to close it (gently).
tracking-fennec: + → ---
Flags: needinfo?(wjohnston) → needinfo?(rnewman)
Reporter | ||
Comment 9•10 years ago
|
||
Comment on attachment 8620569 [details] [review]
PR https://github.com/mozilla/firefox-ios/pull/585
r+ with comments. Pretty much just wanting to make sure we're thread-happy and aren't doing two big subqueries and a table walk each time the user does a delete.
Flags: needinfo?(rnewman)
Attachment #8620569 -
Flags: review?(rnewman) → review+
Assignee | ||
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 10•10 years ago
|
||
Assignee | ||
Comment 11•10 years ago
|
||
Test updates: https://github.com/mozilla/firefox-ios/pull/726
You need to log in
before you can comment on or make changes to this bug.
Description
•