- Revision
- 252292
- Author
- [email protected]
- Date
- 2019-11-08 16:52:17 -0800 (Fri, 08 Nov 2019)
Log Message
Cherry-pick r252172. rdar://problem/56580680
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:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: tags/Safari-609.1.10.1/LayoutTests/ChangeLog (252291 => 252292)
--- tags/Safari-609.1.10.1/LayoutTests/ChangeLog 2019-11-09 00:52:13 UTC (rev 252291)
+++ tags/Safari-609.1.10.1/LayoutTests/ChangeLog 2019-11-09 00:52:17 UTC (rev 252292)
@@ -1,5 +1,52 @@
2019-11-07 Alan Coon <[email protected]>
+ Cherry-pick r252172. rdar://problem/56580680
+
+ 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:
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 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-07 Alan Coon <[email protected]>
+
Cherry-pick r252156. rdar://problem/55821375
Screen locks while watching previously-muted-then-unmuted video
Modified: tags/Safari-609.1.10.1/LayoutTests/platform/ios/TestExpectations (252291 => 252292)
--- tags/Safari-609.1.10.1/LayoutTests/platform/ios/TestExpectations 2019-11-09 00:52:13 UTC (rev 252291)
+++ tags/Safari-609.1.10.1/LayoutTests/platform/ios/TestExpectations 2019-11-09 00:52:17 UTC (rev 252292)
@@ -3464,8 +3464,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: tags/Safari-609.1.10.1/Source/WebKit/ChangeLog (252291 => 252292)
--- tags/Safari-609.1.10.1/Source/WebKit/ChangeLog 2019-11-09 00:52:13 UTC (rev 252291)
+++ tags/Safari-609.1.10.1/Source/WebKit/ChangeLog 2019-11-09 00:52:17 UTC (rev 252292)
@@ -1,5 +1,63 @@
2019-11-07 Alan Coon <[email protected]>
+ Cherry-pick r252172. rdar://problem/56580680
+
+ 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:
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 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-07 Alan Coon <[email protected]>
+
Cherry-pick r252116. rdar://problem/55490308
Temporarily turn off NSURLSession isolation
Modified: tags/Safari-609.1.10.1/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp (252291 => 252292)
--- tags/Safari-609.1.10.1/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp 2019-11-09 00:52:13 UTC (rev 252291)
+++ tags/Safari-609.1.10.1/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp 2019-11-09 00:52:17 UTC (rev 252292)
@@ -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: tags/Safari-609.1.10.1/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h (252291 => 252292)
--- tags/Safari-609.1.10.1/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h 2019-11-09 00:52:13 UTC (rev 252291)
+++ tags/Safari-609.1.10.1/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePagePrivate.h 2019-11-09 00:52:17 UTC (rev 252292)
@@ -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: tags/Safari-609.1.10.1/Tools/ChangeLog (252291 => 252292)
--- tags/Safari-609.1.10.1/Tools/ChangeLog 2019-11-09 00:52:13 UTC (rev 252291)
+++ tags/Safari-609.1.10.1/Tools/ChangeLog 2019-11-09 00:52:17 UTC (rev 252292)
@@ -1,3 +1,51 @@
+2019-11-07 Alan Coon <[email protected]>
+
+ Cherry-pick r252172. rdar://problem/56580680
+
+ 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:
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252172 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 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-04 Alan Coon <[email protected]>
Cherry-pick r251991. rdar://problem/56795440
Modified: tags/Safari-609.1.10.1/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp (252291 => 252292)
--- tags/Safari-609.1.10.1/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp 2019-11-09 00:52:13 UTC (rev 252291)
+++ tags/Safari-609.1.10.1/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp 2019-11-09 00:52:17 UTC (rev 252292)
@@ -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));