-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[Bug] History: Consecutive Duplicates should be filtered out #1331
Comments
Those 2 AC issues are merged in and being used. We should have higher quality history now. |
Hi @cadeyrn, Please see the attached screenshot: |
@grigoryk could you possibly weigh in on if the above screenshot is the "best" we can do with history filtering right now? |
Still need @grigoryk's input on this. |
We intentionally aren't filtering duplicates, but could easily add a parameter to do so. |
More broadly, there are a couple things you might want here:
Basically, I think if you want number 1, we should do it in the Rust. (It would be an optional flag though, since I can imagine cases where all pages are desired) Otherwise, it probably is worth you doing it in Kotlin, so that you retain that flexibility to change it later without needing to go through us. EDIT: OTOH it's worth noting that while passing data over the FFI isn't that expensive, it might be expensive enough that it's still worth it to do the filtering in rust first. (I'm not sure how many items would be excluded in practice) |
I think consecutive duplication is the only one that is desirable for users. People on desktop already complain about behavior #1, and I don't see any reason why it is desirable to be consistent with this disliked behavior. |
@thomcc thanks for listing the options. I don't think we should only show a most recent visit for a URL. Comparing how this works in Fennec vs Fenix, I think the problem is that Fenix is not pulling a correct/distinct page name all the time. For example, if you tap on different ideos on YouTube in Fenix they will all have the same name (m.youtube.com) even if the URL is different, whereas Fennec correctly displays the name of the video. Can we match this behaviour in Fenix? Also what does the effort for option 3 (filtering out only consecutive dups) look like? |
So, threading the needle through all the above:
Other issues alluded to in this bug: 1. title of the page is not being saved
1a. intermediate pages in a redirect should not be stored in history.This has been filed before at ac#3027 2. filtering duplicates in history should be using title, or PSL/common prefixes trimmed URL.Solving 2. by filtering by title would be relatively cheap, however, we cannot trust that the title for consecutive duplicates are actually the same, because 1. exists. Until then, we have garbage in, garbage out. |
This may be an unrelated problem but it is worth investigating:
Is this unique to YouTube because it reloads the page not with actual reloads but by doing ajax requests and modifying the history stack? We've had this that problem in Firefox iOS where we did not get the proper notifications that the page changed. This is not unique to YouTube - there are plenty of SPAs that use these techniques. |
@st3fan I'll file an ac issue to track that. |
Steps to reproduce
Expected behavior
no duplicated entries, because the duplicates don't add much value
Actual behavior
duplicated entries
UNITO-UNDERSCORE!20190402-223933!
Device information
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: