Changeset 259746 in webkit
- Timestamp:
- Apr 8, 2020, 12:59:17 PM (6 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
TestWebKitAPI/cocoa/TestWKWebView.mm (modified) (1 diff)
-
TestWebKitAPI/ios/UIKitSPI.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r259745 r259746 1 2020-04-08 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 Remove a workaround that allows many API tests to pass on iOS 13.2 4 https://bugs.webkit.org/show_bug.cgi?id=209709 5 6 Reviewed by Megan Gardner. 7 8 Removes a workaround added in r256297 to get API tests passing on iOS 13.2. This workaround swizzled 9 `-[NSBundle bundleIdentifier]` to return a non-null string, in order to avoid a crash introduced by 10 <rdar://problem/56301207>. This was subsequently fixed in <rdar://problem/56790195>, which has made its way 11 into iOS 13.4. 12 13 * TestWebKitAPI/cocoa/TestWKWebView.mm: 14 (+[WKWebView initialize]): Deleted. 15 * TestWebKitAPI/ios/UIKitSPI.h: 16 1 17 2020-04-08 Sihui Liu <sihui_liu@apple.com> 2 18 -
trunk/Tools/TestWebKitAPI/cocoa/TestWKWebView.mm
r259551 r259746 72 72 @implementation WKWebView (TestWebKitAPI) 73 73 74 #if PLATFORM(IOS_FAMILY)75 76 + (void)initialize77 {78 // FIXME: This hack should no longer be necessary on builds that have the fix for <rdar://problem/56790195>.79 // Calling +displayIdentifier will guarantee a call to an internal UIKit helper method that caches the fake80 // bundle name "com.apple.TestWebKitAPI" for the rest of the process' lifetime. This allows us to avoid crashing81 // under -[UIScrollView setContentOffset:animated:] due to telemetry code that requires a bundle identifier.82 // Note that this swizzling is temporary, since unconditionally swizzling -[NSBundle bundleIdentifier] for the83 // entirely of the test causes other tests to fail or time out.84 InstanceMethodSwizzler bundleIdentifierSwizzler(NSBundle.class, @selector(bundleIdentifier), reinterpret_cast<IMP>(overrideBundleIdentifier));85 [UIApplication displayIdentifier];86 }87 88 #endif // PLATFORM(IOS_FAMILY)89 90 74 - (void)loadTestPageNamed:(NSString *)pageName 91 75 { -
trunk/Tools/TestWebKitAPI/ios/UIKitSPI.h
r258919 r259746 269 269 @end 270 270 271 @interface UIApplication (Internal)272 + (NSString *)displayIdentifier;273 @end274 275 271 #endif // PLATFORM(IOS_FAMILY)
Note:
See TracChangeset
for help on using the changeset viewer.