WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
45231
[Qt] Update NetworkAccessManager in Qt FrameNetworkingContext
https://bugs.webkit.org/show_bug.cgi?id=45231
Summary
[Qt] Update NetworkAccessManager in Qt FrameNetworkingContext
Diego Gonzalez
Reported
2010-09-04 12:09:31 PDT
Make possible to get the current QNAM when NetwokingContext request it.
Attachments
Patch
(2.10 KB, patch)
2010-09-04 12:15 PDT
,
Diego Gonzalez
kenneth
: review-
Details
Formatted Diff
Diff
Patch
(2.06 KB, patch)
2010-09-06 07:55 PDT
,
Diego Gonzalez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Diego Gonzalez
Comment 1
2010-09-04 12:15:28 PDT
Created
attachment 66586
[details]
Patch
Early Warning System Bot
Comment 2
2010-09-04 12:22:34 PDT
Attachment 66586
[details]
did not build on qt: Build output:
http://queues.webkit.org/results/3914125
Kenneth Rohde Christiansen
Comment 3
2010-09-04 12:24:54 PDT
This should really build on Qt :)
Kenneth Rohde Christiansen
Comment 4
2010-09-04 12:29:10 PDT
Comment on
attachment 66586
[details]
Patch
> From 08ee72aae848a76e1ebd473cde1e5802062653b4 Mon Sep 17 00:00:00 2001 > From: Diego Gonzalez <
diegohcg@webkit.org
> > Date: Sat, 4 Sep 2010 15:12:49 -0400 > Subject: [PATCH] [Qt] Update NetworkAccessManager in Qt FrameNetworkingContext >
https://bugs.webkit.org/show_bug.cgi?id=45231
> > Reviewed by NOBODY (OOPS!). > > Make possible to get the current QNAM when NetwokingContext request it. > > * WebCoreSupport/FrameNetworkingContextQt.cpp: > (WebCore::FrameNetworkingContextQt::networkAccessManager): > --- > WebKit/qt/ChangeLog | 12 ++++++++++++ > .../qt/WebCoreSupport/FrameNetworkingContextQt.cpp | 4 ++++ > 2 files changed, 16 insertions(+), 0 deletions(-) > > diff --git a/WebKit/qt/ChangeLog b/WebKit/qt/ChangeLog > index 8f026a2..f5e4e31 100644 > --- a/WebKit/qt/ChangeLog > +++ b/WebKit/qt/ChangeLog > @@ -1,3 +1,15 @@ > +2010-09-04 Diego Gonzalez <
diegohcg@webkit.org
> > + > + Reviewed by NOBODY (OOPS!). > + > + [Qt] Update NetworkAccessManager in Qt FrameNetworkingContext > +
https://bugs.webkit.org/show_bug.cgi?id=45231
> + > + Make possible to get the current QNAM when NetwokingContext request it. > + > + * WebCoreSupport/FrameNetworkingContextQt.cpp: > + (WebCore::FrameNetworkingContextQt::networkAccessManager): > + > 2010-09-03 Jesus Sanchez-Palencia <
jesus.palencia@openbossa.org
> > > Reviewed by Darin Adler. > diff --git a/WebKit/qt/WebCoreSupport/FrameNetworkingContextQt.cpp b/WebKit/qt/WebCoreSupport/FrameNetworkingContextQt.cpp > index e502e2a..98e9f9a 100644 > --- a/WebKit/qt/WebCoreSupport/FrameNetworkingContextQt.cpp > +++ b/WebKit/qt/WebCoreSupport/FrameNetworkingContextQt.cpp > @@ -23,6 +23,8 @@ > > #include <QNetworkAccessManager> > #include <QObject> > +#include <QWebFrame> > +#include <QWebPage> > > namespace WebCore { > > @@ -45,6 +47,8 @@ QObject* FrameNetworkingContextQt::originatingObject() const > > QNetworkAccessManager* FrameNetworkingContextQt::networkAccessManager() const > { > + if (QWebFrame* webFrame = qobject_cast<QWebFrame*>(m_originatingObject)) > + m_networkAccessManager = webFrame->...
Why not jist return here, and never use m_networkaccessmanager directly? Just call this method instead.
Diego Gonzalez
Comment 5
2010-09-06 07:55:16 PDT
Created
attachment 66645
[details]
Patch
Antonio Gomes
Comment 6
2010-09-06 08:20:02 PDT
Comment on
attachment 66645
[details]
Patch r=me
WebKit Commit Bot
Comment 7
2010-09-06 16:01:47 PDT
Comment on
attachment 66645
[details]
Patch Clearing flags on attachment: 66645 Committed
r66853
: <
http://trac.webkit.org/changeset/66853
>
WebKit Commit Bot
Comment 8
2010-09-06 16:01:52 PDT
All reviewed patches have been landed. Closing bug.
Balazs Kelemen
Comment 9
2010-09-07 01:35:06 PDT
The m_networkingContext member should be removed according to this change, isn't it?
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