Bug 285446

Summary: Commit provisional history items that are not cancelled during policy decision
Product: WebKit Reporter: Charlie Wolfe <charliew>
Component: HistoryAssignee: Charlie Wolfe <charliew>
Status: RESOLVED FIXED    
Severity: Normal CC: fujii.hironori, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=285579
https://bugs.webkit.org/show_bug.cgi?id=285627

Charlie Wolfe
Reported 2025-01-06 10:49:27 PST
In 285421@main, I made the UI process aware of when a web process starts a back/forward navigation but has not yet committed it. However, we did not always notify the UI process when the item was committed. If we fail to notify the UI process, it can result in a state where the current index becomes stale and the provisional index is cleared, leading to a possible out-of-bounds crash when using the current index.
Attachments
Charlie Wolfe
Comment 1 2025-01-06 10:49:28 PST
Charlie Wolfe
Comment 2 2025-01-06 10:50:20 PST
EWS
Comment 3 2025-01-07 03:18:51 PST
Committed 288518@main (f2981ff7b160): <https://commits.webkit.org/288518@main> Reviewed commits have been landed. Closing PR #38577 and removing active labels.
Fujii Hironori
Comment 4 2025-01-07 22:40:04 PST
Regressed: Bug 285579 – REGRESSION(288518@main): http/tests/navigation/forward-and-cancel.html is crashing
Note You need to log in before you can comment on or make changes to this bug.