Changeset 85549 in webkit
- Timestamp:
- May 2, 2011 4:41:47 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85540 r85549 1 2011-05-02 Brady Eidson <beidson@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 <rdar://problem/9340945> and https://bugs.webkit.org/show_bug.cgi?id=59973 6 In Aperture, a WebView might be dealloc'ed before it finishes loading. 7 8 * WebCore.exp.in: 9 * platform/RuntimeApplicationChecks.cpp: 10 (WebCore::applicationIsAperture): Perform a com.apple.Aperture bundle check. 11 * platform/RuntimeApplicationChecks.h: 12 1 13 2011-05-02 Simon Fraser <simon.fraser@apple.com> 2 14 -
trunk/Source/WebCore/WebCore.exp.in
r85428 r85549 557 557 __ZN7WebCore21UserContentURLPattern5parseERKN3WTF6StringE 558 558 __ZN7WebCore21WindowsLatin1EncodingEv 559 __ZN7WebCore21applicationIsApertureEv 559 560 __ZN7WebCore21findEventWithKeyStateEPNS_5EventE 560 561 __ZN7WebCore21isBackForwardLoadTypeENS_13FrameLoadTypeE -
trunk/Source/WebCore/platform/RuntimeApplicationChecks.cpp
r83832 r85549 97 97 } 98 98 99 bool applicationIsAperture() 100 { 101 static bool isAperture = mainBundleIsEqualTo("com.apple.Aperture"); 102 return isAperture; 103 } 104 99 105 } // namespace WebCore -
trunk/Source/WebCore/platform/RuntimeApplicationChecks.h
r83832 r85549 29 29 namespace WebCore { 30 30 31 bool applicationIsAOLInstantMessenger(); 32 bool applicationIsAdobeInstaller(); 33 bool applicationIsAperture(); 31 34 bool applicationIsAppleMail(); 32 bool applicationIsSafari();33 35 bool applicationIsMicrosoftMessenger(); 34 bool applicationIsAdobeInstaller();35 bool applicationIsAOLInstantMessenger();36 36 bool applicationIsMicrosoftMyDay(); 37 37 bool applicationIsMicrosoftOutlook(); 38 bool applicationIsSafari(); 38 39 39 40 } // namespace WebCore -
trunk/Source/WebKit/mac/ChangeLog
r85515 r85549 1 2011-05-02 Brady Eidson <beidson@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 <rdar://problem/9340945> and https://bugs.webkit.org/show_bug.cgi?id=59973 6 In Aperture, a WebView might be dealloc'ed before it finishes loading. 7 8 * WebView/WebView.mm: 9 (needsSelfRetainWhileLoadingQuirk): 10 (-[WebView _didStartProvisionalLoadForFrame:]): If we need the quirk, retain self. 11 (-[WebView _didFinishLoadForFrame:]): If we need the quirk, release self on a delay. 12 (-[WebView _didFailLoadWithError:forFrame:]): Ditto. 13 (-[WebView _didFailProvisionalLoadWithError:forFrame:]): Ditto. 14 1 15 2011-05-02 Adam Barth <abarth@webkit.org> 2 16 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r85515 r85549 1397 1397 } 1398 1398 1399 static bool needsSelfRetainWhileLoadingQuirk() 1400 { 1401 static bool needsQuirk = applicationIsAperture(); 1402 return needsQuirk; 1403 } 1399 1404 1400 1405 - (BOOL)_needsPreHTML5ParserQuirks … … 1850 1855 - (void)_didStartProvisionalLoadForFrame:(WebFrame *)frame 1851 1856 { 1857 if (needsSelfRetainWhileLoadingQuirk()) 1858 [self retain]; 1859 1852 1860 [self _willChangeBackForwardKeys]; 1853 1861 if (frame == [self mainFrame]){ … … 1871 1879 - (void)_didFinishLoadForFrame:(WebFrame *)frame 1872 1880 { 1881 if (needsSelfRetainWhileLoadingQuirk()) 1882 [self performSelector:@selector(release) withObject:nil afterDelay:0]; 1883 1873 1884 [self _didChangeBackForwardKeys]; 1874 1885 if (frame == [self mainFrame]){ … … 1882 1893 - (void)_didFailLoadWithError:(NSError *)error forFrame:(WebFrame *)frame 1883 1894 { 1895 if (needsSelfRetainWhileLoadingQuirk()) 1896 [self performSelector:@selector(release) withObject:nil afterDelay:0]; 1897 1884 1898 [self _didChangeBackForwardKeys]; 1885 1899 if (frame == [self mainFrame]){ … … 1893 1907 - (void)_didFailProvisionalLoadWithError:(NSError *)error forFrame:(WebFrame *)frame 1894 1908 { 1909 if (needsSelfRetainWhileLoadingQuirk()) 1910 [self performSelector:@selector(release) withObject:nil afterDelay:0]; 1911 1895 1912 [self _didChangeBackForwardKeys]; 1896 1913 if (frame == [self mainFrame]){
Note: See TracChangeset
for help on using the changeset viewer.