GNU bug report logs -
#69232
30.0.50; [PATCH] EWW history navigation gets caught in a loop
Previous Next
Reported by: Jim Porter <jporterbugs <at> gmail.com>
Date: Sun, 18 Feb 2024 18:24:16 UTC
Severity: normal
Tags: patch
Found in version 30.0.50
Done: Jim Porter <jporterbugs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your message dated Wed, 6 Mar 2024 16:26:36 -0800
with message-id <e5fa4258-d4f9-a637-577b-206830d14e4b <at> gmail.com>
and subject line Re: bug#69232: 30.0.50; [PATCH] EWW history navigation gets caught in a loop
has caused the debbugs.gnu.org bug report #69232,
regarding 30.0.50; [PATCH] EWW history navigation gets caught in a loop
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)
--
69232: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69232
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
[Message part 3 (text/plain, inline)]
If you navigate back in EWW history, and then forward, you can never hit
the "end": it keeps adding duplicate history elements, even though
you're not visiting any new pages. To see this in action, start from
`emacs -Q`, then:
M-x eww RET fsf.org RET
M-x eww RET gnu.org RET
H ;; Notice that there's one item in the history: the FSF page[1]
q ;; Close history window
l ;; Go back one in the history to the FSF page
H ;; Notice that there are two items in the history
r ;; Go forward one, back at the GNU page
r ;; Go forward again, now at the FSF page(?!)
r ;; Ditto, now at the GNU page
r ;; Repeat ad infinitum
H ;; Now there are many entries, alternating between GNU and FSF
Attached is a patch that fixes this. Now, 'eww-save-history' will update
the history entry in-place when viewing a historical page, and
'eww-back-url' / 'eww-forward-url' take that into account. I also fixed
the predicates for when the back/forward menu items were enabled.
I think this is just a straightforward bug fix, so I didn't add a NEWS
entry. I could add one though if it seems worthwhile.
[1] EWW doesn't immediately add pages to the history when you navigate
to them. Maybe it should, but that can be addressed another day.
[0001-When-navigating-through-history-in-EWW-don-t-keep-ad.patch (text/plain, attachment)]
[Message part 5 (message/rfc822, inline)]
On 3/1/2024 11:38 PM, Eli Zaretskii wrote:
> I think what you did is functionally equivalent, and not harder to use
> in practice. So I'm okay with this version of the patch. Thanks.
As it's been a couple of weeks since I posted about this on emacs-devel,
and there haven't been any further comments, I've merged this to master
as 59e470dd5de. If there are any followup issues about this though, just
let me know.
This bug report was last modified 1 year and 75 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.