Changeset 57036 in webkit


Ignore:
Timestamp:
Apr 2, 2010 5:16:39 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-02 Eric Uhrhane <ericu@chromium.org>

Reviewed by Brady Eidson.

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].
https://bugs.webkit.org/show_bug.cgi?id=36671

No new tests. Requires testing on Safari on Windows.

  • storage/DatabaseTracker.cpp: (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.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r57034 r57036  
     12010-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
    1132010-04-02  Michael Nordman  <michaeln@google.com>
    214
  • trunk/WebCore/storage/DatabaseTracker.cpp

    r56954 r57036  
    235235
    236236    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))
    238238            return String();
    239239
Note: See TracChangeset for help on using the changeset viewer.