WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 40353
[Qt] Remove superfluous function calls
https://bugs.webkit.org/show_bug.cgi?id=40353
Summary
[Qt] Remove superfluous function calls
Anders Bakken
Reported
2010-06-09 00:11:59 PDT
[Qt] Remove superfluous function calls
Attachments
Patch
(1.48 KB, patch)
2010-06-09 00:13 PDT
,
Anders Bakken
no flags
Details
Formatted Diff
Diff
Patch
(1.88 KB, patch)
2010-06-14 09:28 PDT
,
Anders Bakken
no flags
Details
Formatted Diff
Diff
Patch
(1.94 KB, patch)
2010-06-14 11:07 PDT
,
Anders Bakken
no flags
Details
Formatted Diff
Diff
Patch
(1.81 KB, patch)
2010-06-14 11:43 PDT
,
Anders Bakken
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Anders Bakken
Comment 1
2010-06-09 00:13:20 PDT
Created
attachment 58217
[details]
Patch
Eric Seidel (no email)
Comment 2
2010-06-12 18:56:55 PDT
Comment on
attachment 58217
[details]
Patch Why are the superfluous? Specifically the second one? Please explain in your ChangeLog.
Csaba Osztrogonác
Comment 3
2010-06-14 07:54:01 PDT
Modifying of QWebFrame::setUrl(...) LGTM. But I'm not convinced if QWebFrame::load(...) is correct, because load is a public API function, not only the setUrl function can call it with absolute URL. But the question is if we would like to apply the first API (binary) change before Qt-4.7.0 release. Kenneth? Simon?
Anders Bakken
Comment 4
2010-06-14 09:28:12 PDT
Created
attachment 58661
[details]
Patch
Anders Bakken
Comment 5
2010-06-14 09:28:49 PDT
New patch with better description of why the calls are superfluous is uploadd.
Kenneth Rohde Christiansen
Comment 6
2010-06-14 09:48:25 PDT
Comment on
attachment 58661
[details]
Patch WebKit/qt/Api/qwebframe.cpp:716 + load(QNetworkRequest(url)); You should add a comment here to why the ensureAbso... is not needed here.
Simon Hausmann
Comment 7
2010-06-14 10:34:15 PDT
Nice change :)
Anders Bakken
Comment 8
2010-06-14 10:38:40 PDT
@Kenneth: You mean an inline comment? E.g. void QWebFrame::load(const QUrl &url) { // No need to call ensureAbsoluteUrl() here since ::load(QNetworkRequest) // will do it. load(QNetworkRequest(url)); } It seems a little un-qt-like to me I have to admit.
Kenneth Rohde Christiansen
Comment 9
2010-06-14 11:03:47 PDT
(In reply to
comment #8
)
> @Kenneth: > > You mean an inline comment? > > E.g. > > void QWebFrame::load(const QUrl &url) > { > // No need to call ensureAbsoluteUrl() here since ::load(QNetworkRequest) > // will do it. > load(QNetworkRequest(url)); > } > > It seems a little un-qt-like to me I have to admit.
Well, not very un-WebKitish anyway. And apparently someone added the ensureAb... before. Something like: // The load() overload ensures that the url is absolute. load(QNetworkRequest(url));
Anders Bakken
Comment 10
2010-06-14 11:07:24 PDT
Created
attachment 58672
[details]
Patch
Csaba Osztrogonác
Comment 11
2010-06-14 11:17:03 PDT
(In reply to
comment #10
)
> Created an attachment (id=58672) [details] > Patch
LGTM, I see why both of them are superfluous. Only a little nit-pick, please remove the unnecessary newline from the end of ChangeLog before landing. (after Kenneth give you an r+ :)
Anders Bakken
Comment 12
2010-06-14 11:43:10 PDT
Created
attachment 58676
[details]
Patch
Csaba Osztrogonác
Comment 13
2010-06-14 11:47:17 PDT
(In reply to
comment #12
)
> Created an attachment (id=58676) [details] > Patch
Kenneth r+ -ed your last patch, just commit it with this minor change. You don't have to wait for r+ again.
Simon Hausmann
Comment 14
2010-07-08 23:48:35 PDT
Comment on
attachment 58676
[details]
Patch r=me Anders, please remember to set cq? if you don't want to land the change yourself.
WebKit Commit Bot
Comment 15
2010-07-09 00:11:29 PDT
Comment on
attachment 58676
[details]
Patch Clearing flags on attachment: 58676 Committed
r62903
: <
http://trac.webkit.org/changeset/62903
>
WebKit Commit Bot
Comment 16
2010-07-09 00:11:35 PDT
All reviewed patches have been landed. Closing bug.
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