Changeset 256054 in webkit
- Timestamp:
- Feb 7, 2020 1:16:57 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKitLegacy/mac/ChangeLog
r256051 r256054 1 2020-02-07 Daniel Bates <dabates@apple.com> 2 3 Legacy WebKit: Have linkedOnOrAfter() respect the NSDefault WebKitLinkedOnOrAfterEverything and opt DumpRenderTree in 4 https://bugs.webkit.org/show_bug.cgi?id=207366 5 6 Reviewed by Brent Fulgham. 7 8 If the user default WebKitLinkedOnOrAfterEverything is enabled then have linkedOnOrAfter() 9 always return true. 10 11 * Misc/WebKitVersionChecks.mm: 12 (linkedOnOrAfter): Read the user default WebKitLinkedOnOrAfterEverything once and cache it. 13 If the default is enabled then early return true. Outside of tooling this default is unlikely 14 to be set. 15 1 16 2020-02-07 Sam Weinig <weinig@apple.com> 2 17 -
trunk/Source/WebKitLegacy/mac/Misc/WebKitVersionChecks.mm
r237266 r256054 30 30 31 31 #import <mach-o/dyld.h> 32 #import <mutex> 32 33 33 34 static int WebKitLinkTimeVersion(void); … … 71 72 bool linkedOnOrAfter(SDKVersion sdkVersion) 72 73 { 74 static bool linkedOnOrAfterEverything; 75 static std::once_flag once; 76 std::call_once(once, [] { 77 if ([[NSUserDefaults standardUserDefaults] boolForKey:@"WebKitLinkedOnOrAfterEverything"]) 78 linkedOnOrAfterEverything = true; 79 }); 80 if (UNLIKELY(linkedOnOrAfterEverything)) 81 return true; 73 82 return dyld_get_program_sdk_version() >= static_cast<uint32_t>(sdkVersion); 74 83 } -
trunk/Tools/ChangeLog
r256051 r256054 1 2020-02-07 Daniel Bates <dabates@apple.com> 2 3 Legacy WebKit: Have linkedOnOrAfter() respect the NSDefault WebKitLinkedOnOrAfterEverything and opt DumpRenderTree in 4 https://bugs.webkit.org/show_bug.cgi?id=207366 5 6 Reviewed by Brent Fulgham. 7 8 Enable default WebKitLinkedOnOrAfterEverything in DumpRenderTree just as we do in WebKitTestRunner. 9 This lets me put test results for Mac and iOS Legacy WebKit in the same cross-platform directory 10 as the actual test instead of under a platform-specific directory even when the tests' behavior 11 depends on the link-time version of WebKit. 12 13 Note that testing of pre-linked behavior can still be accomplished by test writers by exposing settings 14 and toggling them in a test. 15 16 * DumpRenderTree/mac/DumpRenderTree.mm: 17 (setDefaultsToConsistentValuesForTesting): 18 1 19 2020-02-03 Sam Weinig <weinig@apple.com> 2 20 -
trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm
r255961 r256054 1072 1072 WebKitAllowsInlineMediaPlaybackPreferenceKey: @YES, 1073 1073 WebKitInlineMediaPlaybackRequiresPlaysInlineAttributeKey: @NO, 1074 @"WebKitLinkedOnOrAfterEverything": @YES, 1074 1075 @"UseWebKitWebInspector": @YES, 1075 1076 #if !PLATFORM(IOS_FAMILY)
Note: See TracChangeset
for help on using the changeset viewer.