Changeset 57036 in webkit
- Timestamp:
- Apr 2, 2010 5:16:39 PM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r57034 r57036 1 2010-04-02 Eric Uhrhane <ericu@chromium.org> 2 3 Reviewed by Brady Eidson. 4 5 window.openDatabase() always fails for new databases when using WebKit nightly with Safari 4.0.5. This is caused by a SecurityOrigin pointer comparison that I should have switched to be a hash comparison in r56293 [bug 34991]. 6 https://bugs.webkit.org/show_bug.cgi?id=36671 7 8 No new tests. Requires testing on Safari on Windows. 9 10 * storage/DatabaseTracker.cpp: 11 (WebCore::DatabaseTracker::fullPathForDatabaseNoLock): Convert a pointer comparison to use SecurityOriginHash::hash() instead, and move it to the end of the clause for speed in the easy-out case. 12 1 13 2010-04-02 Michael Nordman <michaeln@google.com> 2 14 -
trunk/WebCore/storage/DatabaseTracker.cpp
r56954 r57036 235 235 236 236 for (HashSet<ProposedDatabase*>::iterator iter = m_proposedDatabases.begin(); iter != m_proposedDatabases.end(); ++iter) 237 if ((*iter)-> first == origin && (*iter)->second.name() == name)237 if ((*iter)->second.name() == name && SecurityOriginHash::hash((*iter)->first) == SecurityOriginHash::hash(origin)) 238 238 return String(); 239 239
Note: See TracChangeset
for help on using the changeset viewer.