[soup] Initialize m_soupFlags in all ResourceResponse constructors.
authorkubo@profusion.mobi <kubo@profusion.mobi@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jan 2012 18:05:41 +0000 (18:05 +0000)
committerkubo@profusion.mobi <kubo@profusion.mobi@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Jan 2012 18:05:41 +0000 (18:05 +0000)
Rubber-stamped by Gustavo Noronha Silva.

m_soupFlags was being initialized in two of the three ResourceResponse
constructors, causing some trouble in
FrameLoaderClient::dispatchDidReceiveResponse (ports which use
ResourceRequest::setSoupMessageFlags with the response's unitialized
flags).

* platform/network/soup/ResourceResponse.h:
(WebCore::ResourceResponse::ResourceResponse):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@104948 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/network/soup/ResourceResponse.h

index 4de4ed34554902f1eec2b5338406f2cacafae341..0c2ba060381f9fac511306b9d48298ac0b286dae 100644 (file)
@@ -1,3 +1,18 @@
+2012-01-13  Raphael Kubo da Costa  <kubo@profusion.mobi>
+
+        [soup] Initialize m_soupFlags in all ResourceResponse constructors.
+
+        Rubber-stamped by Gustavo Noronha Silva.
+
+        m_soupFlags was being initialized in two of the three ResourceResponse
+        constructors, causing some trouble in
+        FrameLoaderClient::dispatchDidReceiveResponse (ports which use
+        ResourceRequest::setSoupMessageFlags with the response's unitialized
+        flags).
+
+        * platform/network/soup/ResourceResponse.h:
+        (WebCore::ResourceResponse::ResourceResponse):
+
 2012-01-13  Alexey Proskuryakov  <ap@apple.com>
 
         CFURLRef to KURL conversion shouldn't turn raw paths into file URLs
index 6ebba8b55a719c8b7b2c4d241ad7e7161e483970..8624c05914e33f037a8823450d99e4da013f275b 100644 (file)
@@ -42,6 +42,7 @@ public:
 
     ResourceResponse(const KURL& url, const String& mimeType, long long expectedLength, const String& textEncodingName, const String& filename)
         : ResourceResponseBase(url, mimeType, expectedLength, textEncodingName, filename)
+        , m_soupFlags(static_cast<SoupMessageFlags>(0))
     {
     }