RESOLVED FIXED 205964
Share TextChecker stub for ports without text checking
https://bugs.webkit.org/show_bug.cgi?id=205964
Summary Share TextChecker stub for ports without text checking
Don Olmstead
Reported 2020-01-08 15:37:19 PST
Currently only GTK and Cocoa have TextChecker implementations. Add a stub for WPE, Win and PlayStation.
Attachments
Patch (8.07 KB, patch)
2020-01-08 15:54 PST, Don Olmstead
no flags
Patch (8.58 KB, patch)
2020-01-08 15:59 PST, Don Olmstead
no flags
Patch (8.65 KB, patch)
2020-01-08 16:38 PST, Don Olmstead
no flags
Patch (10.67 KB, patch)
2020-01-13 10:03 PST, Don Olmstead
ross.kirsling: review+
commit-queue: commit-queue-
Patch (10.69 KB, patch)
2020-01-14 09:22 PST, Don Olmstead
no flags
Patch (10.68 KB, patch)
2020-01-14 09:23 PST, Don Olmstead
no flags
Don Olmstead
Comment 1 2020-01-08 15:54:34 PST Comment hidden (obsolete)
Don Olmstead
Comment 2 2020-01-08 15:59:32 PST
Created attachment 387153 [details] Patch Forgot to modify FTW.
Ross Kirsling
Comment 3 2020-01-08 16:10:50 PST
Comment on attachment 387150 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=387150&action=review > Source/WebKit/UIProcess/TextChecker.cppSource/WebKit/UIProcess/wpe/TextCheckerWPE.cpp:2 > - * Copyright (C) 2014 Igalia S.L. > + * Copyright (C) 2020 Sony Interactive Entertainment Inc. Whether this is a merge or a rename depends on how you look at it, but are you sure we should ditch the existing copyright? > Source/WebKit/UIProcess/TextChecker.cppSource/WebKit/UIProcess/wpe/TextCheckerWPE.cpp:45 > -static TextCheckerState textCheckerState; > +TextCheckerState& checkerState() > +{ > + static TextCheckerState textCheckerState; > + return textCheckerState; > +} > > const TextCheckerState& TextChecker::state() > { > - return textCheckerState; > + return checkerState(); > } This is harmless but also seems maybe unnecessary?
Don Olmstead
Comment 4 2020-01-08 16:38:46 PST
Don Olmstead
Comment 5 2020-01-13 10:03:54 PST
Created attachment 387540 [details] Patch Add Xcode bits
WebKit Commit Bot
Comment 6 2020-01-13 14:50:50 PST
Comment on attachment 387540 [details] Patch Rejecting attachment 387540 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'build', '--no-clean', '--no-update', '--build-style=release', '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 5000 characters of output: _MOUSE_CURSOR_SCALE -DENABLE_NETWORK_CACHE_SPECULATIVE_REVALIDATION -DENABLE_NOTIFICATIONS -DENABLE_PAYMENT_REQUEST -DENABLE_PDFKIT_PLUGIN -DENABLE_POINTER_EVENTS -DENABLE_POINTER_LOCK -DENABLE_PUBLIC_SUFFIX_LIST -DENABLE_REMOTE_INSPECTOR -DENABLE_RESIZE_OBSERVER -DENABLE_RESOURCE_LOAD_STATISTICS -DENABLE_RESOURCE_USAGE -DENABLE_RUBBER_BANDING -DENABLE_SANDBOX_EXTENSIONS -DENABLE_SERVER_PRECONNECT -DENABLE_SERVICE_CONTROLS -DENABLE_SERVICE_WORKER -DENABLE_SHAREABLE_RESOURCE -DENABLE_SPEECH_SYNTHESIS -DENABLE_STREAMS_API -DENABLE_SVG_FONTS -DENABLE_TELEPHONE_NUMBER_DETECTION -DENABLE_TEXT_AUTOSIZING -DENABLE_USERSELECT_ALL -DENABLE_USER_MESSAGE_HANDLERS -DENABLE_VARIATION_FONTS -DENABLE_VIDEO -DENABLE_VIDEO_PRESENTATION_MODE -DENABLE_VIDEO_TRACK -DENABLE_VIDEO_USES_ELEMENT_FULLSCREEN -DENABLE_WEBDRIVER_MOUSE_INTERACTIONS -DENABLE_WEBDRIVER_KEYBOARD_INTERACTIONS -DENABLE_WEBGL -DENABLE_WEBGL2 -DENABLE_WEBGPU -DENABLE_WEB_AUDIO -DENABLE_WEB_AUTHN -DENABLE_WEB_CRYPTO -DENABLE_WEB_RTC -DENABLE_WIRELESS_PLAYBACK_TARGET -DENABLE_XSLT -DHAVE_CORE_PREDICTION -DU_HIDE_DEPRECATED_API -DU_DISABLE_RENAMING=1 -DU_SHOW_CPLUSPLUS_API=0 -DFRAMEWORK_NAME=WebKit -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mmacosx-version-min=10.14 -g -fvisibility=hidden -fvisibility-inlines-hidden -fno-threadsafe-statics -Wno-sign-conversion -Winfinite-recursion -Wmove -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -iquote /Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKit.build/WebKit-generated-files.hmap -I/Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKit.build/WebKit-own-target-headers.hmap -I/Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKit.build/WebKit-all-target-headers.hmap -iquote /Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKit.build/WebKit-project-headers.hmap -I/Volumes/Data/EWS/WebKit/WebKitBuild/Release/include -I/Volumes/Data/EWS/WebKit/WebKitBuild/Release/usr/local/include -I/Volumes/Data/EWS/WebKit/WebKitBuild/Release/WebCore.framework/PrivateHeaders/ForwardingHeaders -I/Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/WebKit2 -I/Volumes/Data/EWS/WebKit/WebKitBuild/Release/usr/local/include/WebKitAdditions -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/local/include/WebKitAdditions -I/Volumes/Data/EWS/WebKit/WebKitBuild/Release/usr/local/include/webrtc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/local/include/webrtc -I/Volumes/Data/EWS/WebKit/Source/WebKit -I/Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKit.build/DerivedSources-normal/x86_64 -I/Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKit.build/DerivedSources/x86_64 -I/Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKit.build/DerivedSources -Wall -Wextra -Wcast-qual -Wchar-subscripts -Wextra-tokens -Wformat-security -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wno-unused-parameter -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-compare -Wimplicit-fallthrough -F/Volumes/Data/EWS/WebKit/WebKitBuild/Release -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/PrivateFrameworks -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks -iframework /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/PrivateFrameworks -isystem /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/System.framework/PrivateHeaders -include /Volumes/Data/EWS/WebKit/WebKitBuild/PrecompiledHeaders/WebKit2Prefix-fznpdzohnkiztteqyhyuitpillqx/WebKit2Prefix.h -MMD -MT dependencies -MF /Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKit.build/Objects-normal/x86_64/UnifiedSource63.d --serialize-diagnostics /Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKit.build/Objects-normal/x86_64/UnifiedSource63.dia -c /Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/WebKit2/unified-sources/UnifiedSource63.cpp -o /Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKit.build/Objects-normal/x86_64/UnifiedSource63.o ** BUILD FAILED ** The following build commands failed: CompileC /Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKit.build/Objects-normal/x86_64/UnifiedSource55.o /Volumes/Data/EWS/WebKit/WebKitBuild/Release/DerivedSources/WebKit2/unified-sources/UnifiedSource55.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Full output: https://webkit-queues.webkit.org/results/13303609
Don Olmstead
Comment 7 2020-01-14 09:22:49 PST
Created attachment 387663 [details] Patch Rebased after build fix
Don Olmstead
Comment 8 2020-01-14 09:23:30 PST
Brent Fulgham
Comment 9 2020-01-14 09:34:39 PST
Seems like a good idea!
Don Olmstead
Comment 10 2020-01-14 09:37:18 PST
(In reply to Brent Fulgham from comment #9) > Seems like a good idea! Yea! Would've landed yesterday but I hit a unified sources issue 🤦‍♂️
WebKit Commit Bot
Comment 11 2020-01-14 10:37:45 PST
Comment on attachment 387665 [details] Patch Clearing flags on attachment: 387665 Committed r254518: <https://trac.webkit.org/changeset/254518>
WebKit Commit Bot
Comment 12 2020-01-14 10:37:47 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 13 2020-01-14 10:38:14 PST
Note You need to log in before you can comment on or make changes to this bug.