Changeset 267284 in webkit
- Timestamp:
- Sep 18, 2020 3:25:44 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r267281 r267284 1 2020-09-18 Sihui Liu <sihui_liu@apple.com> 2 3 REGRESSION (r266634): fast/selectors/text-field-selection-stroke-color.html and fast/selectors/text-field-selection-window-inactive-stroke-color.html are flaky failures with pixel noise 4 https://bugs.webkit.org/show_bug.cgi?id=216394 5 <rdar://problem/68679551> 6 7 Reviewed by Tim Horton. 8 9 Update test expectations as tests should be passing. 10 11 * platform/mac-wk2/TestExpectations: 12 1 13 2020-09-18 Aditya Keerthi <akeerthi@apple.com> 2 14 -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r267179 r267284 1312 1312 http/tests/resourceLoadStatistics/exemptDomains/ [ Skip ] 1313 1313 1314 webkit.org/b/216394 [ Release ] fast/selectors/text-field-selection-stroke-color.html [ Pass ImageOnlyFailure ]1315 webkit.org/b/216394 [ Release ] fast/selectors/selection-window-inactive-stroke-color.html [ Pass ImageOnlyFailure ]1316 1317 1314 # rdar://68740987 (REGRESSION: [ BigSur wk2 ] http/tests/media/video-no-content-length-stall.html is a constant failure) 1318 1315 [ BigSur+ ] http/tests/media/video-no-content-length-stall.html [ Failure ] -
trunk/Source/WebKit/ChangeLog
r267279 r267284 1 2020-09-18 Sihui Liu <sihui_liu@apple.com> 2 3 REGRESSION (r266634): fast/selectors/text-field-selection-stroke-color.html and fast/selectors/text-field-selection-window-inactive-stroke-color.html are flaky failures with pixel noise 4 https://bugs.webkit.org/show_bug.cgi?id=216394 5 <rdar://problem/68679551> 6 7 Reviewed by Tim Horton. 8 9 In WebKitTestRunner, we reset the states and load about:blank page between tests. The resetting may cause some 10 activity state changes of web page, like WindowIsActive. Before r266634, these changes will be dispatched 11 quickly enough (before runloop waits or when runloop exits) to web process, so web process can do rendering with 12 updated activity state. After r266634, dispatch of the changes may be delayed (until CATransaction commits). 13 Page activity state can affect scrollability (in FrameView::computeScrollability()) and scrollability can affect 14 tiling size (in TileController::computeTileSize()). Different tilings may cause the tiny pixel difference we see 15 in the test results. 16 17 To fix this, create an SPI for sending out activity state updates in next runloop cycle and adopt it in WTR. 18 19 * UIProcess/API/C/WKPage.cpp: 20 (WKPageDispatchActivityStateUpdateForTesting): 21 * UIProcess/API/C/WKPagePrivate.h: 22 * UIProcess/WebPageProxy.cpp: 23 (WebKit::WebPageProxy::dispatchActivityStateUpdateForTesting): 24 * UIProcess/WebPageProxy.h: 25 1 26 2020-09-18 Alex Christensen <achristensen@webkit.org> 2 27 -
trunk/Source/WebKit/UIProcess/API/C/WKPage.cpp
r267081 r267284 3003 3003 toImpl(page)->setMediaCaptureReportingDelay(Seconds(delay)); 3004 3004 } 3005 3006 void WKPageDispatchActivityStateUpdateForTesting(WKPageRef page) 3007 { 3008 toImpl(page)->dispatchActivityStateUpdateForTesting(); 3009 } -
trunk/Source/WebKit/UIProcess/API/C/WKPagePrivate.h
r267081 r267284 201 201 WK_EXPORT void WKPageSetMediaCaptureReportingDelayForTesting(WKPageRef page, double delay); 202 202 203 WK_EXPORT void WKPageDispatchActivityStateUpdateForTesting(WKPageRef page); 204 203 205 #ifdef __cplusplus 204 206 } -
trunk/Source/WebKit/UIProcess/WebPageProxy.cpp
r267250 r267284 10312 10312 #endif 10313 10313 10314 void WebPageProxy::dispatchActivityStateUpdateForTesting() 10315 { 10316 RunLoop::current().dispatch([protectedThis = makeRef(*this)] { 10317 protectedThis->dispatchActivityStateChange(); 10318 }); 10319 } 10320 10314 10321 } // namespace WebKit 10315 10322 -
trunk/Source/WebKit/UIProcess/WebPageProxy.h
r267203 r267284 901 901 #endif // PLATFORM(COCOA) 902 902 903 void dispatchActivityStateUpdateForTesting(); 904 903 905 void changeFontAttributes(WebCore::FontAttributeChanges&&); 904 906 void changeFont(WebCore::FontChanges&&); -
trunk/Tools/ChangeLog
r267283 r267284 1 2020-09-18 Sihui Liu <sihui_liu@apple.com> 2 3 REGRESSION (r266634): fast/selectors/text-field-selection-stroke-color.html and fast/selectors/text-field-selection-window-inactive-stroke-color.html are flaky failures with pixel noise 4 https://bugs.webkit.org/show_bug.cgi?id=216394 5 <rdar://problem/68679551> 6 7 Reviewed by Tim Horton. 8 9 Make sure activity state changes for window updates in resetStateToConsistentValues are dispatched in time. 10 11 * WebKitTestRunner/TestController.cpp: 12 (WTR::TestController::resetStateToConsistentValues): 13 1 14 2020-09-18 Aditya Keerthi <akeerthi@apple.com> 2 15 -
trunk/Tools/WebKitTestRunner/TestController.cpp
r267222 r267284 1161 1161 clearAppBoundSession(); 1162 1162 clearAdClickAttribution(); 1163 1164 WKPageDispatchActivityStateUpdateForTesting(m_mainWebView->page()); 1163 1165 1164 1166 m_didReceiveServerRedirectForProvisionalNavigation = false;
Note: See TracChangeset
for help on using the changeset viewer.