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

Titles, subtitles, and spoofing mitigations. #1071

Open
dmurph opened this issue Feb 6, 2023 · 0 comments
Open

Titles, subtitles, and spoofing mitigations. #1071

dmurph opened this issue Feb 6, 2023 · 0 comments

Comments

@dmurph
Copy link
Collaborator

dmurph commented Feb 6, 2023

In Chromium, for security reasons we forcibly prepend "<web app name> - " to the title of the page for display in the window's titlebar IFF the page title doesn't already have the title as a prefix. This reduces the ability for web apps to spoof.

To be compatible with this, a site can either prefix their app name always, or use media queries to detect if they are in non-browser display mode to change their title dynamically.

@diekus authored a nice explainer here to help developers lean into this feature, avoiding complicated display media queries (that would have to store the old title value somewhere in local storage, etc) by formalizing a subtitle meta tag. Then, sites that might be installed can specify a this attribute, and always be compatible with title bar rendering for non-browser display modes.

I'm interested what others think - I'm generally supportive of this declarative solution.

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

2 participants
@dmurph and others