WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
28708
Make possible to better use ResourceError in FrameLoaderClientQt class
https://bugs.webkit.org/show_bug.cgi?id=28708
Summary
Make possible to better use ResourceError in FrameLoaderClientQt class
Antonio Gomes
Reported
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.
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
View All
Add attachment
proposed patch, testcase, etc.
Antonio Gomes
Comment 1
2009-08-25 05:05:13 PDT
Created
attachment 38542
[details]
patch 0.1 - replace m_loadSucceeded by m_loadError
Antonio Gomes
Comment 2
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
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug