Kravantokh 8792208619 Bug 28354 - Added option "browser.tabs.allow_transparent_browser" to "about:config" to stop forcing opaque backgrounds. r=tabbrowser-reviewers,dao
The background behind the rendered webpage may now be made transparent with these changes by toggling the mentioned preference.
The new option defaults to false, preserving the previous behaviour as the default. For the changes to apply "browser.tabs.allow_transparent_browser" has to be explicitly set to "true" in about:config.

For transparency to actually work, though, a userChrome.css is necessary to make the tab's background transparent ( :root { --tabpanel-background-color: #00000063 !important; } ).
Pages may not be transparent by default (except for some rare cases), but extensions may be used to enforce transparent background colors on all pages.

As such this patch implements all necessary changes to allow users to make firefox transparent without having to patch and recompile it.

Differential Revision: https://phabricator.services.mozilla.com/D201346
2024-05-14 08:46:03 +00:00
..