Source/WebKit2/ChangeLog

 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
1162016-07-08 Anders Carlsson <andersca@apple.com>
217
318 Fix 32-bit build.

Source/WebKit2/UIProcess/Network/CustomProtocols/mac/CustomProtocolManagerProxyMac.mm

@@using namespace WebKit;
6868 _storagePolicy = NSURLCacheStorageNotAllowed;
6969#pragma clang diagnostic push
7070#pragma clang diagnostic ignored "-Wdeprecated-declarations"
71  _urlConnection = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:YES];
 71 _urlConnection = [[NSURLConnection alloc] initWithRequest:request delegate:self startImmediately:NO];
 72 [_urlConnection scheduleInRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes];
 73 [_urlConnection start];
7274#pragma clang diagnostic pop
7375
7476 return self;