12016-07-08 Tim Horton <timothy_horton@apple.com>
2
3 Mail messages don't start loading until scrolling completes
4 https://bugs.webkit.org/show_bug.cgi?id=159585
5 <rdar://problem/27088405>
6
7 Reviewed by NOBODY (OOPS!).
8
9 * UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm:
10 (-[WKCustomProtocolLoader initWithCustomProtocolManagerProxy:customProtocolID:request:connection:]):
11 When scrolling, NSDefaultRunLoopMode isn't run, but NSRunLoopCommonModes are.
12 CFNetwork uses NSDefaultRunLoopMode if we tell NSURLConnection to "start immediately",
13 but we can instead schedule our NSURLConnection into NSRunLoopCommonModes
14 and start it ourselves, ensuring that it will be able to do work while scrolling is happening.
15