Title: [292005] trunk
- Revision
- 292005
- Author
- [email protected]
- Date
- 2022-03-28 16:23:47 -0700 (Mon, 28 Mar 2022)
Log Message
REGRESSION (r290794): [ iOS Debug ] 4 editing/selection/* tests are constant timeouts
https://bugs.webkit.org/show_bug.cgi?id=238155
rdar://90593957
Reviewed by Aditya Keerthi.
Source/WebKit:
After the changes in r290794, we now preemptively compute and send an excessive amount of autocorrection
contexts to the UI process when an element gains focus, such that the UI process is capable of immediately
responding to calls to `-requestAutocorrectionContextWithCompletionHandler:` without relying on synchronous IPC
to the web process. This made several (already-fairly-slow) tests in editing/selection time out, due to WebKit
computing and sending an excessive amount of this contextual information.
To mitigate this, only perform this preemptive autocorrection context computation if the focused element is
actually changing (i.e., we're not refocusing the same element). Covered by removing several [ Slow ] test
expectations that should no longer be needed.
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::elementDidFocus):
LayoutTests:
Unmark several tests that no longer need to be marked as [ Slow ].
* platform/ios/TestExpectations:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (292004 => 292005)
--- trunk/LayoutTests/ChangeLog 2022-03-28 23:04:17 UTC (rev 292004)
+++ trunk/LayoutTests/ChangeLog 2022-03-28 23:23:47 UTC (rev 292005)
@@ -1,3 +1,15 @@
+2022-03-28 Wenson Hsieh <[email protected]>
+
+ REGRESSION (r290794): [ iOS Debug ] 4 editing/selection/* tests are constant timeouts
+ https://bugs.webkit.org/show_bug.cgi?id=238155
+ rdar://90593957
+
+ Reviewed by Aditya Keerthi.
+
+ Unmark several tests that no longer need to be marked as [ Slow ].
+
+ * platform/ios/TestExpectations:
+
2022-03-28 Cameron McCormack <[email protected]>
Remove the 1ms minimum for setTimeout
Modified: trunk/LayoutTests/platform/ios/TestExpectations (292004 => 292005)
--- trunk/LayoutTests/platform/ios/TestExpectations 2022-03-28 23:04:17 UTC (rev 292004)
+++ trunk/LayoutTests/platform/ios/TestExpectations 2022-03-28 23:23:47 UTC (rev 292005)
@@ -2676,13 +2676,6 @@
webkit.org/b/210173 webrtc/h265.html [ Skip ]
-# webkit.org/b/238155 [ Debug ] These 5 tests are timing out on iOS Debug Specifically.
-[ Debug ] editing/selection/move-by-word-visually-single-space-one-element.html [ Slow ]
-[ Debug ] editing/selection/move-by-word-visually-single-space-inline-element.html [ Slow ]
-[ Debug ] editing/selection/move-by-word-visually-multi-line.html [ Slow ]
-[ Debug ] editing/selection/move-by-word-visually-mac.html [ Slow ]
-[ Debug ] editing/selection/move-by-word-visually-inline-block-positioned-element.html [ Slow ]
-
webkit.org/b/209878 [ Debug ] webrtc/datachannel/multiple-connections.html [ Slow ]
webkit.org/b/177323 imported/w3c/web-platform-tests/fetch/security/embedded-credentials.tentative.sub.html [ Pass Failure ]
Modified: trunk/Source/WebKit/ChangeLog (292004 => 292005)
--- trunk/Source/WebKit/ChangeLog 2022-03-28 23:04:17 UTC (rev 292004)
+++ trunk/Source/WebKit/ChangeLog 2022-03-28 23:23:47 UTC (rev 292005)
@@ -1,3 +1,24 @@
+2022-03-28 Wenson Hsieh <[email protected]>
+
+ REGRESSION (r290794): [ iOS Debug ] 4 editing/selection/* tests are constant timeouts
+ https://bugs.webkit.org/show_bug.cgi?id=238155
+ rdar://90593957
+
+ Reviewed by Aditya Keerthi.
+
+ After the changes in r290794, we now preemptively compute and send an excessive amount of autocorrection
+ contexts to the UI process when an element gains focus, such that the UI process is capable of immediately
+ responding to calls to `-requestAutocorrectionContextWithCompletionHandler:` without relying on synchronous IPC
+ to the web process. This made several (already-fairly-slow) tests in editing/selection time out, due to WebKit
+ computing and sending an excessive amount of this contextual information.
+
+ To mitigate this, only perform this preemptive autocorrection context computation if the focused element is
+ actually changing (i.e., we're not refocusing the same element). Covered by removing several [ Slow ] test
+ expectations that should no longer be needed.
+
+ * WebProcess/WebPage/WebPage.cpp:
+ (WebKit::WebPage::elementDidFocus):
+
2022-03-28 Per Arne Vollan <[email protected]>
[macOS] Block access to IOKit class
Modified: trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp (292004 => 292005)
--- trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp 2022-03-28 23:04:17 UTC (rev 292004)
+++ trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp 2022-03-28 23:23:47 UTC (rev 292005)
@@ -6297,6 +6297,9 @@
}
if (is<HTMLSelectElement>(element) || isTextFormControlOrEditableContent(element)) {
+#if PLATFORM(IOS_FAMILY)
+ bool isChangingFocusedElement = m_focusedElement != &element;
+#endif
m_focusedElement = &element;
m_hasPendingInputContextUpdateAfterBlurringAndRefocusingElement = false;
@@ -6306,7 +6309,7 @@
if (element.document().fullscreenManager().isFullscreen())
element.document().fullscreenManager().cancelFullscreen();
#endif
- if (m_userIsInteracting || m_keyboardIsAttached)
+ if (isChangingFocusedElement && (m_userIsInteracting || m_keyboardIsAttached))
m_sendAutocorrectionContextAfterFocusingElement = true;
auto information = focusedElementInformation();
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes