Open Bug 1538943 Opened 5 years ago Updated 9 months ago

Provide meta tag theme colour of content to browser apps for theming

Categories

(GeckoView :: General, enhancement, P3)

68 Branch
Unspecified
Android
enhancement

Tracking

(firefox66 wontfix, firefox67 wontfix, firefox68 fix-optional)

Tracking Status
firefox66 --- wontfix
firefox67 --- wontfix
firefox68 --- fix-optional

People

(Reporter: jonalmeida, Unassigned)

References

(Depends on 1 open bug)

Details

(Whiteboard: [geckoview:fenix:p3][fxdroid][foundation])

Attachments

(1 file)

Websites provide a theme colour in a (non-standard) meta tag. It would be nice if browser apps could leverage this feature to better customize the app's theme.

This is an example code of what a web developer would provide:

<meta name="theme-color" content="#db5945">

This can also be leveraged to make browser icons and thumbnails a more accurate depiction of what the site is from a tabs tray view.

Reference link: https://developers.google.com/web/fundamentals/design-and-ux/browser-customization/#meta_theme_color_for_chrome_and_opera

From the linked docs, it looks like we may have had some support for this in FxOS?

<!-- Chrome, Firefox OS and Opera -->

Sebastian, should the extraction of a page's meta theme-color be handled by the same AC component will extract website icon resources? Or does GV need to provide a new API?

https://github.com/mozilla-mobile/android-components/issues/2080

James suggests GV add utility APIs for apps to use Gecko's style decoding/conversion functionality.

We don't need this for Fenix MVP.

Flags: needinfo?(s.kaspari)
Priority: -- → P2
Whiteboard: [geckoview:fenix:p3]
Assignee: nobody → agi

We can provide this through an experiment addon in GeckoView.

I'm editing a bunch of GeckoView bugs. If you'd like to filter all this bugmail, search and destroy emails containing this UUID:

e88a5094-0fc0-4b7c-b7c5-aef00a11dbc9

Priority: P2 → P3

It would be good if this could also add support for the new media attribute for this meta tag. So content could set a theme colour based on the colour scheme.

Any update on this? The feature is present in all chrome browsers..even your own geckoview supports this custom theme..

Assignee: agi → nobody
Severity: normal → S3

Tasks and enhancements should have severity N/A.

Severity: S3 → N/A

(In reply to Chris Peterson [:cpeterson] from comment #3)

James suggests GV add utility APIs for apps to use Gecko's style decoding/conversion functionality.

We don't need this for Fenix MVP.

We will have a GeckoView Metadata API now that we can expose this through. Adding support in Gecko, should not be too hard and getting a quick solution that queries for the theme-color as some initial support, and possibly also considering the prefers-color-scheme media query as well when providing it to the embedder.

The attribute is considered part of the standard metadata names so we should be fine with using it.

Depends on: 1826689
Whiteboard: [geckoview:fenix:p3] → [geckoview:fenix:p3][fxdroid][foundation]
See Also: → 1013913
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: