Closed Bug 1080016 Opened 11 years ago Closed 11 years ago

Display favicons properly after interrupted page loads

Categories

(Firefox for Android Graveyard :: Favicon Handling, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 35

People

(Reporter: capella, Assigned: capella)

Details

Attachments

(1 file)

This fixes a small display issue. STR to observe the issue is simple: In Settings -> Customize -> Tabs, set to "Don't restore after quitting" Swipe to the History Panel, tap "Clear browsing history" and verify "Ok". Swipe back to Bookmarks and tap an item for a slow loading page. (I use "http://www.popehat.com/") Quickly navigate to Android "Recent Apps" and swipe shut Firefox. Re-open Firefox and observe that the favicon for that bookmark is now displayed generically. At start of page load, we're writing a new history item for the page without a favicon_id, and closing the app prevents us from updating it onTabChanged(LINK_FAVICON) at completion of page load. This routine just needs to be a little smarter so it falls through and returns the still-available favicon from the Bookmark item.
Attachment #8501903 - Flags: review?(chriskitching)
Comment on attachment 8501903 [details] [diff] [review] bookmarkFaviconBug.diff Review of attachment 8501903 [details] [diff] [review]: ----------------------------------------------------------------- Good catch. We should've spotted this sooner!
Attachment #8501903 - Flags: review?(chriskitching) → review+
Caught on the release train :) try push https://tbpl.mozilla.org/?tree=Try&rev=68b57daf8209
Assignee: nobody → markcapella
Status: NEW → ASSIGNED
(In reply to Mark Capella [:capella] from comment #2) > Caught on the release train :) > try push https://tbpl.mozilla.org/?tree=Try&rev=68b57daf8209 Probably. Going to need to poke an actual peer before I can land it. rnewman: I can haz land?
Flags: needinfo?(rnewman)
Use c.isNull(index) instead of (or as well as) relying on getString(index) returning null. Then you can land :)
Flags: needinfo?(rnewman)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 35
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: