- Revision
- 252172
- Author
- [email protected]
- Date
- 2019-11-06 20:05:01 -0800 (Wed, 06 Nov 2019)
Log Message
REGRESSION: [ iOS ] ( r251015 ) Layout Test fast/text/whitespace/pre-wrap-overflow-selection.html is flaky
https://bugs.webkit.org/show_bug.cgi?id=203366
<rdar://problem/56580680>
Reviewed by Simon Fraser.
Source/WebKit:
WKBundlePageForceRepaint may fail to do synchronous layer flush if there is a pending layer flush in-flight and waiting
for completion message from UI process. Layer flush also flushes pending editor state so that doesn't get done either.
This may cause randomness in test results.
In this case the randomness is the switch between simple and complex line layout, triggered by editor state flush. The results
between line layout paths are observably identical but produce slightly different render tree dumps.
* WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
(WKBundlePageFlushPendingEditorStateUpdate):
* WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
Add a function for forcing editor state flush, called from the test runner dump() function.
Tools:
* WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
(WTR::InjectedBundlePage::dump):
LayoutTests:
* platform/ios/TestExpectations:
Modified Paths
Diff
Modified: trunk/LayoutTests/ChangeLog (252171 => 252172)
--- trunk/LayoutTests/ChangeLog 2019-11-07 04:03:58 UTC (rev 252171)
+++ trunk/LayoutTests/ChangeLog 2019-11-07 04:05:01 UTC (rev 252172)
@@ -1,3 +1,13 @@
+2019-11-06 Antti Koivisto <[email protected]>
+
+ REGRESSION: [ iOS ] ( r251015 ) Layout Test fast/text/whitespace/pre-wrap-overflow-selection.html is flaky
+ https://bugs.webkit.org/show_bug.cgi?id=203366
+ <rdar://problem/56580680>
+
+ Reviewed by Simon Fraser.
+
+ * platform/ios/TestExpectations:
+
2019-11-06 Nikita Vasilyev <[email protected]>
Web Inspector: Display color picker for p3 colors
Modified: trunk/LayoutTests/platform/ios/TestExpectations (252171 => 252172)
--- trunk/LayoutTests/platform/ios/TestExpectations 2019-11-07 04:03:58 UTC (rev 252171)
+++ trunk/LayoutTests/platform/ios/TestExpectations 2019-11-07 04:05:01 UTC (rev 252172)
@@ -3461,8 +3461,6 @@
webkit.org/b/203291 imported/w3c/web-platform-tests/css/css-transitions/before-load-001.html [ Failure ]
webkit.org/b/203291 imported/w3c/web-platform-tests/css/css-transitions/properties-value-auto-001.html [ Failure ]
-webkit.org/b/203366 fast/text/whitespace/pre-wrap-overflow-selection.html [ Pass Failure ]
-
webkit.org/b/203305 imported/w3c/web-platform-tests/css/css-transitions/properties-value-001.html [ Pass Failure ]
webkit.org/b/203305 [ Debug ] imported/w3c/web-platform-tests/css/css-transitions/properties-value-inherit-001.html [ Pass Failure ]
webkit.org/b/203356 [ Debug ] imported/w3c/web-platform-tests/css/css-transitions/properties-value-003.html [ Pass Failure ]
Modified: trunk/Source/WebKit/ChangeLog (252171 => 252172)
--- trunk/Source/WebKit/ChangeLog 2019-11-07 04:03:58 UTC (rev 252171)
+++ trunk/Source/WebKit/ChangeLog 2019-11-07 04:05:01 UTC (rev 252172)
@@ -1,3 +1,24 @@
+2019-11-06 Antti Koivisto <[email protected]>
+
+ REGRESSION: [ iOS ] ( r251015 ) Layout Test fast/text/whitespace/pre-wrap-overflow-selection.html is flaky
+ https://bugs.webkit.org/show_bug.cgi?id=203366
+ <rdar://problem/56580680>
+
+ Reviewed by Simon Fraser.
+
+ WKBundlePageForceRepaint may fail to do synchronous layer flush if there is a pending layer flush in-flight and waiting
+ for completion message from UI process. Layer flush also flushes pending editor state so that doesn't get done either.
+ This may cause randomness in test results.
+
+ In this case the randomness is the switch between simple and complex line layout, triggered by editor state flush. The results
+ between line layout paths are observably identical but produce slightly different render tree dumps.
+
+ * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
+ (WKBundlePageFlushPendingEditorStateUpdate):
+ * WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h:
+
+ Add a function for forcing editor state flush, called from the test runner dump() function.
+
2019-11-06 Chris Dumez <[email protected]>
Unreviewed, fix watchOS build after r252011.
Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp (252171 => 252172)
--- trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp 2019-11-07 04:03:58 UTC (rev 252171)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp 2019-11-07 04:05:01 UTC (rev 252172)
@@ -513,6 +513,11 @@
WebKit::toImpl(page)->forceRepaintWithoutCallback();
}
+void WKBundlePageFlushPendingEditorStateUpdate(WKBundlePageRef page)
+{
+ WebKit::toImpl(page)->flushPendingEditorStateUpdate();
+}
+
void WKBundlePageSimulateMouseDown(WKBundlePageRef page, int button, WKPoint position, int clickCount, WKEventModifiers modifiers, double time)
{
WebKit::toImpl(page)->simulateMouseDown(button, WebKit::toIntPoint(position), clickCount, modifiers, WallTime::fromRawSeconds(time));
Modified: trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h (252171 => 252172)
--- trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h 2019-11-07 04:03:58 UTC (rev 252171)
+++ trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h 2019-11-07 04:05:01 UTC (rev 252172)
@@ -64,6 +64,7 @@
WK_EXPORT void WKBundlePageSetScaleAtOrigin(WKBundlePageRef page, double scale, WKPoint origin);
WK_EXPORT void WKBundlePageForceRepaint(WKBundlePageRef page);
+WK_EXPORT void WKBundlePageFlushPendingEditorStateUpdate(WKBundlePageRef page);
WK_EXPORT void WKBundlePageSimulateMouseDown(WKBundlePageRef page, int button, WKPoint position, int clickCount, WKEventModifiers modifiers, double time);
WK_EXPORT void WKBundlePageSimulateMouseUp(WKBundlePageRef page, int button, WKPoint position, int clickCount, WKEventModifiers modifiers, double time);
Modified: trunk/Tools/ChangeLog (252171 => 252172)
--- trunk/Tools/ChangeLog 2019-11-07 04:03:58 UTC (rev 252171)
+++ trunk/Tools/ChangeLog 2019-11-07 04:05:01 UTC (rev 252172)
@@ -1,3 +1,14 @@
+2019-11-06 Antti Koivisto <[email protected]>
+
+ REGRESSION: [ iOS ] ( r251015 ) Layout Test fast/text/whitespace/pre-wrap-overflow-selection.html is flaky
+ https://bugs.webkit.org/show_bug.cgi?id=203366
+ <rdar://problem/56580680>
+
+ Reviewed by Simon Fraser.
+
+ * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
+ (WTR::InjectedBundlePage::dump):
+
2019-11-06 Fujii Hironori <[email protected]>
WEBCORE_TESTSUPPORT_EXPORT should be used only for WebCoreTestSupport, not for WebCore
Modified: trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp (252171 => 252172)
--- trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp 2019-11-07 04:03:58 UTC (rev 252171)
+++ trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp 2019-11-07 04:05:01 UTC (rev 252172)
@@ -890,6 +890,7 @@
// Force a paint before dumping. This matches DumpRenderTree on Windows. (DumpRenderTree on Mac
// does this at a slightly different time.) See <http://webkit.org/b/55469> for details.
WKBundlePageForceRepaint(m_page);
+ WKBundlePageFlushPendingEditorStateUpdate(m_page);
WKBundleFrameRef frame = WKBundlePageGetMainFrame(m_page);
WKRetainPtr<WKURLRef> urlRef = adoptWK(WKBundleFrameCopyURL(frame));