ResourceRequest::setStorageSession should update NSURLRequest as well
authorpsolanki@apple.com <psolanki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Aug 2011 23:05:10 +0000 (23:05 +0000)
committerpsolanki@apple.com <psolanki@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Aug 2011 23:05:10 +0000 (23:05 +0000)
https://bugs.webkit.org/show_bug.cgi?id=66811

Reviewed by Darin Adler.

* platform/network/cf/ResourceRequestCFNet.cpp:
(WebCore::ResourceRequest::setStorageSession): Update the m_nsRequest field as well since we
have a new CFURLRequestRef.

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

Source/WebCore/ChangeLog
Source/WebCore/platform/network/cf/ResourceRequestCFNet.cpp

index 1fb4177..12f92ff 100644 (file)
@@ -1,3 +1,14 @@
+2011-08-23  Pratik Solanki  <psolanki@apple.com>
+
+        ResourceRequest::setStorageSession should update NSURLRequest as well
+        https://bugs.webkit.org/show_bug.cgi?id=66811
+
+        Reviewed by Darin Adler.
+
+        * platform/network/cf/ResourceRequestCFNet.cpp:
+        (WebCore::ResourceRequest::setStorageSession): Update the m_nsRequest field as well since we
+        have a new CFURLRequestRef.
+
 2011-08-23  James Robinson  <jamesr@chromium.org>
 
         [chromium] Remove obsolete child context list from LayerRendererChromium
index cf129b1..c7aaee4 100644 (file)
@@ -233,6 +233,9 @@ void ResourceRequest::setStorageSession(CFURLStorageSessionRef storageSession)
     CFMutableURLRequestRef cfRequest = CFURLRequestCreateMutableCopy(0, m_cfRequest.get());
     wkSetRequestStorageSession(storageSession, cfRequest);
     m_cfRequest.adoptCF(cfRequest);
+#if PLATFORM(MAC)
+    updateNSURLRequest();
+#endif
 }
 
 #endif