Prevent infinite loops of redirection #5
Labels
No Label
Browser: Chromium
Browser: Firefox
Bug Report
Completed
Documentation
Enhancement
Feature Request
Not Implemented
Packaging
Progress Tracker
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: Holllo/re-nav#5
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It's possible to create redirects that end up infinitely looping. In the background script there should be some way of detecting and preventing that.
Potential solution: save the most recently redirected URL and the timestamp for it, then when another redirect is about to happen, check if it's the same URL and within 30 seconds of the last time. If it is, it's highly likely that an infinite loop is happening, or, (and this would be a nice unintended feature) the user wants to go to the original URL without being redirected.
Also, rate-limit checking redirects to 100ms. So if it's been less than 100ms since the last redirect, don't check for any again.
Implemented in
3e59d0e13b
.