REGRESSION (r169805): WKWebView canGoBack returning YES when nothing is in the back-forward list after restoring session state
Created attachment 291899 [details]
Steps To Reproduce:
1. Create a WKWebView and navigate to a page.
2. Use -[WKWebView _sessionStateWithFilter:] to remove the one item in the WKWebView’s back forward list, and use -[WKWebView _restoreSessionState:andNavigate:] (navigate = NO) to restore the empty back forward list.
3. Observe the value of -[WKWebView canGoBack].
-[WKWebView canGoBack] returns YES even though there are no items in the back list.
This bug was introduced by: https://trac.webkit.org/changeset/169805
Comment on attachment 291899 [details]
Clearing flags on attachment: 291899
Committed r207445: <http://trac.webkit.org/changeset/207445>
All reviewed patches have been landed. Closing bug.