README: document the Firefox PWA chrome cause (manifest-only colors)
This commit is contained in:
1 parent
046e97b024
commit
6eb0e82948
1 file changed
+15
-5
@@ -465,11 +465,21 @@ number of members who have logged in to the sandbox.
|
||||
on a solid brand background. Full-bleed logos get cropped ("zoomed in").
|
||||
- **Firefox Android**: `crossorigin="use-credentials"` on the manifest link
|
||||
breaks icon resolution (blank launcher icon) — patch_index.py strips it.
|
||||
- **Theme bars**: the manifest `theme_color` is one static value; Chromium's
|
||||
nav bar and all Firefox bars use it even when the meta says otherwise. The
|
||||
durable fix is `viewport-fit=cover` + standalone-mode safe-area padding
|
||||
(custom.css) so the bands show the theme-correct page background; custom2.js
|
||||
additionally syncs one meta `theme-color` to the app's resolved theme.
|
||||
- **Theme bars (why Firefox showed light bands)**: Firefox for Android has never
|
||||
implemented `<meta name="theme-color">` (desktop neither) — caniuse marks it
|
||||
unsupported through FF 163 — so `custom2.js`'s meta sync only affects Chromium.
|
||||
Firefox's PWA window colours its chrome from the MANIFEST alone
|
||||
(`android-components` `feature/pwa/ext/WebAppManifest.kt` → `toCustomTabConfig()`):
|
||||
`toolbarColor = themeColor`, and `navigationBarColor` = WHITE or BLACK chosen
|
||||
from `background_color`, **only when both members exist**. A cream
|
||||
`theme_color` therefore painted a cream top band and a pure-white bottom band
|
||||
around the dark app, unfixable at runtime. The fix is to omit `theme_color`
|
||||
from `manifest.webmanifest` (patch_index.py): Firefox then uses its own
|
||||
light/dark toolbar surface, which follows the phone theme. `background_color`
|
||||
stays cream for Chrome's splash screen; Chromium still gets the light/dark
|
||||
meta pair, and `custom2.js` re-syncs it at runtime. `viewport-fit=cover` +
|
||||
safe-area padding only help browsers that draw the page under transparent
|
||||
bars (Chromium/Safari) — they do nothing for Firefox's opaque bands.
|
||||
|
||||
## Deploy semantics — why the image tag can lag `main`
|
||||
|
||||
|
||||
Reference in new issue
Block a user