Closed
Bug 1186077
Opened 9 years ago
Closed 9 years ago
Default favicon (globe) is briefly shown on about:home before updating to favicon
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(firefox43 fixed)
RESOLVED
FIXED
Firefox 43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: mcomella, Assigned: sergej, Mentored)
References
Details
(Whiteboard: [lang=java])
Attachments
(1 file, 1 obsolete file)
3.05 KB,
patch
|
mcomella
:
review+
|
Details | Diff | Splinter Review |
And it looks bad.
Reporter | ||
Updated•9 years ago
|
Mentor: mhaigh
Assignee | ||
Comment 1•9 years ago
|
||
One of the possible solution. Code block in loadFavicon is for performance reasons because PAGE_SHOW message will try to load icon second time. Maybe it's better to move that check there. Help me with this, not sure about possible side effects.
Assignee | ||
Updated•9 years ago
|
Attachment #8638014 -
Flags: review?(mhaigh)
Reporter | ||
Comment 2•9 years ago
|
||
Comment on attachment 8638014 [details] [diff] [review]
Instant icon load
I think I have more context than Martyn, but we'll see who gets to it first. :)
Attachment #8638014 -
Flags: review?(michael.l.comella)
Reporter | ||
Comment 3•9 years ago
|
||
Comment on attachment 8638014 [details] [diff] [review]
Instant icon load
Review of attachment 8638014 [details] [diff] [review]:
-----------------------------------------------------------------
Unfortunately, this patch doesn't seem to work - while the initially logic seemed sound, we load the favicons asynchronously so the flicker will occur. Instead, we should probably conditionally clear the favicon.
Attachment #8638014 -
Flags: review?(michael.l.comella)
Attachment #8638014 -
Flags: review?(mhaigh)
Attachment #8638014 -
Flags: feedback+
Assignee | ||
Comment 4•9 years ago
|
||
Strange, about favicons are always in cache and async loading is not used. You still sees the globe icon? Or we are talking about previous page favicon?
Currently when you enter about:home address you see two icon changes, prev page - globe - search, after the patch it should be prev page - search. Not sure if it possible to change favicon before address bar changes its mode from edit to display.
Reporter | ||
Comment 5•9 years ago
|
||
By the way, you can use the "Need more information from" field to give a user a persistent notification so they'll be more likely to see your comments or questions.
I'll add one for myself and get back to you.
Flags: needinfo?(michael.l.comella)
Reporter | ||
Updated•9 years ago
|
Assignee: nobody → sergej
Flags: needinfo?(michael.l.comella)
Reporter | ||
Comment 6•9 years ago
|
||
Sorry, I didn't mean to clear the flag – are you still working on this Sergej? If so, I'll give you a response.
Flags: needinfo?(sergej)
Reporter | ||
Comment 8•9 years ago
|
||
(In reply to Sergej Kravcenko from comment #4)
> Strange, about favicons are always in cache and async loading is not used.
I could be wrong – I remember doing a little code digging but perhaps I speculated a bit.
> You still sees the globe icon? Or we are talking about previous page favicon?
The globe icon. STR:
1) Open the browser
2) Hit the 3-dot menu
3) Hit "New Tab"
See: https://www.youtube.com/watch?v=P1jrRYH0Fpg&feature=youtu.be
This video is taken on an N4, Android 5.1.
I see this also (but it's harder to tell) when I navigate to mozilla.org (i.e. the top site) and press the new tab button.
Assignee | ||
Comment 9•9 years ago
|
||
Attachment #8638014 -
Attachment is obsolete: true
Attachment #8659217 -
Flags: review?(michael.l.comella)
Reporter | ||
Comment 10•9 years ago
|
||
Comment on attachment 8659217 [details] [diff] [review]
Fix for about:home favicon load
Review of attachment 8659217 [details] [diff] [review]:
-----------------------------------------------------------------
Unfortunately, I don't have my dev machine at the moment so I won't be able to review this until Monday.
However, do you mind explaining a little how this fixes the issue? It's a little hard to see.
Assignee | ||
Comment 11•9 years ago
|
||
Line "tabToSelect.addFavicon(url, Favicons.browserToolbarFaviconSize, "");" adds non existing icon to the tab icon list, which leads to default globe icon in the first round of icon update. Second round of icon update extracts icon from tab url and correct is found in the cache. If we remove this line, correct icon will be taken from cache right away.
Changes in Tab.java required to eliminate some flicker when user changes page address to "about:home" on arbitrary loaded page.
Reporter | ||
Comment 12•9 years ago
|
||
Comment on attachment 8659217 [details] [diff] [review]
Fix for about:home favicon load
Review of attachment 8659217 [details] [diff] [review]:
-----------------------------------------------------------------
Great! Looks good to me!
Thanks Sergej!
Attachment #8659217 -
Flags: review?(michael.l.comella) → review+
Reporter | ||
Comment 14•9 years ago
|
||
Forgot to post try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ef35d96b6411 (all green)
(In reply to Sergej Kravcenko from comment #13)
> Can you commit this?
You can add the "checkin-needed" keyword [1] to get your patch checked in.
[1]: https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/How_to_Submit_a_Patch#Getting_the_patch_checked_into_the_tree
Flags: needinfo?(michael.l.comella) → needinfo?(sergej)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(sergej)
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 15•9 years ago
|
||
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 43
Reporter | ||
Comment 17•9 years ago
|
||
Sergej, if you're interested in more bugs, may I recommend bug 1056031 or bug 1201623?
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•