Changeset 92551 in webkit
- Timestamp:
- Aug 6, 2011 8:57:09 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r92549 r92551 1 2011-08-06 Rafael Brandao <rafael.lobo@openbossa.org> 2 3 REGRESSION (r91540): Favicons are not loaded 4 https://bugs.webkit.org/show_bug.cgi?id=65692 5 6 Reviewed by Darin Adler. 7 8 The policy that evaluates whether a page can have icon or not should not 9 need to be reimplemented each time a new IconDatabaseBase is derived, 10 so it was moved to WebCore's scope. 11 12 * loader/icon/IconController.cpp: 13 (WebCore::IconController::startLoader): 14 * loader/icon/IconDatabase.cpp: 15 * loader/icon/IconDatabase.h: 16 * loader/icon/IconDatabaseBase.cpp: 17 (WebCore::documentCanHaveIcon): 18 * loader/icon/IconDatabaseBase.h: 19 1 20 2011-08-06 Kenichi Ishibashi <bashi@chromium.org> 2 21 -
trunk/Source/WebCore/loader/icon/IconController.cpp
r91540 r92551 115 115 116 116 ASSERT(!m_frame->tree()->parent()); 117 if (! iconDatabase().documentCanHaveIcon(m_frame->document()->url()))117 if (!documentCanHaveIcon(m_frame->document()->url())) 118 118 return; 119 119 -
trunk/Source/WebCore/loader/icon/IconDatabase.cpp
r92254 r92551 98 98 static IconDatabaseClient* defaultClient = new DefaultIconDatabaseClient(); 99 99 return defaultClient; 100 }101 102 bool IconDatabase::documentCanHaveIcon(const String& documentURL) const103 {104 return !documentURL.isEmpty() && !protocolIs(documentURL, "about");105 100 } 106 101 -
trunk/Source/WebCore/loader/icon/IconDatabase.h
r91540 r92551 137 137 virtual bool isOpen() const; 138 138 virtual String databasePath() const; 139 virtual bool documentCanHaveIcon(const String& documentURL) const;140 139 static String defaultDatabaseFilename(); 141 140 -
trunk/Source/WebCore/loader/icon/IconDatabaseBase.cpp
r81824 r92551 28 28 29 29 #include "IconDatabase.h" 30 #include "KURL.h" 30 31 #include "SharedBuffer.h" 31 32 … … 67 68 } 68 69 70 bool documentCanHaveIcon(const String& documentURL) 71 { 72 return !documentURL.isEmpty() && !protocolIs(documentURL, "about"); 73 } 74 69 75 } // namespace WebCore -
trunk/Source/WebCore/loader/icon/IconDatabaseBase.h
r91540 r92551 166 166 // Used internally by WebCore 167 167 virtual bool isEnabled() const { return false; } 168 virtual bool documentCanHaveIcon(const String&) const { return false; }169 168 170 169 virtual void retainIconForPageURL(const String&) { } … … 217 216 IconDatabaseBase& iconDatabase(); 218 217 void setGlobalIconDatabase(IconDatabaseBase*); 218 bool documentCanHaveIcon(const String&); 219 219 220 220 } // namespace WebCore
Note: See TracChangeset
for help on using the changeset viewer.