[Webkit-unassigned] [Bug 36671] window.openDatabase() always fails for new databases when using WebKit nightly with Safari 4.0.5

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 5 07:04:49 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=36671





--- Comment #17 from Adam Roben (aroben) <aroben at apple.com>  2010-04-05 07:04:48 PST ---
(From update of attachment 52455)
>      for (HashSet<ProposedDatabase*>::iterator iter = m_proposedDatabases.begin(); iter != m_proposedDatabases.end(); ++iter)
> -        if ((*iter)->first == origin && (*iter)->second.name() == name)
> +        if ((*iter)->second.name() == name && SecurityOriginHash::hash((*iter)->first) == SecurityOriginHash::hash(origin))
>              return String();

Having identical hash codes does not guarantee equality. I think you should be
using SecurityOrigin::equal instead.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list