Closed Bug 1556396 Opened 6 years ago Closed 4 months ago

prevent storing favicons for unsupported protocols

Categories

(Toolkit :: Places, defect, P3)

defect
Points:
3

Tracking

()

RESOLVED FIXED
133 Branch
Tracking Status
firefox69 --- wontfix
firefox133 --- fixed

People

(Reporter: mak, Assigned: yazan)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [favicons-2024][sng])

User Story

See https://bugzilla.mozilla.org/show_bug.cgi?id=1556396#c2

Attachments

(1 file, 1 obsolete file)

Looking at some favicons.sqlite dbs, I noticed a bunch of icons assigned to about: and file: urls, that should not be necessary, and are very likely bogus.
The about icons may be result of our "smart" assignment of icons to bookmarks. file:// icons should not be stored, afaict (TBD)

Component: Bookmarks & History → Places
Product: Firefox → Toolkit
Severity: normal → S3
Blocks: 1899218
Whiteboard: [favicons-2024]
Whiteboard: [favicons-2024] → [favicons-2024][sng]
Points: 5 → 3
User Story: (updated)
User Story: (updated)
Assignee: nobody → yalmacki
Status: NEW → ASSIGNED

Rethinking about it, there's existing use cases to store favicons for about or file pages.
For example a user may save websites and then bookmark the file: URL, then use the icons to more easily distinguish bookmarks.
So let's convert this into a defensive mechanism where we only allow storing icons for http, http, file, about.

Summary: Investigate favicons assigned to about: or file: pages → prevent storing favicons for unsupported protocols
User Story: (updated)
Attachment #9423214 - Attachment is obsolete: true
Pushed by yalmacki@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/b4ed5a7724f9 Prevent icons assigned to unsupported protocol page URLs from being saved to db. r=mak,places-reviewers
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 133 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: