[webkit-reviews] review denied: [Bug 45231] [Qt] Update NetworkAccessManager in Qt FrameNetworkingContext : [Attachment 66586] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Sep 4 12:29:10 PDT 2010


Kenneth Rohde Christiansen <kenneth at webkit.org> has denied Diego Gonzalez
<diegohcg at webkit.org>'s request for review:
Bug 45231: [Qt] Update NetworkAccessManager in Qt FrameNetworkingContext
https://bugs.webkit.org/show_bug.cgi?id=45231

Attachment 66586: Patch
https://bugs.webkit.org/attachment.cgi?id=66586&action=review

------- Additional Comments from Kenneth Rohde Christiansen
<kenneth at webkit.org>
> From 08ee72aae848a76e1ebd473cde1e5802062653b4 Mon Sep 17 00:00:00 2001
> From: Diego Gonzalez <diegohcg at 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 at 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 at 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.


More information about the webkit-reviews mailing list