browser content transparency is broken since bug 2004464
Categories
(Firefox :: Theme, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr115 | --- | unaffected |
| firefox-esr140 | --- | unaffected |
| firefox147 | --- | unaffected |
| firefox148 | --- | fixed |
| firefox149 | --- | fixed |
People
(Reporter: jastekken, Assigned: mlucks)
References
(Regression)
Details
(Keywords: regression, Whiteboard: [genai][switcher])
Attachments
(2 files)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:149.0) Gecko/20100101 Firefox/149.0
Steps to reproduce:
With userChrome.css and userContent.css apply the following styles:
/* userChrome.css */
#browser,
#tabbrowser-tabpanels,
.browserContainer{
background: transparent !important;
}
and
/* userContent.css */
#preferences-root{
background: transparent !important;
}
Actual results:
Page background on about:preferences is opaque
Expected results:
Page background on about:preferences is transparent to desktop.
Running mozregression narrowed regression range to https://hg-edge.mozilla.org/integration/autoland/rev/d7a977a1fd03fc0aa73577a7943dd78de505f2c9
| Reporter | ||
Updated•7 months ago
|
| Reporter | ||
Comment 1•7 months ago
|
||
If you manually add transparent="true" attribute to the <browser> element, then the page does become transparent again.
| Reporter | ||
Comment 2•7 months ago
|
||
Should have mentioned in STR: but browser.tabs.allow_transparent_browser needs to be set to true, and it was so during my mozregression run.
Comment 3•7 months ago
|
||
I'm afraid we don't provide support for userChrome.css or userContent.css customization issues. Your best bet is to use the Browser Toolbox to try to debug this, or to work with other users who customize their Firefox with userChrome.css to try to debug the issue. Last I checked, the community at https://reddit.com/r/FirefoxCSS was fairly good at this, but it's been a few years.
| Reporter | ||
Comment 4•7 months ago
|
||
Fair, but the issue isn't really about custom css, it was simply the most convenient way to demonstrate this. Before 2004464 the user could set browser.tabs.allow_transparent_browser the <browser> could then become transparent to whatever was behind it - be it the xul/xhtml window or even desktop if the window itself also was transparent. Now it cannot, except if transparent="true" is manually set to the browser element. Since the linked bug touched how the attribute and the mentioned prefs are resolved and handled, then it appears to me that the new logic is flawed. That is unless the intended behavior is indeed that only AI windows should be able to respect the pref.
Comment 5•7 months ago
|
||
If you can demonstrate this is an issue without using custom userChrome.css or userContent.css we can reopen the bug, although you should note that bugs involving custom pref settings are generally very low priority.
Updated•7 months ago
|
| Reporter | ||
Comment 6•7 months ago
|
||
Sure.
- Enable the built-in dark theme (built-in auto would work, but if you happen to have light system theme then you won't perceive the issue)
- Set
browser.tabs.allow_transparent_browserto false - Open new window, and navigate to
data:text/html;base64,PGh0bWw+PGJvZHk+dGVzdDwvYm9keT48L2h0bWw+ - Background is white as is html default
- Close that window
- Set
browser.tabs.allow_transparent_browserto true - Open new window and navigate to the url above
Before bug 2004464, the browser area background was now dark-ish grey, as which is background from the Firefox built-in dark theme.
After bug 2004464, the browser area background is still white, as if browser.tabs.allow_transparent_browser is not respected.
Comment 7•7 months ago
|
||
:mlucks, since you are the author of the regressor, bug 2004464, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
Comment 9•7 months ago
|
||
Following the steps from comment #6 I was able to reproduce the issue (meaning that the browser area background is still white on new window) on Win11x64 using Firefox builds 148.0b4 and 149.0a1(20260120100102).
Comment 10•7 months ago
|
||
Marking issue as new.
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
| Assignee | ||
Comment 11•7 months ago
|
||
Updated•7 months ago
|
Comment 13•7 months ago
|
||
Updated•7 months ago
|
Comment 14•7 months ago
|
||
I can confirm this happens to me too.
Comment 15•7 months ago
|
||
| bugherder | ||
Comment 16•7 months ago
|
||
The patch landed in nightly and beta is affected.
:mlucks, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox148towontfix.
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 17•7 months ago
|
||
Uplift request made
Comment 18•7 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined: Potentially interfere with UI for those using transparent browser
- Code covered by automated testing: no
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: I would think low, unsure how many users are using transparent windows.
- String changes made/needed: None
- Is Android affected?: no
| Assignee | ||
Comment 19•7 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D279737
Updated•7 months ago
|
Updated•7 months ago
|
Comment 20•7 months ago
|
||
| uplift | ||
Updated•6 months ago
|
Description
•