Changeset 287653 in webkit
- Timestamp:
- Jan 5, 2022, 3:02:02 PM (5 years ago)
- Location:
- trunk/Source
- Files:
-
- 10 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/html/MediaElementSession.cpp (modified) (2 diffs)
-
WebCore/loader/DocumentThreadableLoader.cpp (modified) (2 diffs)
-
WebCore/platform/Timer.cpp (modified) (2 diffs)
-
WebCore/platform/cocoa/VersionChecks.h (modified) (5 diffs)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/Shared/WebPreferencesDefaultValues.cpp (modified) (1 diff)
-
WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.mm (modified) (1 diff)
-
WebKitLegacy/mac/WebView/WebView.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r287613 r287653 1 2022-01-05 Tim Horton <timothy_horton@apple.com> 2 3 Move more SDK checks to linkedOnOrAfter() 4 https://bugs.webkit.org/show_bug.cgi?id=234875 5 6 Reviewed by Sam Weinig. 7 8 * html/MediaElementSession.cpp: 9 (WebCore::MediaElementSession::requiresFullscreenForVideoPlayback const): 10 * loader/DocumentThreadableLoader.cpp: 11 (WebCore::DocumentThreadableLoader::makeCrossOriginAccessRequest): 12 * platform/Timer.cpp: 13 (WebCore::shouldSuppressThreadSafetyCheck): 14 * platform/cocoa/VersionChecks.h: 15 1 16 2022-01-05 Youenn Fablet <youenn@apple.com> 2 17 -
trunk/Source/WebCore/html/MediaElementSession.cpp
r284093 r287653 67 67 #include "AudioSession.h" 68 68 #include "RuntimeApplicationChecks.h" 69 #include "VersionChecks.h" 69 70 #include <wtf/cocoa/RuntimeApplicationChecksCocoa.h> 70 71 #endif … … 858 859 if (CocoaApplication::isIBooks()) 859 860 return !m_element.hasAttributeWithoutSynchronization(HTMLNames::webkit_playsinlineAttr) && !m_element.hasAttributeWithoutSynchronization(HTMLNames::playsinlineAttr); 860 if ( applicationSDKVersion() < DYLD_IOS_VERSION_10_0)861 if (!linkedOnOrAfter(WebCore::SDKVersion::FirstWithUnprefixedPlaysInlineAttribute)) 861 862 return !m_element.hasAttributeWithoutSynchronization(HTMLNames::webkit_playsinlineAttr); 862 863 #endif -
trunk/Source/WebCore/loader/DocumentThreadableLoader.cpp
r287021 r287653 66 66 67 67 #if PLATFORM(IOS_FAMILY) 68 #include "VersionChecks.h" 68 69 #include <wtf/cocoa/RuntimeApplicationChecksCocoa.h> 69 70 #endif … … 202 203 203 204 #if PLATFORM(IOS_FAMILY) 204 bool needsPreflightQuirk = IOSApplication::isMoviStarPlus() && applicationSDKVersion() < DYLD_IOS_VERSION_12_0&& (m_options.preflightPolicy == PreflightPolicy::Consider || m_options.preflightPolicy == PreflightPolicy::Force);205 bool needsPreflightQuirk = IOSApplication::isMoviStarPlus() && !linkedOnOrAfter(WebCore::SDKVersion::FirstWithoutMoviStarPlusCORSPreflightQuirk) && (m_options.preflightPolicy == PreflightPolicy::Consider || m_options.preflightPolicy == PreflightPolicy::Force); 205 206 #else 206 207 bool needsPreflightQuirk = false; -
trunk/Source/WebCore/platform/Timer.cpp
r284167 r287653 38 38 39 39 #if PLATFORM(COCOA) 40 #include "VersionChecks.h" 40 41 #include <wtf/cocoa/RuntimeApplicationChecksCocoa.h> 41 42 #endif … … 251 252 { 252 253 #if PLATFORM(IOS_FAMILY) 253 return WebThreadIsEnabled() || applicationSDKVersion() < DYLD_IOS_VERSION_12_0;254 return WebThreadIsEnabled() || !linkedOnOrAfter(WebCore::SDKVersion::FirstWithTimerThreadSafetyChecks); 254 255 #elif PLATFORM(MAC) 255 return !isInWebProcess() && applicationSDKVersion() < DYLD_MACOSX_VERSION_10_14;256 return !isInWebProcess() && !linkedOnOrAfter(WebCore::SDKVersion::FirstWithTimerThreadSafetyChecks); 256 257 #else 257 258 return false; -
trunk/Source/WebCore/platform/cocoa/VersionChecks.h
r286971 r287653 37 37 FirstWithLinkPreviewEnabledByDefault = DYLD_IOS_VERSION_10_0, 38 38 FirstThatConvertsInvalidURLsToBlank = DYLD_IOS_VERSION_10_0, 39 FirstWithoutTheSecretSocietyHiddenMysteryWindowOpenQuirk = DYLD_IOS_VERSION_10_0, 40 FirstWithUnprefixedPlaysInlineAttribute = DYLD_IOS_VERSION_10_0, 39 41 FirstWithExceptionsForDuplicateCompletionHandlerCalls = DYLD_IOS_VERSION_11_0, 40 42 FirstWithExpiredOnlyReloadBehavior = DYLD_IOS_VERSION_11_0, … … 44 46 FirstWhereUIScrollViewDoesNotApplyKeyboardInsetsUnconditionally = DYLD_IOS_VERSION_12_0, 45 47 FirstWithMainThreadReleaseAssertionInWebPageProxy = DYLD_IOS_VERSION_12_0, 48 FirstWithoutMoviStarPlusCORSPreflightQuirk = DYLD_IOS_VERSION_12_0, 49 FirstWithTimerThreadSafetyChecks = DYLD_IOS_VERSION_12_0, 46 50 FirstWithLazyGestureRecognizerInstallation = DYLD_IOS_VERSION_12_2, 47 51 FirstWithProcessSwapOnCrossSiteNavigation = DYLD_IOS_VERSION_12_2, … … 55 59 FirstWhereWKContentViewDoesNotOverrideKeyCommands = DYLD_IOS_VERSION_13_0, 56 60 FirstThatSupportsOverflowHiddenOnMainFrame = DYLD_IOS_VERSION_13_0, 61 FirstWithoutIMDbCSSOMViewScrollingQuirk = DYLD_IOS_VERSION_13_0, 57 62 FirstWhereSiteSpecificQuirksAreEnabledByDefault = DYLD_IOS_VERSION_13_2, 58 63 FirstThatRestrictsBaseURLSchemes = DYLD_IOS_VERSION_13_4, … … 62 67 FirstWithWKWebsiteDataStoreInitReturningNil = DYLD_IOS_VERSION_14_0, 63 68 FirstWithWebSQLDisabledByDefaultInLegacyWebKit = DYLD_IOS_VERSION_14_0, 69 FirstWithoutLaBanquePostaleQuirks = DYLD_IOS_VERSION_14_0, 64 70 FirstVersionWithiOSAppsOnMacOS = DYLD_IOS_VERSION_14_2, 65 71 FirstWithDataURLFragmentRemoval = DYLD_IOS_VERSION_14_5, … … 82 88 FirstWithWebIconDatabaseWarning = DYLD_MACOSX_VERSION_10_13, 83 89 FirstWithMainThreadReleaseAssertionInWebPageProxy = DYLD_MACOSX_VERSION_10_14, 90 FirstWithTimerThreadSafetyChecks = DYLD_MACOSX_VERSION_10_14, 84 91 FirstWithoutUnconditionalUniversalSandboxExtension = DYLD_MACOSX_VERSION_10_15, 85 92 FirstWithSnapshotAfterScreenUpdates = DYLD_MACOSX_VERSION_10_15, -
trunk/Source/WebKit/ChangeLog
r287651 r287653 1 2022-01-05 Tim Horton <timothy_horton@apple.com> 2 3 Move more SDK checks to linkedOnOrAfter() 4 https://bugs.webkit.org/show_bug.cgi?id=234875 5 6 Reviewed by Sam Weinig. 7 8 * Shared/WebPreferencesDefaultValues.cpp: 9 (WebKit::defaultCSSOMViewScrollingAPIEnabled): 10 1 11 2022-01-05 Tim Horton <timothy_horton@apple.com> 2 12 -
trunk/Source/WebKit/Shared/WebPreferencesDefaultValues.cpp
r287093 r287653 60 60 bool defaultCSSOMViewScrollingAPIEnabled() 61 61 { 62 static bool result = WebCore::IOSApplication::isIMDb() && applicationSDKVersion() < DYLD_IOS_VERSION_13_0;62 static bool result = WebCore::IOSApplication::isIMDb() && !linkedOnOrAfter(WebCore::SDKVersion::FirstWithoutIMDbCSSOMViewScrollingQuirk); 63 63 return !result; 64 64 } -
trunk/Source/WebKitLegacy/mac/ChangeLog
r287522 r287653 1 2022-01-05 Tim Horton <timothy_horton@apple.com> 2 3 Move more SDK checks to linkedOnOrAfter() 4 https://bugs.webkit.org/show_bug.cgi?id=234875 5 6 Reviewed by Sam Weinig. 7 8 * WebView/WebPreferencesDefaultValues.mm: 9 (WebKit::defaultJavaScriptCanOpenWindowsAutomatically): 10 * WebView/WebView.mm: 11 (needsLaBanquePostaleQuirks): 12 1 13 2022-01-02 Wenson Hsieh <wenson_hsieh@apple.com> 2 14 -
trunk/Source/WebKitLegacy/mac/WebView/WebPreferencesDefaultValues.mm
r287228 r287653 110 110 bool defaultJavaScriptCanOpenWindowsAutomatically() 111 111 { 112 static bool shouldAllowWindowOpenWithoutUserGesture = WebCore::IOSApplication::isTheSecretSocietyHiddenMystery() && dyld_get_program_sdk_version() < DYLD_IOS_VERSION_10_0;112 static bool shouldAllowWindowOpenWithoutUserGesture = WebCore::IOSApplication::isTheSecretSocietyHiddenMystery() && !linkedOnOrAfter(WebCore::SDKVersion::FirstWithoutTheSecretSocietyHiddenMysteryWindowOpenQuirk); 113 113 return shouldAllowWindowOpenWithoutUserGesture; 114 114 } -
trunk/Source/WebKitLegacy/mac/WebView/WebView.mm
r287164 r287653 229 229 #import <WebCore/UserStyleSheet.h> 230 230 #import <WebCore/ValidationBubble.h> 231 #import <WebCore/VersionChecks.h> 231 232 #import <WebCore/WebCoreJITOperations.h> 232 233 #import <WebCore/WebCoreObjCExtras.h> … … 1391 1392 static bool needsLaBanquePostaleQuirks() 1392 1393 { 1393 static bool needsQuirks = WebCore::IOSApplication::isLaBanquePostale() && dyld_get_program_sdk_version() < DYLD_IOS_VERSION_14_0;1394 static bool needsQuirks = WebCore::IOSApplication::isLaBanquePostale() && !linkedOnOrAfter(WebCore::SDKVersion::FirstWithoutLaBanquePostaleQuirks); 1394 1395 return needsQuirks; 1395 1396 }
Note:
See TracChangeset
for help on using the changeset viewer.