Changeset 246141 in webkit
- Timestamp:
- Jun 5, 2019, 8:24:19 PM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
- 1 moved
-
ChangeLog (modified) (1 diff)
-
DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj (modified) (7 diffs)
-
DumpRenderTree/mac/DumpRenderTreeDraggingInfo.mm (modified) (3 diffs)
-
TestRunnerShared/spi/AppKitTestSPI.h (moved) (moved from trunk/Tools/DumpRenderTree/mac/AppKitTestSPI.h ) (1 diff)
-
TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj (modified) (3 diffs)
-
TestWebKitAPI/mac/TestDraggingInfo.mm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r246136 r246141 1 2019-06-05 Andy Estes <aestes@apple.com> 2 3 [macOS] Stop calling -[NSDraggingItem setItem:] 4 https://bugs.webkit.org/show_bug.cgi?id=198588 5 <rdar://problem/48297453> 6 7 On macOS Catalina, use -[NSDraggingItem _initWithItem:] instead. 8 9 Reviewed by Wenson Hsieh. 10 11 * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: Fixed up file paths in the 12 TestRunnerShared group. 13 14 * DumpRenderTree/mac/DumpRenderTreeDraggingInfo.mm: 15 (-[DumpRenderTreeDraggingInfo enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:]): 16 Changed to call -[NSDraggingItem _initWithItem:] when available. 17 18 * TestRunnerShared/spi/AppKitTestSPI.h: Renamed from 19 Tools/DumpRenderTree/mac/AppKitTestSPI.h and moved NSDraggingItem internal interface 20 declarations here from DumpRenderTree. 21 22 * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: 23 Added TestRunnerShared/spi/AppKitTestSPI.h. 24 25 * TestWebKitAPI/mac/TestDraggingInfo.mm: 26 (-[TestDraggingInfo enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:]): 27 Changed to call -[NSDraggingItem _initWithItem:] when available. 28 1 29 2019-06-05 Jer Noble <jer.noble@apple.com> 2 30 -
trunk/Tools/DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj
r242325 r246141 294 294 2D403EA215087142005358D2 /* LayoutTestHelper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = LayoutTestHelper.m; path = mac/LayoutTestHelper.m; sourceTree = "<group>"; }; 295 295 2D403F19150871F9005358D2 /* LayoutTestHelper */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = LayoutTestHelper; sourceTree = BUILT_PRODUCTS_DIR; }; 296 2EDE0DAA1F5131DE00D5F8DF /* AppKitTestSPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = AppKitTestSPI.h; path = mac/AppKitTestSPI.h; sourceTree = "<group>"; };297 296 31117B3A15D9A56A00163BC8 /* MockWebNotificationProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MockWebNotificationProvider.h; path = mac/MockWebNotificationProvider.h; sourceTree = "<group>"; }; 298 297 31117B3B15D9A56A00163BC8 /* MockWebNotificationProvider.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MockWebNotificationProvider.mm; path = mac/MockWebNotificationProvider.mm; sourceTree = "<group>"; }; 299 3148A0551E6F90F400D3B316 /* IOSLayoutTestCommunication.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = IOSLayoutTestCommunication.cpp; path = ../TestRunnerShared/IOSLayoutTestCommunication.cpp; sourceTree = "<group>"; };300 3148A0561E6F90F400D3B316 /* IOSLayoutTestCommunication.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = IOSLayoutTestCommunication.h; path = ../TestRunnerShared/IOSLayoutTestCommunication.h; sourceTree = "<group>"; };298 3148A0551E6F90F400D3B316 /* IOSLayoutTestCommunication.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = IOSLayoutTestCommunication.cpp; sourceTree = "<group>"; }; 299 3148A0561E6F90F400D3B316 /* IOSLayoutTestCommunication.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IOSLayoutTestCommunication.h; sourceTree = "<group>"; }; 301 300 32A70AAB03705E1F00C91783 /* DumpRenderTreePrefix.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DumpRenderTreePrefix.h; sourceTree = "<group>"; }; 302 301 375F09710DAC3CB600C8B4E5 /* WebKitWeightWatcher100.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; name = WebKitWeightWatcher100.ttf; path = fonts/WebKitWeightWatcher100.ttf; sourceTree = "<group>"; }; … … 342 341 A134E5391890671C00901D06 /* DumpRenderTreeLibrary.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = DumpRenderTreeLibrary.xcconfig; path = mac/Configurations/DumpRenderTreeLibrary.xcconfig; sourceTree = "<group>"; }; 343 342 A16CD20D18907A7D0092363E /* BaseTarget.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = BaseTarget.xcconfig; path = mac/Configurations/BaseTarget.xcconfig; sourceTree = "<group>"; }; 343 A17A5A2C22A881090065C5F0 /* PencilKitTestSPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = PencilKitTestSPI.h; sourceTree = "<group>"; }; 344 A17A5A2D22A881090065C5F0 /* AppKitTestSPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppKitTestSPI.h; sourceTree = "<group>"; }; 345 A17A5A2E22A881090065C5F0 /* CoreGraphicsTestSPI.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CoreGraphicsTestSPI.h; sourceTree = "<group>"; }; 344 346 A19317FC1892855F001C52B1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = ios/Info.plist; sourceTree = "<group>"; }; 345 347 A19317FD18928738001C52B1 /* DumpRenderTreeApp.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = DumpRenderTreeApp.xcconfig; path = mac/Configurations/DumpRenderTreeApp.xcconfig; sourceTree = "<group>"; }; … … 422 424 E1B7808511AF1643007E1BC2 /* MockGeolocationProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MockGeolocationProvider.h; path = mac/MockGeolocationProvider.h; sourceTree = "<group>"; }; 423 425 E1B7808711AF1669007E1BC2 /* MockGeolocationProvider.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MockGeolocationProvider.mm; path = mac/MockGeolocationProvider.mm; sourceTree = "<group>"; }; 424 F44A531921B89A4400DBB99C /* InstanceMethodSwizzler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = InstanceMethodSwizzler.h; path = ../TestRunnerShared/cocoa/InstanceMethodSwizzler.h; sourceTree = "<group>"; };425 F44A531A21B89A4400DBB99C /* ClassMethodSwizzler.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = ClassMethodSwizzler.mm; path = ../TestRunnerShared/cocoa/ClassMethodSwizzler.mm; sourceTree = "<group>"; };426 F44A531B21B89A4400DBB99C /* ClassMethodSwizzler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ClassMethodSwizzler.h; path = ../TestRunnerShared/cocoa/ClassMethodSwizzler.h; sourceTree = "<group>"; };427 F44A531C21B89A4500DBB99C /* InstanceMethodSwizzler.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = InstanceMethodSwizzler.mm; path = ../TestRunnerShared/cocoa/InstanceMethodSwizzler.mm; sourceTree = "<group>"; };428 F4C3578820E8442700FA0748 /* LayoutTestSpellChecker.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = LayoutTestSpellChecker.mm; path = ../TestRunnerShared/cocoa/LayoutTestSpellChecker.mm; sourceTree = "<group>"; };429 F4C3578920E8442700FA0748 /* LayoutTestSpellChecker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = LayoutTestSpellChecker.h; path = ../TestRunnerShared/cocoa/LayoutTestSpellChecker.h; sourceTree = "<group>"; };426 F44A531921B89A4400DBB99C /* InstanceMethodSwizzler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InstanceMethodSwizzler.h; sourceTree = "<group>"; }; 427 F44A531A21B89A4400DBB99C /* ClassMethodSwizzler.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = ClassMethodSwizzler.mm; sourceTree = "<group>"; }; 428 F44A531B21B89A4400DBB99C /* ClassMethodSwizzler.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ClassMethodSwizzler.h; sourceTree = "<group>"; }; 429 F44A531C21B89A4500DBB99C /* InstanceMethodSwizzler.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = InstanceMethodSwizzler.mm; sourceTree = "<group>"; }; 430 F4C3578820E8442700FA0748 /* LayoutTestSpellChecker.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = LayoutTestSpellChecker.mm; sourceTree = "<group>"; }; 431 F4C3578920E8442700FA0748 /* LayoutTestSpellChecker.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LayoutTestSpellChecker.h; sourceTree = "<group>"; }; 430 432 F4D4235F1DD5045300678290 /* TextInputControllerIOS.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TextInputControllerIOS.m; path = ios/TextInputControllerIOS.m; sourceTree = "<group>"; }; 431 433 F4D423601DD5046900678290 /* TextInputController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = TextInputController.h; sourceTree = "<group>"; }; … … 561 563 isa = PBXGroup; 562 564 children = ( 563 2EDE0DAA1F5131DE00D5F8DF /* AppKitTestSPI.h */,564 565 0F18E70E1D6BACB60027E547 /* UIScriptControllerMac.mm */, 565 566 ); … … 702 703 children = ( 703 704 F4B6C31820E84382008AC225 /* cocoa */, 705 A17A5A2B22A880D80065C5F0 /* spi */, 704 706 3148A0551E6F90F400D3B316 /* IOSLayoutTestCommunication.cpp */, 705 707 3148A0561E6F90F400D3B316 /* IOSLayoutTestCommunication.h */, 706 708 ); 707 709 name = TestRunnerShared; 708 path = ../ WebKitTestRunner;710 path = ../TestRunnerShared; 709 711 sourceTree = "<group>"; 710 712 }; … … 760 762 sourceTree = "<group>"; 761 763 }; 764 A17A5A2B22A880D80065C5F0 /* spi */ = { 765 isa = PBXGroup; 766 children = ( 767 A17A5A2D22A881090065C5F0 /* AppKitTestSPI.h */, 768 A17A5A2E22A881090065C5F0 /* CoreGraphicsTestSPI.h */, 769 A17A5A2C22A881090065C5F0 /* PencilKitTestSPI.h */, 770 ); 771 path = spi; 772 sourceTree = "<group>"; 773 }; 762 774 A803FF6409CAACC1009B2A37 /* Frameworks */ = { 763 775 isa = PBXGroup; … … 841 853 F4C3578820E8442700FA0748 /* LayoutTestSpellChecker.mm */, 842 854 ); 843 name= cocoa;855 path = cocoa; 844 856 sourceTree = "<group>"; 845 857 }; -
trunk/Tools/DumpRenderTree/mac/DumpRenderTreeDraggingInfo.mm
r240749 r246141 32 32 #if !PLATFORM(IOS_FAMILY) 33 33 34 #import "AppKitTestSPI.h" 34 35 #import "DumpRenderTree.h" 35 36 #import "DumpRenderTreeFileDraggingSource.h" … … 38 39 #import <WebKit/WebKit.h> 39 40 #import <wtf/RetainPtr.h> 40 41 @interface NSDraggingItem ()42 - (void)setItem:(id)item;43 @end44 41 45 42 @interface DumpRenderTreeFilePromiseReceiver : NSFilePromiseReceiver { … … 278 275 [allFilePromiseReceivers() addObject:receiver.get()]; 279 276 277 #if HAVE(NSDRAGGINGITEM_INITWITHITEM) 278 auto item = adoptNS([[NSDraggingItem alloc] _initWithItem:receiver.get()]); 279 #else 280 280 auto item = adoptNS([[NSDraggingItem alloc] initWithPasteboardWriter:(id <NSPasteboardWriting>)receiver.get()]); // FIXME: <https://webkit.org/b/194060> Pass an object of the right type. 281 281 [item setItem:receiver.get()]; 282 #endif 282 283 283 284 block(item.get(), 0, &stop); -
trunk/Tools/TestRunnerShared/spi/AppKitTestSPI.h
r246140 r246141 40 40 #endif 41 41 42 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101500 43 #define HAVE_NSDRAGGINGITEM_INITWITHITEM 1 44 #endif 45 46 @interface NSDraggingItem () 47 #if HAVE(NSDRAGGINGITEM_INITWITHITEM) 48 - (instancetype)_initWithItem:(id)item; 49 #else 50 - (void)setItem:(id)item; 51 #endif 52 @end 53 42 54 #endif // PLATFORM(MAC) 43 55 -
trunk/Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
r246136 r246141 2031 2031 A17991891E1CA24100A505ED /* SharedBufferTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SharedBufferTest.cpp; sourceTree = "<group>"; }; 2032 2032 A179918A1E1CA24100A505ED /* SharedBufferTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SharedBufferTest.h; sourceTree = "<group>"; }; 2033 A17A5A3422A887EC0065C5F0 /* AppKitTestSPI.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppKitTestSPI.h; sourceTree = "<group>"; }; 2033 2034 A17EAC542083056E0084B41B /* find.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; name = find.pdf; path = Tests/WebKit/find.pdf; sourceTree = SOURCE_ROOT; }; 2034 2035 A180C0F91EE67DF000468F47 /* RunOpenPanel.mm */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.objcpp; path = RunOpenPanel.mm; sourceTree = "<group>"; }; … … 2493 2494 2E9660DC16C07D7B00371B42 /* ios */, 2494 2495 BCA61C3A11700B9400460D1E /* mac */, 2496 A17A5A3122A887610065C5F0 /* TestRunnerShared */, 2495 2497 BC131A9E1171317C00B69727 /* config.h */, 2496 2498 7C6BBD8B19CEA63000C1F5E0 /* Counters.cpp */, … … 3163 3165 ); 3164 3166 name = Resources; 3167 sourceTree = "<group>"; 3168 }; 3169 A17A5A3122A887610065C5F0 /* TestRunnerShared */ = { 3170 isa = PBXGroup; 3171 children = ( 3172 A17A5A3322A887CE0065C5F0 /* spi */, 3173 ); 3174 name = TestRunnerShared; 3175 path = ../TestRunnerShared; 3176 sourceTree = "<group>"; 3177 }; 3178 A17A5A3322A887CE0065C5F0 /* spi */ = { 3179 isa = PBXGroup; 3180 children = ( 3181 A17A5A3422A887EC0065C5F0 /* AppKitTestSPI.h */, 3182 ); 3183 path = spi; 3165 3184 sourceTree = "<group>"; 3166 3185 }; -
trunk/Tools/TestWebKitAPI/mac/TestDraggingInfo.mm
r242339 r246141 29 29 #if ENABLE(DRAG_SUPPORT) && PLATFORM(MAC) 30 30 31 #import "AppKitTestSPI.h" 31 32 #import "DragAndDropSimulator.h" 32 33 #import "TestFilePromiseReceiver.h" 33 34 #import <wtf/WeakObjCPtr.h> 34 35 @interface NSDraggingItem ()36 @property (nonatomic, strong) id item;37 @end38 35 39 36 @implementation TestDraggingInfo { … … 86 83 - (void)enumerateDraggingItemsWithOptions:(NSDraggingItemEnumerationOptions)enumerationOptions forView:(NSView *)view classes:(NSArray<Class> *)classes searchOptions:(NSDictionary<NSString *, id> *)searchOptions usingBlock:(void (^)(NSDraggingItem *, NSInteger, BOOL *))block 87 84 { 88 // FIXME: Much of this can be shared with existing drag and drop testing code in DumpRenderTree. 85 // FIXME: Much of this can be shared with existing drag and drop testing code in DumpRenderTree, 86 // perhaps by putting it in Tools/TestRunnerShared. 89 87 90 88 if (enumerationOptions) { … … 116 114 [_filePromiseReceivers addObject:receiver.get()]; 117 115 116 #if HAVE(NSDRAGGINGITEM_INITWITHITEM) 117 auto item = adoptNS([[NSDraggingItem alloc] _initWithItem:receiver.get()]); 118 #else 118 119 auto item = adoptNS([[NSDraggingItem alloc] initWithPasteboardWriter:(id <NSPasteboardWriting>)receiver.get()]); // FIXME: <https://webkit.org/b/194060> Pass an object of the right type. 119 120 [item setItem:receiver.get()]; 121 #endif 120 122 121 123 block(item.get(), 0, &stop);
Note:
See TracChangeset
for help on using the changeset viewer.