Changeset 25940 in webkit


Ignore:
Timestamp:
Oct 2, 2007 4:36:06 PM (17 years ago)
Author:
tristan
Message:

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.
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r25934 r25940  
     12007-10-02  Tristan O'Tierney  <tristan@apple.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        <rdar://problem/5511842> REGRESSION: Webkit stops responding while loading Apple Store Canada page (15304)
     6       
     7        Included the NSSynchronousURLConnection_PrivateMode mode, in addition to the default run loop modes
     8        as an acceptable mode when using performSelectorOnMainThread with our syncronous url callbacks.
     9
     10        * platform/network/mac/ResourceHandleMac.mm:
     11        (-[WebCoreResourceHandleAsDelegate connection:willCacheResponse:]):
     12        Added NSSynchronousURLConnection_PrivateMode to the list of accepted modes.
     13
    1142007-10-02  Darin Adler  <darin@apple.com>
    215
  • trunk/WebCore/platform/network/mac/ResourceHandleMac.mm

    r25777 r25940  
    489489            [info setObject:cachedResponse forKey:@"cachedResponse"];
    490490
    491         [self performSelectorOnMainThread:@selector(_callConnectionWillCacheResponseWithInfo:) withObject:info waitUntilDone:YES];
     491        // Include synchronous url connection's mode as an acceptable run loopmode
     492        // <rdar://problem/5511842>
     493        NSArray *modes = [[NSArray alloc] initWithObjects:(NSString *)kCFRunLoopCommonModes, @"NSSynchronousURLConnection_PrivateMode", nil];       
     494        [self performSelectorOnMainThread:@selector(_callConnectionWillCacheResponseWithInfo:) withObject:info waitUntilDone:YES modes:modes];
     495        [modes release];
    492496
    493497        NSCachedURLResponse *result = [[info valueForKey:@"result"] retain];
Note: See TracChangeset for help on using the changeset viewer.