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

[mediaqueries-5] Preference override interaction with iframes #11577

Open
lukewarlow opened this issue Jan 27, 2025 · 1 comment
Open

[mediaqueries-5] Preference override interaction with iframes #11577

lukewarlow opened this issue Jan 27, 2025 · 1 comment

Comments

@lukewarlow
Copy link
Member

Need to work out the exact specifics with regards to iframes both same-origin and cross-origin.

Same-origin iframes should probably be updated with the parent frame's preference overrides but in an opaque manner.

e.g. if the parent frame sets colorScheme to dark then the iframe should see prefers-color-scheme as dark but shouldn't read navigator.preferences.colorScheme.value as dark.

Whereas, cross-origin iframes should maybe not be updated with the parent frame's preference overrides. This is an unfortunate limitation but is probably necessary to prevent new forms of data exfiltration.

@lukewarlow
Copy link
Member Author

See for previous discussions: WICG/web-preferences-api#8

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

No branches or pull requests

1 participant