<rdar://problem/
5511842> REGRESSION: Webkit stops responding while loading Apple Store Canada page (15304)
Included the NSSynchronousURLConnection_PrivateMode mode, in addition to the default run loop modes
as an acceptable mode when using performSelectorOnMainThread with our syncronous url callbacks.
* platform/network/mac/ResourceHandleMac.mm:
(-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):
Added NSSynchronousURLConnection_PrivateMode to the list of accepted modes.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25940
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-10-02 Tristan O'Tierney <tristan@apple.com>
+
+ Reviewed by Darin Adler.
+
+ <rdar://problem/5511842> REGRESSION: Webkit stops responding while loading Apple Store Canada page (15304)
+
+ Included the NSSynchronousURLConnection_PrivateMode mode, in addition to the default run loop modes
+ as an acceptable mode when using performSelectorOnMainThread with our syncronous url callbacks.
+
+ * platform/network/mac/ResourceHandleMac.mm:
+ (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):
+ Added NSSynchronousURLConnection_PrivateMode to the list of accepted modes.
+
2007-10-02 Darin Adler <darin@apple.com>
Reviewed by Adam.
if (cachedResponse)
[info setObject:cachedResponse forKey:@"cachedResponse"];
- [self performSelectorOnMainThread:@selector(_callConnectionWillCacheResponseWithInfo:) withObject:info waitUntilDone:YES];
+ // Include synchronous url connection's mode as an acceptable run loopmode
+ // <rdar://problem/5511842>
+ NSArray *modes = [[NSArray alloc] initWithObjects:(NSString *)kCFRunLoopCommonModes, @"NSSynchronousURLConnection_PrivateMode", nil];
+ [self performSelectorOnMainThread:@selector(_callConnectionWillCacheResponseWithInfo:) withObject:info waitUntilDone:YES modes:modes];
+ [modes release];
NSCachedURLResponse *result = [[info valueForKey:@"result"] retain];
[info release];