Changeset 242367 in webkit
- Timestamp:
- Mar 4, 2019, 11:54:21 AM (6 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r242364 r242367 1 2019-03-04 Alex Christensen <achristensen@webkit.org> 2 3 REGRESSION: ( r240978-r240985 ) [ iOS Release ] Layout Test imported/w3c/web-platform-tests/xhr/send-redirect-post-upload.htm is crashing 4 https://bugs.webkit.org/show_bug.cgi?id=194523 5 6 Reviewed by Ryosuke Niwa. 7 8 Attempt to work around a CFNetwork bug in the timing of tearing down tasks with upload streams. 9 See rdar://problem/28233746. 10 11 * NetworkProcess/cocoa/NetworkDataTaskCocoa.h: 12 * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: 13 (WebKit::NetworkDataTaskCocoa::~NetworkDataTaskCocoa): 14 * NetworkProcess/cocoa/NetworkSessionCocoa.mm: 15 (-[WKNetworkSessionDelegate URLSession:task:needNewBodyStream:]): 16 1 17 2019-03-04 Carlos Garcia Campos <cgarcia@igalia.com> 2 18 -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.h
r241317 r242367 84 84 String description() const override; 85 85 86 void setShouldExtendTaskLifetime(bool shouldExtendTaskLifetime) { m_shouldExtendTaskLifetime = shouldExtendTaskLifetime; } 87 86 88 private: 87 89 NetworkDataTaskCocoa(NetworkSession&, NetworkDataTaskClient&, const WebCore::ResourceRequest&, uint64_t frameID, uint64_t pageID, WebCore::StoredCredentialsPolicy, WebCore::ContentSniffingPolicy, WebCore::ContentEncodingSniffingPolicy, bool shouldClearReferrerOnHTTPSToHTTPRedirect, PreconnectOnly, bool dataTaskIsForMainFrameNavigation, Optional<NetworkActivityTracker>); … … 105 107 uint64_t m_pageID; 106 108 109 // FIXME: This is only needed until rdar://problem/28233746 is fixed. 110 bool m_shouldExtendTaskLifetime { false }; 111 107 112 #if ENABLE(RESOURCE_LOAD_STATISTICS) 108 113 bool m_hasBeenSetToUseStatelessCookieStorage { false }; -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkDataTaskCocoa.mm
r242304 r242367 262 262 cocoaSession.m_dataTaskMapWithoutState.remove([m_task taskIdentifier]); 263 263 } 264 265 if (m_shouldExtendTaskLifetime) 266 RunLoop::main().dispatch([task = WTFMove(m_task)] { }); 264 267 } 265 268 -
trunk/Source/WebKit/NetworkProcess/cocoa/NetworkSessionCocoa.mm
r242106 r242367 384 384 } 385 385 386 networkDataTask->setShouldExtendTaskLifetime(true); 386 387 completionHandler(WebCore::createHTTPBodyNSInputStream(*body).get()); 387 388 }
Note:
See TracChangeset
for help on using the changeset viewer.