[SOUP] The initiating page is lost after a redirection
[WebKit-https.git] / Source / WebCore / platform / network / soup / ResourceHandleSoup.cpp
index d588d96..04eecde 100644 (file)
@@ -1048,6 +1048,8 @@ static bool createSoupRequestAndMessageForHandle(ResourceHandle* handle, const R
         return false;
     }
 
+    setSoupRequestInitiatingPageIDFromNetworkingContext(d->m_soupRequest.get(), d->m_context.get());
+
     return true;
 }
 
@@ -1078,8 +1080,6 @@ bool ResourceHandle::start()
         return true;
     }
 
-    setSoupRequestInitiatingPageIDFromNetworkingContext(d->m_soupRequest.get(), d->m_context.get());
-
     // Send the request only if it's not been explicitly deferred.
     if (!d->m_defersLoading)
         sendPendingRequest();