Changeset 237405 in webkit
- Timestamp:
- Oct 24, 2018, 5:19:22 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r237403 r237405 1 2018-10-24 Alexey Proskuryakov <ap@apple.com> 2 3 Clean up some obsolete macOS version guards 4 https://bugs.webkit.org/show_bug.cgi?id=190887 5 6 Reviewed by Dan Bernstein. 7 8 * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: 9 (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): 10 (WebCore::MediaPlayerPrivateAVFoundationObjC::maximumDurationToCacheMediaTime const): 11 (WebCore::MediaPlayerPrivateAVFoundationObjC::didPassCORSAccessCheck const): 12 (WebCore::MediaPlayerPrivateAVFoundationObjC::wouldTaintOrigin const): 13 1 14 2018-10-24 Tim Horton <timothy_horton@apple.com> 2 15 -
trunk/Source/WebCore/PAL/ChangeLog
r237402 r237405 1 2018-10-24 Alexey Proskuryakov <ap@apple.com> 2 3 Clean up some obsolete macOS version guards 4 https://bugs.webkit.org/show_bug.cgi?id=190887 5 6 Reviewed by Dan Bernstein. 7 8 * pal/spi/mac/TUCallSPI.h: 9 1 10 2018-10-24 Megan Gardner <megan_gardner@apple.com> 2 11 -
trunk/Source/WebCore/PAL/pal/spi/mac/TUCallSPI.h
r220979 r237405 24 24 */ 25 25 26 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 10100026 #if PLATFORM(MAC) 27 27 28 28 #import <objc/runtime.h> -
trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
r237378 r237405 966 966 [resourceLoader setDelegate:m_loaderDelegate.get() queue:globalLoaderDelegateQueue()]; 967 967 968 #if PLATFORM(IOS_FAMILY) || __MAC_OS_X_VERSION_MIN_REQUIRED > 101100969 968 if (DeprecatedGlobalSettings::isAVFoundationNSURLSessionEnabled() 970 969 && [resourceLoader respondsToSelector:@selector(setURLSession:)] … … 975 974 resourceLoader.URLSession = (NSURLSession *)[[[WebCoreNSURLSession alloc] initWithResourceLoader:*mediaResourceLoader delegate:resourceLoader.URLSessionDataDelegate delegateQueue:resourceLoader.URLSessionDataDelegateQueue] autorelease]; 976 975 } 977 #endif978 976 979 977 #endif … … 1851 1849 double MediaPlayerPrivateAVFoundationObjC::maximumDurationToCacheMediaTime() const 1852 1850 { 1853 #if PLATFORM(IOS_FAMILY) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 10101854 1851 return 0; 1855 #else1856 return 5;1857 #endif1858 1852 } 1859 1853 … … 2204 2198 bool MediaPlayerPrivateAVFoundationObjC::didPassCORSAccessCheck() const 2205 2199 { 2206 #if PLATFORM(IOS_FAMILY) || __MAC_OS_X_VERSION_MIN_REQUIRED > 1011002207 2200 AVAssetResourceLoader *resourceLoader = m_avAsset.get().resourceLoader; 2208 2201 if (!DeprecatedGlobalSettings::isAVFoundationNSURLSessionEnabled() … … 2213 2206 if ([session isKindOfClass:[WebCoreNSURLSession class]]) 2214 2207 return session.didPassCORSAccessChecks; 2215 #endif 2208 2216 2209 return false; 2217 2210 } … … 2219 2212 std::optional<bool> MediaPlayerPrivateAVFoundationObjC::wouldTaintOrigin(const SecurityOrigin& origin) const 2220 2213 { 2221 #if PLATFORM(IOS_FAMILY) || __MAC_OS_X_VERSION_MIN_REQUIRED > 1011002222 2214 AVAssetResourceLoader *resourceLoader = m_avAsset.get().resourceLoader; 2223 2215 if (!DeprecatedGlobalSettings::isAVFoundationNSURLSessionEnabled() … … 2228 2220 if ([session isKindOfClass:[WebCoreNSURLSession class]]) 2229 2221 return [session wouldTaintOrigin:origin]; 2230 #endif 2222 2231 2223 return std::nullopt; 2232 2224 } -
trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
r237266 r237405 130 130 static std::once_flag onceFlag; 131 131 std::call_once(onceFlag, [] { 132 #if PLATFORM(IOS_FAMILY) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED > 101100)132 #if PLATFORM(IOS_FAMILY) || PLATFORM(MAC) 133 133 displayP3ColorSpace = CGColorSpaceCreateWithName(kCGColorSpaceDisplayP3); 134 134 #else -
trunk/Source/WebKit/ChangeLog
r237402 r237405 1 2018-10-24 Alexey Proskuryakov <ap@apple.com> 2 3 Clean up some obsolete macOS version guards 4 https://bugs.webkit.org/show_bug.cgi?id=190887 5 6 Reviewed by Dan Bernstein. 7 8 * PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in: 9 * UIProcess/Cocoa/WebProcessPoolCocoa.mm: 10 (WebKit::WebProcessPool::platformInitializeWebProcess): 11 1 12 2018-10-24 Megan Gardner <megan_gardner@apple.com> 2 13 -
trunk/Source/WebKit/PluginProcess/mac/com.apple.WebKit.plugin-common.sb.in
r234054 r237405 331 331 (home-literal "/Library/Preferences/com.apple.lookup.shared.plist")) 332 332 333 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101 240333 #if __MAC_OS_X_VERSION_MIN_REQUIRED < 101300 334 334 ;; FIXME: This should be removed when <rdar://problem/10479685> is fixed. 335 335 ;; Restrict AppSandboxed processes from creating /Library/Keychains, but allow access to the contents of /Library/Keychains: -
trunk/Source/WebKit/UIProcess/Cocoa/WebProcessPoolCocoa.mm
r237266 r237405 206 206 207 207 if (m_bundleParameters) { 208 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101200)209 auto data = adoptNS([[NSMutableData alloc] init]);210 auto keyedArchiver = adoptNS([[NSKeyedArchiver alloc] initForWritingWithMutableData:data.get()]);211 212 [keyedArchiver setRequiresSecureCoding:YES];213 #else214 208 auto keyedArchiver = secureArchiver(); 215 #endif216 209 217 210 @try { … … 222 215 } 223 216 224 #if (!PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200)225 217 auto data = keyedArchiver.get().encodedData; 226 #endif227 218 228 219 parameters.bundleParameterData = API::Data::createWithoutCopying(WTFMove(data)); -
trunk/Source/WebKitLegacy/mac/ChangeLog
r237402 r237405 1 2018-10-24 Alexey Proskuryakov <ap@apple.com> 2 3 Clean up some obsolete macOS version guards 4 https://bugs.webkit.org/show_bug.cgi?id=190887 5 6 Reviewed by Dan Bernstein. 7 8 * Misc/WebNSPasteboardExtras.mm: 9 (+[NSPasteboard _web_dragTypesForURL]): 10 * WebCoreSupport/PopupMenuMac.mm: 11 (PopupMenuMac::show): 12 * WebCoreSupport/WebEditorClient.h: 13 * WebCoreSupport/WebEditorClient.mm: 14 (WebEditorClient::respondToChangedSelection): 15 * WebView/WebPDFView.mm: 16 (-[WebPDFView _clipViewForPDFDocumentView]): 17 1 18 2018-10-24 Megan Gardner <megan_gardner@apple.com> 2 19 -
trunk/Source/WebKitLegacy/mac/Misc/WebNSPasteboardExtras.mm
r237393 r237405 114 114 legacyStringPasteboardType(), 115 115 legacyFilenamesPasteboardType(), 116 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200117 116 legacyFilesPromisePasteboardType(), 118 #endif119 117 nil]; 120 118 } -
trunk/Source/WebKitLegacy/mac/WebCoreSupport/PopupMenuMac.mm
r236846 r237405 168 168 vertOffset += CTFontGetDescent(font) - CTFontGetDescent(defaultFont.get()); 169 169 vertOffset = fminf(NSHeight(r), vertOffset); 170 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200171 170 if (textDirection == TextDirection::LTR) 172 171 location = NSMakePoint(NSMinX(r) + popOverHorizontalAdjust, NSMaxY(r) - vertOffset); 173 172 else 174 173 location = NSMakePoint(NSMaxX(r) - popOverHorizontalAdjust, NSMaxY(r) - vertOffset); 175 #else176 location = NSMakePoint(NSMinX(r) + popOverHorizontalAdjust, NSMaxY(r) - vertOffset);177 #endif178 174 } else { 179 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200180 175 if (textDirection == TextDirection::LTR) 181 176 location = NSMakePoint(NSMinX(r) + popUnderHorizontalAdjust, NSMaxY(r) + popUnderVerticalAdjust); 182 177 else 183 178 location = NSMakePoint(NSMaxX(r) - popUnderHorizontalAdjust, NSMaxY(r) + popUnderVerticalAdjust); 184 #else185 location = NSMakePoint(NSMinX(r) + popUnderHorizontalAdjust, NSMaxY(r) + popUnderVerticalAdjust);186 #endif187 179 } 188 180 // Save the current event that triggered the popup, so we can clean up our event -
trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebEditorClient.h
r237266 r237405 166 166 void requestCheckingOfString(WebCore::TextCheckingRequest&, const WebCore::VisibleSelection& currentSelection) final; 167 167 168 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200168 #if PLATFORM(MAC) 169 169 void requestCandidatesForSelection(const WebCore::VisibleSelection&) final; 170 170 void handleRequestedCandidates(NSInteger, NSArray<NSTextCheckingResult *> *); … … 186 186 WebCore::VisibleSelection m_lastSelectionForRequestedCandidates; 187 187 188 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200188 #if PLATFORM(MAC) 189 189 RetainPtr<NSString> m_paragraphContextForCandidateRequest; 190 190 NSRange m_rangeForCandidates; -
trunk/Source/WebKitLegacy/mac/WebCoreSupport/WebEditorClient.mm
r237266 r237405 380 380 #endif 381 381 382 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200382 #if PLATFORM(MAC) 383 383 if (frame->editor().canEdit()) 384 384 requestCandidatesForSelection(frame->selection().selection()); … … 1195 1195 } 1196 1196 1197 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1012001197 #if PLATFORM(MAC) 1198 1198 1199 1199 void WebEditorClient::requestCandidatesForSelection(const VisibleSelection& selection) … … 1293 1293 } 1294 1294 1295 #endif // PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1012001295 #endif // PLATFORM(MAC) 1296 1296 1297 1297 #if !PLATFORM(IOS_FAMILY) -
trunk/Source/WebKitLegacy/mac/WebView/WebPDFView.mm
r236846 r237405 1065 1065 - (NSClipView *)_clipViewForPDFDocumentView 1066 1066 { 1067 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1012001068 1067 NSClipView *clipView = (NSClipView *)[[PDFSubview documentScrollView] contentView]; 1069 #else1070 NSClipView *clipView = (NSClipView *)[[PDFSubview documentView] _web_superviewOfClass:[NSClipView class]];1071 #endif1072 1068 ASSERT(clipView); 1073 1069 return clipView; -
trunk/Tools/ChangeLog
r237402 r237405 1 2018-10-24 Alexey Proskuryakov <ap@apple.com> 2 3 Clean up some obsolete macOS version guards 4 https://bugs.webkit.org/show_bug.cgi?id=190887 5 6 Reviewed by Dan Bernstein. 7 8 * TestWebKitAPI/cocoa/TestWKWebView.mm: 9 (__simulated_forceClickAssociatedEventsMask): 10 (-[TestWKWebViewHostWindow _mouseDownAtPoint:simulatePressure:clickCount:]): 11 * WebKitTestRunner/cocoa/TestControllerCocoa.mm: 12 (WTR::initializeWebViewConfiguration): 13 * WebKitTestRunner/mac/EventSenderProxy.mm: 14 (-[EventSenderSyntheticEvent initPressureEventAtLocation:globalLocation:stage:pressure:stageTransition:phase:time:eventNumber:window:]): 15 1 16 2018-10-24 Megan Gardner <megan_gardner@apple.com> 2 17 -
trunk/Tools/TestWebKitAPI/cocoa/TestWKWebView.mm
r237266 r237405 104 104 static int gEventNumber = 1; 105 105 106 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101003107 106 NSEventMask __simulated_forceClickAssociatedEventsMask(id self, SEL _cmd) 108 107 { 109 108 return NSEventMaskPressure | NSEventMaskLeftMouseDown | NSEventMaskLeftMouseUp | NSEventMaskLeftMouseDragged; 110 109 } 111 #endif112 110 113 111 - (void)_mouseDownAtPoint:(NSPoint)point simulatePressure:(BOOL)simulatePressure clickCount:(NSUInteger)clickCount … … 116 114 117 115 NSEventMask modifierFlags = 0; 118 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101003119 116 if (simulatePressure) 120 117 modifierFlags |= NSEventMaskPressure; 121 #else122 simulatePressure = NO;123 #endif124 118 125 119 NSEvent *event = [NSEvent mouseEventWithType:mouseEventType location:point modifierFlags:modifierFlags timestamp:GetCurrentEventTime() windowNumber:self.windowNumber context:[NSGraphicsContext currentContext] eventNumber:++gEventNumber clickCount:clickCount pressure:simulatePressure]; … … 129 123 } 130 124 131 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101003132 125 IMP simulatedAssociatedEventsMaskImpl = (IMP)__simulated_forceClickAssociatedEventsMask; 133 126 Method associatedEventsMaskMethod = class_getInstanceMethod([NSEvent class], @selector(associatedEventsMask)); … … 140 133 method_setImplementation(associatedEventsMaskMethod, originalAssociatedEventsMaskImpl); 141 134 } 142 #endif143 135 } 144 136 -
trunk/Tools/WebKitTestRunner/cocoa/TestControllerCocoa.mm
r237266 r237405 67 67 globalWebViewConfiguration._applePayEnabled = YES; 68 68 69 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || PLATFORM(IOS_FAMILY)70 69 WKCookieManagerSetStorageAccessAPIEnabled(WKContextGetCookieManager(context), true); 71 #endif72 70 73 71 WKWebsiteDataStore* poolWebsiteDataStore = (__bridge WKWebsiteDataStore *)WKContextGetWebsiteDataStore((__bridge WKContextRef)globalWebViewConfiguration.processPool); -
trunk/Tools/WebKitTestRunner/mac/EventSenderProxy.mm
r234685 r237405 86 86 _eventSender_eventNumber = eventNumber; 87 87 _eventSender_window = window; 88 #if defined(__LP64__) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 10100388 #if defined(__LP64__) 89 89 self->_type = NSEventTypePressure; 90 90 _eventSender_type = NSEventTypePressure; … … 326 326 } 327 327 328 #if defined(__LP64__) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101003328 #if defined(__LP64__) 329 329 void EventSenderProxy::sendMouseDownToStartPressureEvents() 330 330 { … … 574 574 { 575 575 } 576 #endif // defined(__LP64__) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101003576 #endif // defined(__LP64__) 577 577 578 578 void EventSenderProxy::mouseMoveTo(double x, double y)
Note:
See TracChangeset
for help on using the changeset viewer.