[EFL] Do not lose message flags when converting to/from Soup Requests/Responses
authorkubo@profusion.mobi <kubo@profusion.mobi@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Dec 2011 19:29:44 +0000 (19:29 +0000)
committerkubo@profusion.mobi <kubo@profusion.mobi@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 Dec 2011 19:29:44 +0000 (19:29 +0000)
https://bugs.webkit.org/show_bug.cgi?id=73924

Reviewed by Gustavo Noronha Silva.

Apply the same change added to the GTK+ port in r55086 to prevent
soup message flags from being lost by updating the request flags when
a response is received.

* WebCoreSupport/FrameLoaderClientEfl.cpp:
(WebCore::FrameLoaderClientEfl::dispatchDidReceiveResponse):

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

Source/WebKit/efl/ChangeLog
Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp

index 5d89d125e3f2183ef2c7cd861592c945596aa327..1c2a9b07df0490dfff79cd0d4addf4e9a29c22c5 100755 (executable)
@@ -1,3 +1,17 @@
+2011-12-05  Raphael Kubo da Costa  <kubo@profusion.mobi>
+
+        [EFL] Do not lose message flags when converting to/from Soup Requests/Responses
+        https://bugs.webkit.org/show_bug.cgi?id=73924
+
+        Reviewed by Gustavo Noronha Silva.
+
+        Apply the same change added to the GTK+ port in r55086 to prevent
+        soup message flags from being lost by updating the request flags when
+        a response is received.
+
+        * WebCoreSupport/FrameLoaderClientEfl.cpp:
+        (WebCore::FrameLoaderClientEfl::dispatchDidReceiveResponse):
+
 2011-12-04  Kangil Han  <kangil.han@samsung.com>
 
         [EFL] Fix broken UTF-8 characters issue on editor command.
index 4de1cecef09e604e94c306c64939ef54cb7d3af9..6885e82fcceb8c20e389c515d7cbb1c72b0d82eb 100644 (file)
@@ -230,8 +230,16 @@ void FrameLoaderClientEfl::frameLoaderDestroyed()
     delete this;
 }
 
-void FrameLoaderClientEfl::dispatchDidReceiveResponse(DocumentLoader*, unsigned long, const ResourceResponse& response)
-{
+void FrameLoaderClientEfl::dispatchDidReceiveResponse(DocumentLoader* loader, unsigned long, const ResourceResponse& response)
+{
+#if USE(SOUP)
+    // Update our knowledge of request soup flags - some are only set
+    // after the request is done.
+    loader->request().setSoupMessageFlags(response.soupMessageFlags());
+#else
+    UNUSED_PARAM(loader);
+#endif
+
     m_response = response;
 }