Title: [259509] branches/safari-609-branch/Source/WebKit
- Revision
- 259509
- Author
- [email protected]
- Date
- 2020-04-03 13:39:51 -0700 (Fri, 03 Apr 2020)
Log Message
Cherry-pick r257209. rdar://problem/61269710
Protect from null session in NetworkDataTaskCocoa::restrictRequestReferrerToOriginIfNeeded
https://bugs.webkit.org/show_bug.cgi?id=208127
rdar://problem/57937917
Reviewed by Chris Dumez.
In case of a data task whose session is destroyed, do not follow redirection early on.
* NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:
(WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@257209 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-609-branch/Source/WebKit/ChangeLog (259508 => 259509)
--- branches/safari-609-branch/Source/WebKit/ChangeLog 2020-04-03 20:39:48 UTC (rev 259508)
+++ branches/safari-609-branch/Source/WebKit/ChangeLog 2020-04-03 20:39:51 UTC (rev 259509)
@@ -1,5 +1,36 @@
2020-04-03 Alan Coon <[email protected]>
+ Cherry-pick r257209. rdar://problem/61269710
+
+ Protect from null session in NetworkDataTaskCocoa::restrictRequestReferrerToOriginIfNeeded
+ https://bugs.webkit.org/show_bug.cgi?id=208127
+ rdar://problem/57937917
+
+ Reviewed by Chris Dumez.
+
+ In case of a data task whose session is destroyed, do not follow redirection early on.
+
+ * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:
+ (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection):
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@257209 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2020-02-24 Youenn Fablet <[email protected]>
+
+ Protect from null session in NetworkDataTaskCocoa::restrictRequestReferrerToOriginIfNeeded
+ https://bugs.webkit.org/show_bug.cgi?id=208127
+ rdar://problem/57937917
+
+ Reviewed by Chris Dumez.
+
+ In case of a data task whose session is destroyed, do not follow redirection early on.
+
+ * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm:
+ (WebKit::NetworkDataTaskCocoa::willPerformHTTPRedirection):
+
+2020-04-03 Alan Coon <[email protected]>
+
Cherry-pick r256900. rdar://problem/61269733
SWServer::claim should check for the service worker to be active
Modified: branches/safari-609-branch/Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm (259508 => 259509)
--- branches/safari-609-branch/Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm 2020-04-03 20:39:48 UTC (rev 259508)
+++ branches/safari-609-branch/Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm 2020-04-03 20:39:51 UTC (rev 259509)
@@ -484,7 +484,7 @@
if (m_client)
m_client->willPerformHTTPRedirection(WTFMove(redirectResponse), WTFMove(request), [completionHandler = WTFMove(completionHandler), this, weakThis = makeWeakPtr(*this)] (auto&& request) mutable {
- if (!weakThis)
+ if (!weakThis || !m_session)
return completionHandler({ });
if (!request.isNull())
restrictRequestReferrerToOriginIfNeeded(request);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes