Changeset 201593 in webkit
- Timestamp:
- Jun 1, 2016, 10:39:52 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
NetworkProcess/NetworkLoad.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r201592 r201593 1 2016-06-01 Yongjun Zhang <yongjun_zhang@apple.com> 2 3 Notify client immediately if network session doesn't exist for a synchronous XHR load. 4 https://bugs.webkit.org/show_bug.cgi?id=158239 5 <rdar://problem/26344251> 6 7 Reviewed by Brady Eidson. 8 9 For a synchronous XHR load, if the network session doesn't exist, we should notify NetworkLoadClient. 10 Otherwise the Web process could hang when waiting for the synchronous load to finish. 11 12 * NetworkProcess/NetworkLoad.cpp: 13 (WebKit::NetworkLoad::NetworkLoad): 14 1 15 2016-05-31 Brian Burg <bburg@apple.com> 2 16 -
trunk/Source/WebKit2/NetworkProcess/NetworkLoad.cpp
r199501 r201593 58 58 if (!parameters.defersLoading) 59 59 m_task->resume(); 60 } else 60 } else { 61 61 WTFLogAlways("Attempted to create a NetworkLoad with a session (id=%" PRIu64 ") that does not exist.", parameters.sessionID.sessionID()); 62 RunLoop::current().dispatch([this, url = parameters.request.url()] { 63 didCompleteWithError(internalError(url)); 64 }); 65 } 62 66 #else 63 67 m_handle = ResourceHandle::create(m_networkingContext.get(), parameters.request, this, parameters.defersLoading, parameters.contentSniffingPolicy == SniffContent);
Note:
See TracChangeset
for help on using the changeset viewer.