- From: Daniel Murphy <notifications@github.com>
- Date: Mon, 06 Feb 2023 11:52:10 -0800
- To: w3c/manifest <manifest@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 6 February 2023 19:52:23 UTC
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](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/DocumentSubtitle/explainer.md) 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. -- Reply to this email directly or view it on GitHub: https://github.com/w3c/manifest/issues/1071 You are receiving this because you are subscribed to this thread. Message ID: <w3c/manifest/issues/1071@github.com>
Received on Monday, 6 February 2023 19:52:23 UTC