[macOS Debug] TestWebKitAPI.WKBackForwardList.BackForwardNavigationSkipsItemsWithoutUserGestureFragment is a flaky timeout#64603
Open
cdumez wants to merge 1 commit intoWebKit:mainfrom
Open
Conversation
…ipsItemsWithoutUserGestureFragment is a flaky timeout https://bugs.webkit.org/show_bug.cgi?id=313844 rdar://176046782 Reviewed by NOBODY (OOPS!). The test was disabled on macOS due to flaky timeouts on Intel Debug builds. The delegate's waitForDidFinishNavigationOrDidSameDocumentNavigation only wakes on didFinishNavigation or SessionStatePush/SessionStatePop, so for a fragment navigation via `location.href = '#X'` the sole wake-up signal is the SessionStatePop IPC fired from FrameLoader::loadInSameDocument. If anything upstream causes that path to be skipped (for example, Navigation API's innerDispatchNavigateEvent returning DispatchResult::Aborted due to a race with a previous fragment nav's queued navigatesuccess task), no signal ever fires and the wait hangs until the test framework timeout. Synchronize on the JS completion handler instead. Same-document navigations triggered by the script (location.href / pushState) are processed by the WebProcess synchronously, and IPCs to the UIProcess are delivered in order: the SessionStatePush/Pop IPC is sent before the RunJavaScript reply. By the time the completion handler fires, the delegate has already run and lastNavigation has been updated, so the subsequent delegate-based wait is redundant and removed. The worst-case failure mode becomes a fast assertion failure with a useful diff rather than a silent timeout. * Tools/TestWebKitAPI/Tests/WebKit/WKWebView/WKBackForwardListTests.mm: (runBackForwardNavigationSkipsItemsWithoutUserGestureTest): (TEST(WKBackForwardList, BackForwardNavigationSkipsItemsWithoutUserGesturePushState)): (TEST(WKBackForwardList, BackForwardNavigationSkipsItemsWithoutUserGestureFragment)): (TEST(WKBackForwardList, BackForwardNavigationSkipsItemsWithoutUserGesturePushStateAfterEvaluateJS)):
Collaborator
|
EWS run on current version of this PR (hash 6a8a875) Details |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
6a8a875
6a8a875