[Webkit-unassigned] [Bug 44461] Assertion failure at WebCore/platform/network/CredentialStorage.cpp:85.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 23 18:30:10 PDT 2010


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


Alexey Proskuryakov <ap at webkit.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #65189|review?                     |review+
               Flag|                            |




--- Comment #4 from Alexey Proskuryakov <ap at webkit.org>  2010-08-23 18:30:10 PST ---
(From update of attachment 65189)
> even though multiple slashes are valid in URL

I'm not really sure on the status of this validity. In file paths, multiple slashes always mean the same as a single one, but I think that in URLs, it's up to the server to make a decision. This thought is what has been preventing from fixing this myself.

I guess it's fine for us to do whatever Firefox is doing, and if it normalizes slashes before looking up a directory for stored credentials, so could we. But this patch doesn't quite implement that, as it only removes trailing slashes.

 +        while (index > 0 && directoryURL[index-1] == '/')

There should be spaces around "-".

> +            index--;

There is no practical difference for integer values, but for consistency with iterators, it's best to always use prefix increment and decrement. When the compiler cannot optimize it, postfix variants create temporary copies.

> +    xhr.open("GET", "resources/remember-bad-password//count-failures.php", false);

Ideally, the test would check the response to make sure that mapping doesn't fail (and it should pass in Firefox).

r=me.

-- 
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