Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class
Summary: Make possible to better use ResourceError in FrameLoaderClientQt class
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Antonio Gomes
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-25 04:44 PDT by Antonio Gomes
Modified: 2009-08-25 11:03 PDT (History)
2 users (show)

See Also:


Attachments
patch 0.1 - replace m_loadSucceeded by m_loadError (4.89 KB, patch)
2009-08-25 05:05 PDT, Antonio Gomes
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Gomes 2009-08-25 04:44:27 PDT
currently we have only a bool class member that keeps track if the page has been successfuly loaded or not. see below:

(...)
     bool m_loadSucceeded;
(...)

In practical terms, it is fired together with loadFinished(bool success).

For a better use of error resources provided by WebCore, I would like to propose instead of have this single bool flag indicating a successful load, we to keep track of the whole ResourceError object that is passed in for FrameLoaderClientQt by WebCore, and that way we would be holding more information, including possibly the errorCode, the failing url, and so ...

the attached patch replaces the use of 'bool m_loadSucceeded' by  a 'ResourceError m_loadError' , although API is not changed (yet): we keep emiting the "bool success" w/ loadFinished signal.

it also makes requestedUrl method to behavior more accurately, so this method body is also updated accordingly. all unit tests passed.
Comment 1 Antonio Gomes 2009-08-25 05:05:13 PDT
Created attachment 38542 [details]
patch 0.1 - replace m_loadSucceeded by m_loadError
Comment 2 Antonio Gomes 2009-08-25 11:03:24 PDT
Comment on attachment 38542 [details]
patch 0.1 - replace m_loadSucceeded by m_loadError

landed in r47746

clearing r+ flag