Bug 135240 - ResourceErrorBase::compare doesn’t call the right platformCompare override
Summary: ResourceErrorBase::compare doesn’t call the right platformCompare override
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: mitz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-24 10:01 PDT by mitz
Modified: 2014-07-25 09:42 PDT (History)
9 users (show)

See Also:


Attachments
Call ResourceError::platformCompare (1.21 KB, patch)
2014-07-24 21:59 PDT, mitz
no flags Details | Formatted Diff | Diff
Call ResourceError::platformCompare (2.80 KB, patch)
2014-07-24 22:37 PDT, mitz
ap: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2014-07-24 10:01:25 PDT
ResourceErrorBase::compare calls platformCompare. It should call the ResourceError::platformCompare override.
Comment 1 mitz 2014-07-24 21:59:12 PDT
Created attachment 235500 [details]
Call ResourceError::platformCompare
Comment 2 mitz 2014-07-24 22:37:52 PDT
Created attachment 235503 [details]
Call ResourceError::platformCompare
Comment 3 Alexey Proskuryakov 2014-07-24 22:50:00 PDT
Comment on attachment 235503 [details]
Call ResourceError::platformCompare

Do we ever compare errors? What does that even mean? Looking at these methods, I want to delete them, not to fix them.
Comment 4 mitz 2014-07-24 22:55:56 PDT
(In reply to comment #3)
> (From update of attachment 235503 [details])
> Do we ever compare errors?

I don’t see anywhere in WebCore that we do.

> What does that even mean?

Checking whether two errors are the same ;-)

> Looking at these methods, I want to delete them, not to fix them.

Yeah, I’d rather do that if possible.
Comment 5 mitz 2014-07-25 09:42:08 PDT
operator!= turned out to be used in comparing authentication challenges.

Fixed in <http://trac.webkti.org/r171600>.