Closed Bug 430792 Opened 17 years ago Closed 17 years ago

Site's favicon is replaced if browser error page is shown

Categories

(Firefox :: Bookmarks & History, defect, P3)

defect

Tracking

()

VERIFIED FIXED
Firefox 3

People

(Reporter: stevee, Assigned: ehsan.akhgari)

References

()

Details

(Keywords: dev-doc-complete, polish, regression)

Attachments

(3 files)

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9pre) Gecko/2008042502 Minefield/3.0pre ID:2008042502 1. Bookmark a page that has a favicon (eg: www.mozilla.org ). Observe that your bookmark has the dinosaur favicon next to it. 2. Unplug your network cable 3. Click on the bookmark Expected: - You get taken to a Firefox error page, and the bookmark's favicon stays as the dinosaur Actual: - You get taken to a Firefox error page, but the bookmark's favicon changes to the yellow /!\ icon from the error page. This might be a dupe of bug 350440.
This could even be a regression from bug 429721 - IIRC data favicons aren't stored in database but chrome ones are. http://lxr.mozilla.org/seamonkey/source/toolkit/components/places/src/nsFaviconService.cpp#459
Depends on: 429721
Keywords: regression
OS: Windows XP → All
Hardware: PC → All
Assignee: nobody → ehsan.akhgari
Status: NEW → ASSIGNED
Nominating as blocking, because this causes the favicon on the users' bookmarks to change inadvertently, especially for users on slow dial-up connections who may get network related errors often. The fix is straightforward, and a patch is coming up. This should at least pick up wanted-firefox3.
Flags: blocking-firefox3?
Attached patch Patch (v1)Splinter Review
Simply check for the URI of the error page favicons instead of blacklisting all data: URI favicons. A comment is added to netError.xhtml to keep the favicon used there in sync with the one used in Places.
Attachment #317840 - Flags: review?
Attachment #317840 - Flags: review? → review?(dietrich)
Whiteboard: [has patch][needs review dietrich]
Flags: wanted-firefox3+
Flags: blocking-firefox3?
Flags: blocking-firefox3-
Dietrich: will you be able to review this in time for RC1?
This is really annoying for pages which don't have favicons, because you are forever stuck with them being the error favicon.
Blocks: 429721
No longer depends on: 429721
Comment on attachment 317840 [details] [diff] [review] Patch (v1) Trying to get a review from Seth...
Attachment #317840 - Flags: review?(dietrich) → review?(seth)
Comment on attachment 317840 [details] [diff] [review] Patch (v1) forwarding your review request on to dietrich.
Attachment #317840 - Flags: review?(seth) → review?(dietrich)
Ehsan, apologies for not responding sooner to your request for review. However, this was marked blocking- by the release drivers, so is not at the top of my priority list. I'll get to it as soon as I can.
Thanks. The haste is because the problem it would cause for a lot of users if RC1 ships without having this fixed. Anyway I understand that there are more serious stuff for you to work on, so I appreciate your review on this when you can. :-)
After getting set to the error page icon, if the network connection is restored and the user browses back, the favicon is properly updated right? If that's the case then I still think that this doesn't block. While I understand that it's bad for pages without favicons, that's a smaller set of sites and will affect fewer users IMO. If that's not the case, then this should be renominated for blocking.
(In reply to comment #12) > After getting set to the error page icon, if the network connection is restored > and the user browses back, the favicon is properly updated right? Only if the page *has* a favicon, otherwise the new incorrect warning favicon is going to stay there forever. See comment 5. > If that's the case then I still think that this doesn't block. While I > understand that it's bad for pages without favicons, that's a smaller set of > sites and will affect fewer users IMO. > > If that's not the case, then this should be renominated for blocking. Renominating for blocking as per comment 5 and 12.
Flags: blocking-firefox3- → blocking-firefox3?
I read comment 5, did you read comment 12? I said that if this only affects pages without favicons, then I don't think it blocks. Wanted, not blocking.
Flags: blocking-firefox3? → blocking-firefox3-
(In reply to comment #14) > I read comment 5, did you read comment 12? I said that if this only affects > pages without favicons, then I don't think it blocks. Wanted, not blocking. Oops, sorry; I misread comment 12. Gotta get some sleep... Sorry for the bugspam.
Comment on attachment 317840 [details] [diff] [review] Patch (v1) r=me, thanks
Attachment #317840 - Flags: review?(dietrich) → review+
A problem I've come across, is if a site's favicon gets input via javascript then it isn't updated in the bookmarks and the error favicon stays there forever. Given this bug will make that invalid, should I make a new bug or just leave it as another reason to get this fixed?
Comment on attachment 317840 [details] [diff] [review] Patch (v1) This is an annoying bug, with a relatively simple fix. Requesting approval. I hope we can get this landed for RC1.
Attachment #317840 - Flags: approval1.9?
(In reply to comment #17) > A problem I've come across, is if a site's favicon gets input via javascript > then it isn't updated in the bookmarks and the error favicon stays there > forever. > > Given this bug will make that invalid, should I make a new bug or just leave it > as another reason to get this fixed? I think that is a separate problem. It would be good if you can file a new bug with a test case (or at least, a demo site which exhibits the problem).
Whiteboard: [has patch][needs review dietrich] → [has patch][has review][needs approval]
Comment on attachment 317840 [details] [diff] [review] Patch (v1) a1.9=beltzner
Attachment #317840 - Flags: approval1.9? → approval1.9+
Keywords: checkin-needed
Whiteboard: [has patch][has review][needs approval] → [has patch][has review][has approval]
Checking in docshell/resources/content/netError.xhtml; /cvsroot/mozilla/docshell/resources/content/netError.xhtml,v <-- netError.xhtml new revision: 1.32; previous revision: 1.31 done Checking in toolkit/components/places/src/nsFaviconService.cpp; /cvsroot/mozilla/toolkit/components/places/src/nsFaviconService.cpp,v <-- nsFaviconService.cpp new revision: 1.26; previous revision: 1.25 done Checking in toolkit/components/places/src/nsFaviconService.h; /cvsroot/mozilla/toolkit/components/places/src/nsFaviconService.h,v <-- nsFaviconService.h new revision: 1.11; previous revision: 1.10 done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Priority: -- → P3
Resolution: --- → FIXED
Whiteboard: [has patch][has review][has approval]
Target Milestone: --- → Firefox 3
Comment on attachment 317840 [details] [diff] [review] Patch (v1) If I read this correctly, you have overlooked the idl file; The sentence at http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/toolkit/components/places/public/nsIFaviconService.idl&rev=1.6&mark=84#80 needs to be removed. Of course then the on-line documentation will need updating so need to add 'dev-doc-needed' to the keywords.
Attached patch Comment fixSplinter Review
(In reply to comment #22) > (From update of attachment 317840 [details] [diff] [review] [details]) > If I read this correctly, you have overlooked the idl file; The sentence at > > http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/toolkit/components/places/public/nsIFaviconService.idl&rev=1.6&mark=84#80 > > needs to be removed. You're right. Here is a trivial patch to fix the comments. Requesting review (shouldn't take more than a couple of seconds!) :-)
Attachment #319941 - Flags: review?
Attachment #319941 - Flags: review? → review?(dietrich)
(In reply to comment #22) > Of course then the on-line documentation will need > updating so need to add 'dev-doc-needed' to the keywords. I did the documentation update: <http://developer.mozilla.org/en/docs/index.php?title=nsIFaviconService&diff=71183&oldid=60771>
Attachment #319941 - Flags: review?(dietrich) → review+
comment change checked in Checking in toolkit/components/places/public/nsIFaviconService.idl; /cvsroot/mozilla/toolkit/components/places/public/nsIFaviconService.idl,v <-- nsIFaviconService.idl new revision: 1.8; previous revision: 1.7 done
I haven't been following this too closely, but though this may be fixed in places, I'm seeing the exact same bug in RSS feeds.
Can you provide a set of steps to reproduce?
Attached image screenshot
{Build ID: 2008051003} new profile 1. go and bookmark this. ftp://ftp.mozilla.org/pub/ 2. favicon is firefox's ftp icon. This is not Site/default's favicon.
(In reply to comment #30) > Created an attachment (id=320373) [details] > screenshot > > {Build ID: 2008051003} new profile > > 1. go and bookmark this. ftp://ftp.mozilla.org/pub/ > 2. favicon is firefox's ftp icon. This is not Site/default's favicon. FTP sites do not have favicons, as we know them from HTTP/HTTPS sites. Therefore, this behavior is expected.
(In reply to comment #31) > FTP sites do not have favicons, as we know them from HTTP/HTTPS sites. > Therefore, this behavior is expected. Well... Do you say this? "On Bookmarks, FTP and local directory use Firefox's special favicon. These not use Firefox default bookmark favicon. This is not a bug. This is Firefox 3 new feature."
(In reply to comment #32) > (In reply to comment #31) > > FTP sites do not have favicons, as we know them from HTTP/HTTPS sites. > > Therefore, this behavior is expected. > > Well... Do you say this? > > "On Bookmarks, FTP and local directory use Firefox's special favicon. > These not use Firefox default bookmark favicon. > This is not a bug. This is Firefox 3 new feature." Can you file a follow up bug for this?
(In reply to comment #33) > Can you file a follow up bug for this? No I cannot. I leave it to you.
(In reply to comment #29) > Can you provide a set of steps to reproduce? > Nevermind on mine - I cannot recreate the issue, although I have a few bookmarks who's favicons were previously changed to the error icon and will not revert. I cannot, however, seem to get any to change now.
verified with: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9) Gecko/2008051202 Firefox/3.0
Status: RESOLVED → VERIFIED
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h". In Thunderbird 3.0b, you do that as follows: Tools | Message Filters Make sure the correct account is selected. Click "New" Conditions: Body contains places-to-b-and-h Change the action to "Delete Message". Select "Manually Run" from the dropdown at the top. Click OK. Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter. Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: