mhaeuser / Custom-Search

Safari Web Extension to customize your search engine.
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

Redirect problem #2

Open whaler-ragweed opened 1 year ago

whaler-ragweed commented 1 year ago

When searching (MacOS), Safari always first displays "Safari can't open the open" page for about 1-2 seconds and then goes to the normal search results page.

mhaeuser commented 1 year ago

That’s a limitation of Safari’s Manifest v3 implementation.

mhaeuser commented 7 months ago

This should be fixed by this PoC, at least for recent Safari: https://github.com/mhaeuser/Custom-Search/commit/dde8f2798e8c25e6cfc863150913777eb3c88def

However, for some reason, Safari displays an error when redirecting, saying the webpage was reloaded due to an error - the redirection works just fine, though. This has the side effect that multiple queries via the global search bar yield a repetitive error condition state. I haven't found any useful debug information anywhere and even the latest releases of macOS and iOS do not resolve the issue.