Changeset 261135 in webkit
- Timestamp:
- May 4, 2020 6:18:41 PM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r261134 r261135 1 2020-05-04 Timothy Horton <timothy_horton@apple.com> 2 3 Unreviewed, reverting r261117. 4 5 Broke lots of API tests 6 7 Reverted changeset: 8 9 "Excessive error logging from daemons trying to use WebKit, 10 under -[UIDevice currentDevice]" 11 https://bugs.webkit.org/show_bug.cgi?id=211397 12 https://trac.webkit.org/changeset/261117 13 1 14 2020-05-04 Darin Adler <darin@apple.com> 2 15 -
trunk/Source/WebKit/Shared/UserInterfaceIdiom.mm
r261117 r261135 29 29 #if PLATFORM(IOS_FAMILY) 30 30 31 #import "UIKitSPI.h" 32 #import <WebCore/Device.h> 31 #if USE(APPLE_INTERNAL_SDK) 32 #import <UIKit/UIDevice_Private.h> 33 #else 34 #import <UIKit/UIDevice.h> 35 #endif 33 36 34 37 namespace WebKit { … … 42 45 static UserInterfaceIdiomState userInterfaceIdiomIsPadState = UserInterfaceIdiomState::Unknown; 43 46 47 #if PLATFORM(IOS_FAMILY) 44 48 static inline bool userInterfaceIdiomIsPad() 45 49 { 46 // If we are in a dameon, we cannot use UIDevice. Fall back to checking the hardware itself.47 // Since daemons don't ever run in an iPhone-app-on-iPad jail, this will be accurate in the daemon case,48 // but is not sufficient in the application case.49 if (![UIApplication sharedApplication])50 return WebCore::deviceClass() == MGDeviceClassiPad;51 52 50 // This inline function exists to thwart unreachable code 53 51 // detection on platforms where UICurrentUserInterfaceIdiomIsPad … … 59 57 #endif 60 58 } 59 #endif 61 60 62 61 bool currentUserInterfaceIdiomIsPad() -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKWebViewConfiguration.mm
r261117 r261135 28 28 29 29 #import "APIPageConfiguration.h" 30 #import "UserInterfaceIdiom.h"31 30 #import "VersionChecks.h" 32 31 #import "WKPreferences.h" … … 194 193 _allowsPictureInPictureMediaPlayback = YES; 195 194 #endif 196 _allowsInlineMediaPlayback = Web Kit::currentUserInterfaceIdiomIsPad();195 _allowsInlineMediaPlayback = WebCore::deviceClass() == MGDeviceClassiPad; 197 196 _inlineMediaPlaybackRequiresPlaysInlineAttribute = !_allowsInlineMediaPlayback; 198 197 _allowsInlineMediaPlaybackAfterFullscreen = !_allowsInlineMediaPlayback;
Note: See TracChangeset
for help on using the changeset viewer.