Closed julienw closed 1 year ago
do not clean history if the hostname stays the same -- we could probably accept that inside one hostname it's acceptable that websites use the history information.
That is maybe a solution. I'm having issues as well when History cleaner is enabled at PIPED instances, i.e. https://piped.kavin.rocks/
with the search feature :
https://piped.kavin.rocks/results?search_query=hotel negresco
a clicked video thumbnail amid the displayed results opens the video but with the search query in the urlbar instead of the video's url, i.e.
https://piped.kavin.rocks/results?search_query=hotel+negresco
Required History API is obviously damaged. Neither of the above mentioned occurs when Prevent tracking injection over history API is unchecked.
I am building an app and was getting this issue too. I agree that both solution 1 and 2 are better than the current behaviour. Of course, for my app to work as intended, I'd prefer solution 2.
Hey,
I noticed that the clear urls addons was doing
replaceState
to replace the history. The problem is that by using some hardcoded state this is breaking websites. Most recently this applied to the Firefox Profiler. Here is a typical example:=> The application crashes.
Indeed when changing the panel (and other actions too), the application does a
pushState
with the new state, and also changes the URL by serializing part of the state. If you're curious, here is the code responsible for this.The problem is the application thinks that a proper state is present, and use it, and crashes. By using
null
instead, the application would use the information contained and serialized in the URL. If you're curious, here is the code responsible for this.I believe this wasn't happening before, but happens now, because the new "recursive cleaning" will make the URL look different while before they were possibly looking the same.
Now I can find 2 solutions (not exhaustive, both could be used):
null
would provide the same functionality and less breakage.Thanks