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

Framebust out of webviews #347

Open
svgeesus opened this issue Aug 13, 2022 · 3 comments
Open

Framebust out of webviews #347

svgeesus opened this issue Aug 13, 2022 · 3 comments
Labels
Core privacy-tracker Group bringing to attention of Privacy, or tracked by the Privacy Group but not needing response. security-tracker Group bringing to attention of security, or tracked by the security Group but not needing response.

Comments

@svgeesus
Copy link
Contributor

Native apps typically open links to websites in a webview. This means that the app can track user behavior, including injecting script into the displayed third-party website. Users would likely prefer to visit the link in the native browser.

There is a similarity to the way websites would used <frame> in the early days of the web to include, and control, third party websites. An existing solution, the X-Frame-Options HTTP header, was used to enable websites to break out of such frames.

The same, existing solution should be enabled on webviews so that websites could express the desire to be viewed in a browser.

This was suggested by Adrian Holovaty in Let websites framebust out of native apps

@svgeesus svgeesus added Core privacy-tracker Group bringing to attention of Privacy, or tracked by the Privacy Group but not needing response. security-tracker Group bringing to attention of security, or tracked by the security Group but not needing response. labels Aug 13, 2022
@svgeesus
Copy link
Contributor Author

The Content Security Policy frame-ancestors could also be used.

@romainmenke
Copy link
Member

romainmenke commented Aug 19, 2022

@muodov
Copy link

muodov commented Sep 24, 2022

FYI, this is also being discussed in the WebView CG, WebView-CG/usage-and-challenges#39 being the most relevant thread (but this issue is related to several others)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core privacy-tracker Group bringing to attention of Privacy, or tracked by the Privacy Group but not needing response. security-tracker Group bringing to attention of security, or tracked by the security Group but not needing response.
Projects
Development

No branches or pull requests

4 participants
@svgeesus @muodov @romainmenke and others