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

Ignore cross-origin redirects that aren’t happening in the main frame #80

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

svara
Copy link
Contributor

@svara svara commented Jan 30, 2025

This PR addresses #78 by ensuring that only top-level navigations are subject to cross-origin redirect checks, while allowing iframe and sub-frame navigations to proceed without interference.

This prevents unwanted redirects from embedded content (e.g., YouTube iframes) while maintaining normal navigation behaviour in the parent frame.

@svara svara requested review from jayohms and joemasilotti January 30, 2025 17:20
Copy link
Contributor

@jayohms jayohms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

Source/Turbo/Visit/ColdBootVisit.swift Outdated Show resolved Hide resolved
@svara svara merged commit 0bc9f80 into main Jan 31, 2025
1 check passed
@svara svara deleted the iframe-cross-origin-redirect-fix branch January 31, 2025 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants