GNOME Bugzilla – Bug 775175
Problems with back/forward buttons sensitivity
Last modified: 2017-05-05 20:27:26 UTC
Steps to reproduce: 1. Launch Devhelp. 2. Click on Devhelp Reference Manual in the side panel (book tree). 3. Click on Initialization. 4. Click on dh_init(). 5. Undo -> Redo is insensitive, it should be sensitive instead. 6. Undo x2 7. (Redo is sensitive) Redo x3 -> Redo is still sensitive, but it should be insensitive because we are at dh_init(). Clicking again on Redo does nothing. 8. Hamburger menu -> New tab. 9. Go back to first tab. -> Redo is now correctly marked as insensitive.
WebKitWebView doesn't provide a convenient API to update the sensitivity of the previous/next buttons, I've filed this bug: https://bugs.webkit.org/show_bug.cgi?id=171735 "Add WebKitWebView can-go-back and can-go-forward properties" Currently in Devhelp there is probably some missing calls to window_check_history() in dh-window.c.
Fixed with commit edfa52b71a5e795c1c8a24c0da3ac7f70c88b170. There is actually a convenient API: the "changed" signal of WebKitBackForwardList.