<rdar://problem/5436617> Favicons sometimes don't show up even when they are
authoradachan <adachan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Oct 2007 16:52:03 +0000 (16:52 +0000)
committeradachan <adachan@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 5 Oct 2007 16:52:03 +0000 (16:52 +0000)
commit72c38cbd29f02ff9c979fb5af6b80d7e12a57f54
tree241b9d88733ec026f10b0ea3b913d8f2993cc97f
parent95b63385b7bfdc9e1ba3cf968d5347a8f1754fa2
    <rdar://problem/5436617> Favicons sometimes don't show up even when they are
        in the database
        - A client can try to retain an icon for a page before the database is actually
        opened.  Since isOpened() is not a requirement to retain an icon, remove the check
        for that.  Instead, we'll check to make sure whether this database is enabled
        before proceeding.

        Reviewed by Brady.

        * loader/icon/IconDatabase.cpp:
        (WebCore::IconDatabase::retainIconForPageURL):
        (WebCore::IconDatabase::releaseIconForPageURL): only check isOpen() before we
        schedule for a sync.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/loader/icon/IconDatabase.cpp