Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

declarativeNetRequest type redirect unreliable in Safari #769

Open
ACTCD opened this issue Jan 6, 2025 · 0 comments
Open

declarativeNetRequest type redirect unreliable in Safari #769

ACTCD opened this issue Jan 6, 2025 · 0 comments
Labels
upstream This is an upstream issue

Comments

@ACTCD
Copy link
Collaborator

ACTCD commented Jan 6, 2025

Problems may manifest as but are not limited to:

  • In some scenarios, the tab is remains in the loading state (the progress bar of the address bar is stuck)
  • Sometimes, the tab behaves like the navigation action is cancelled. (Progress bar disappears but remains on previous page)
  • Redirection is successful but prompts "This web page was reloaded because a problem occurred." (#491)

A simple DNR rule is used to test:

{
	"id": 12345,
	"condition": {
		"requestDomains": ["example.com"],
		"resourceTypes": ["main_frame"]
	},
	"action": {
		"type": "redirect",
		"redirect": {
			"url": "https://example.org/redirected"
		}
	}
}

When typing example.com directly in address bar of a new tab or a existing tab, or opening https://example.com/ in the current window or new tab by clicking (or command-click) on a anchor pointing to it, you may find that the redirect is successful in some cases and not in others.

This uncertainty is difficult to debug, it has nothing to do with the rule itself and appears to be some issues with Safari's internal processing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream This is an upstream issue
Projects
None yet
Development

No branches or pull requests

1 participant