Bug 241885

Summary: Ignore history items added by JS without user interaction when navigation back/forward via the WKWebView API
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: WebKit2Assignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: kkinnunen, 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=241924
https://bugs.webkit.org/show_bug.cgi?id=241932
Bug Depends on: 242947    
Bug Blocks:    

Description Chris Dumez 2022-06-22 16:26:02 PDT
Ignore history items added by JS without user interaction when navigation back/forward via the WKWebView API. This is a behavior similar to the intervention made in Chrome (https://bugs.chromium.org/p/chromium/issues/detail?id=907167) to prevent websites from hijacking the back/forward list.
Comment 1 Chris Dumez 2022-06-22 16:26:17 PDT
<rdar://94838657>
Comment 2 Chris Dumez 2022-06-22 16:43:35 PDT
Pull request: https://github.com/WebKit/WebKit/pull/1705
Comment 3 EWS 2022-06-23 09:17:09 PDT
Committed r295778 (251783@main): <https://commits.webkit.org/251783@main>

Reviewed commits have been landed. Closing PR #1705 and removing active labels.