Changeset 280986 in webkit
- Timestamp:
- Aug 12, 2021, 2:13:45 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/ios-wk2/TestExpectations (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKit/Platform/spi/ios/TextInputSPI.h (modified) (1 diff)
-
Source/WebKit/Platform/spi/ios/UIKitSPI.h (modified) (2 diffs)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/WebKitTestRunner/ios/TestControllerIOS.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r280985 r280986 1 2021-08-12 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 [ iOS Debug] 3 editing/pasteboard/smart-paste-paragraph tests are flaky failing 4 https://bugs.webkit.org/show_bug.cgi?id=228285 5 rdar://81118724 6 7 Reviewed by Tim Horton and Aditya Keerthi. 8 9 Remove the flaky test failure expectations. 10 11 * platform/ios-wk2/TestExpectations: 12 1 13 2021-08-12 Ayumi Kojima <ayumi_kojima@apple.com> 2 14 -
trunk/LayoutTests/platform/ios-wk2/TestExpectations
r280937 r280986 1320 1320 # <rdar://problem/56512107> [ iOS ] Three editing/pasteboard/smart-paste-paragraph tests have been flaky since they landed in r243124 (203264) 1321 1321 webkit.org/b/203264 [ Release ] editing/pasteboard/smart-paste-paragraph-001.html [ Pass Failure ] 1322 webkit.org/b/228285 editing/pasteboard/smart-paste-paragraph-002.html [ Pass Failure ]1323 webkit.org/b/228285 editing/pasteboard/smart-paste-paragraph-003.html [ Pass Failure ]1324 webkit.org/b/228285 editing/pasteboard/smart-paste-paragraph-004.html [ Pass Failure ]1325 1322 1326 1323 # Timeout running prompt() because mock implementation is absent. -
trunk/Source/WebKit/ChangeLog
r280981 r280986 1 2021-08-12 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 [ iOS Debug] 3 editing/pasteboard/smart-paste-paragraph tests are flaky failing 4 https://bugs.webkit.org/show_bug.cgi?id=228285 5 rdar://81118724 6 7 Reviewed by Tim Horton and Aditya Keerthi. 8 9 Add SPI declarations. See Tools/ChangeLog for more details. 10 11 * Platform/spi/ios/TextInputSPI.h: 12 * Platform/spi/ios/UIKitSPI.h: 13 1 14 2021-08-12 Said Abou-Hallawa <said@apple.com> 2 15 -
trunk/Source/WebKit/Platform/spi/ios/TextInputSPI.h
r180441 r280986 28 28 #if USE(APPLE_INTERNAL_SDK) 29 29 30 #import <TextInput/TIPreferencesController.h> 30 31 #import <TextInput/TI_NSStringExtras.h> 31 32 32 33 #else 34 35 @protocol TIPreferencesControllerActions <NSObject> 36 - (BOOL)oneTimeActionCompleted:(NSString *)actionKey; 37 - (void)didTriggerOneTimeAction:(NSString *)actionKey; 38 @end 33 39 34 40 @interface NSString (TextInputDetails) -
trunk/Source/WebKit/Platform/spi/ios/UIKitSPI.h
r280767 r280986 1110 1110 #endif 1111 1111 1112 @protocol TIPreferencesControllerActions; 1113 1112 1114 @interface UIKeyboardPreferencesController : NSObject 1113 1115 + (UIKeyboardPreferencesController *)sharedPreferencesController; … … 1115 1117 - (BOOL)boolForPreferenceKey:(NSString *)key; 1116 1118 - (id)valueForPreferenceKey:(NSString *)key; 1119 @property (nonatomic, readonly) UIKeyboardPreferencesController<TIPreferencesControllerActions> *preferencesActions; 1117 1120 @end 1118 1121 -
trunk/Tools/ChangeLog
r280983 r280986 1 2021-08-12 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 [ iOS Debug] 3 editing/pasteboard/smart-paste-paragraph tests are flaky failing 4 https://bugs.webkit.org/show_bug.cgi?id=228285 5 rdar://81118724 6 7 Reviewed by Tim Horton and Aditya Keerthi. 8 9 These three editing tests occasionally fail when synthesizing a double-tap gesture in order to select a word in 10 editable content. This happens because unless UIKit has observed at least one keypress event (e.g. from a 11 previous editing test), it presents the software keyboard underneath `-[UIKeyboardImpl showKeyboardIfNeeded]` 12 when setting the selection via UITextSelectionInteraction. This causes the input view frame to expand from the 13 collapsed (UCB) height of 44pt to the full software keyboard height, which in turn causes the second touch in 14 the synthesized double tap gesture to _sometimes_ hit-test to the wrong location, resulting in these test 15 failures. 16 17 To mitigate this, ensure that we have consistent behavior in layout tests when changing the text selection in 18 editable content by directly setting a TextInput default to make the keyboard behave as if it has previously 19 seen a keypress via the hardware keyboard. 20 21 * WebKitTestRunner/ios/TestControllerIOS.mm: 22 (WTR::TestController::platformResetStateToConsistentValues): 23 1 24 2021-08-12 Patrick Angle <pangle@apple.com> 2 25 -
trunk/Tools/WebKitTestRunner/ios/TestControllerIOS.mm
r280867 r280986 33 33 #import "TestInvocation.h" 34 34 #import "TestRunnerWKWebView.h" 35 #import "TextInputSPI.h" 35 36 #import "UIKitSPI.h" 36 37 #import <Foundation/Foundation.h> … … 165 166 } 166 167 168 // Ensures that changing selection does not cause the software keyboard to appear, 169 // even when the hardware keyboard is attached. 170 auto hardwareKeyboardLastSeenPreferenceKey = @"HardwareKeyboardLastSeen"; 171 auto preferencesActions = keyboardPreferences.preferencesActions; 172 if (![preferencesActions oneTimeActionCompleted:hardwareKeyboardLastSeenPreferenceKey]) 173 [preferencesActions didTriggerOneTimeAction:hardwareKeyboardLastSeenPreferenceKey]; 174 167 175 // Disables the dictation keyboard shortcut for testing. 168 176 auto dictationKeyboardShortcutPreferenceKey = @"HWKeyboardDictationShortcut";
Note:
See TracChangeset
for help on using the changeset viewer.