Closed
Bug 1347532
Opened 8 years ago
Closed 7 years ago
The page-icon protocol should default to the best size for most UI views
Categories
(Firefox :: Bookmarks & History, defect, P1)
Firefox
Bookmarks & History
Tracking
()
RESOLVED
FIXED
Firefox 58
People
(Reporter: mak, Assigned: mak)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxsearch])
Attachments
(1 file, 1 obsolete file)
The frontend should pass an appropriate #size= hint to fetch favicons, that can be built using PlacesUtils.urlWithSizeRef(window, href, size).
This is not a trivial replacement cause some components, like history views, autocomplete and so on, like to pass out an icon. In some cases (all the cases where we always pass out a page-icon) we could probably remove the dependency on the backend.
Searching for "page-icon:" is probably a first good hint for points that need to be updated.
This old changeset removing -moz-resolution fragment can also be used for finding further references that may need updates:
https://bug1118926.bmoattachments.org/attachment.cgi?id=8668178
Assignee | ||
Updated•8 years ago
|
Priority: P3 → P2
Assignee | ||
Comment 1•7 years ago
|
||
This may improve crispness in some cases.
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Assignee | ||
Comment 3•7 years ago
|
||
Interesting, there's a problem here (thus the test failures). When we add a new icon we clear from the image cache the existing page-icon, but the image cache also stores an eventual ref, and that won't be cleared. Clearing all the possible refs is obviously unfeasible. We could clear just the one for the ui (16px) but that won't cover the issue completely. Or maybe we should just fix bug 1337404, but that won't be nice for UI performance where we show hundreds or thousands of icons. Maybe we should do both long term?
Assignee | ||
Updated•7 years ago
|
Attachment #8874442 -
Flags: review?(standard8)
Assignee | ||
Comment 4•7 years ago
|
||
Timothy, would it be crazy and rejected a patch that ignores ref in generating the imageCacheKey for the page-icon protocol?
Flags: needinfo?(tnikkel)
Assignee | ||
Comment 5•7 years ago
|
||
Even if actually, those could be different images, so it would be wrong for the image cache to return a 16px icon for a 32 px ref... I guess we may need to clear the image cache from the UI code where we know the size ref.
Flags: needinfo?(tnikkel)
Updated•7 years ago
|
Priority: P2 → P1
Assignee | ||
Updated•7 years ago
|
Priority: P1 → P2
Comment 6•7 years ago
|
||
[Tracking Requested - why for this release]:
Seems to be needed to prevent a UI regression in favicons shown in tabstrip, bug 1401777
tracking-firefox57:
--- → ?
Updated•7 years ago
|
Assignee | ||
Comment 7•7 years ago
|
||
(In reply to Daniel Holbert [:dholbert] from comment #6)
> [Tracking Requested - why for this release]:
> Seems to be needed to prevent a UI regression in favicons shown in tabstrip,
> bug 1401777
This is not actually necessary, bug 1401777 can be fixed apart, this bug will only affect bookmarks and similar Places views, and we're ok with that for 57.
tracking-firefox57:
+ → ---
> this bug will only affect bookmarks and similar Places views, and we're ok with that for 57.
It also affects the awesomebar.
Assignee | ||
Comment 10•7 years ago
|
||
the awesomebar is indeed a Places view. Well, most of the UI showing icons go through the same code, but the tabs.
What is fixed is the tabs, all the rest is potentially affected.
Assignee | ||
Comment 12•7 years ago
|
||
Yesterday I was thinking to invert the approach here, rather than adding ref everywhere in the ui and complicate the image cache invalidation, I'd rather add an API to set the page uri protocol default size an let the few consumers needing larger icons to manage that apart.
This should make sense because the most consumers need an icon in the "default" 16*dpi resolution, only a few consumers need very large icons, and those can manage their own needs. Currently the only consumer of big icons is AS, that goes through the API, so it should not be a problem.
Assignee | ||
Updated•7 years ago
|
Summary: Refactor frontend code to pass a size ref to page-icon protocol → The page-icon protocol should default to the best size for most UI views
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8874442 -
Attachment is obsolete: true
Comment 14•7 years ago
|
||
mozreview-review |
Comment on attachment 8919514 [details]
Bug 1347532 - Allow to set a default icon size for the page-icon protocol.
https://reviewboard.mozilla.org/r/190346/#review196318
Looks good. r=Standard8
Attachment #8919514 -
Flags: review?(standard8) → review+
Comment 15•7 years ago
|
||
Pushed by mak77@bonardo.net:
https://hg.mozilla.org/integration/autoland/rev/e38dd8c3f152
Allow to set a default icon size for the page-icon protocol. r=standard8
Comment 16•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 58
You need to log in
before you can comment on or make changes to this bug.
Description
•