Opened 3 months ago

Last modified 2 weeks ago

#30812 needs_information defect

cant modify browser default background color - about:blank, about:newtab

Reported by: kingfitz Owned by: tbb-team
Priority: Medium Milestone:
Component: Applications/Tor Browser Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description

cant modify browser default background color - about:blank, about:newtab, about:config. nothing. Stuck with glaring white screen every time I watn to open a tab in tor browser. This needs to be resolved. I contacted firefox about this too. apparently this file userContent.css in the chrome folder under tor browser root profile folder, doesnt do anything. It works in latest firefox on windows 10, it doesnt eliminate white flash when loading a page, but at least newtab is dark when I open a new tab in FF. This issue isnt specific to me. its GLOBAL. If someone can find a solution would be appreciated.

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@-moz-document url("about:newtab"), url("about:blank")

{ body {background-color: #000000 !important;} }


@-moz-document url(chrome://browser/content/browser.xul)

{ browser[type="content-primary"] {background-color: #000000 !important} }

Child Tickets

Change History (4)

comment:1 Changed 2 weeks ago by pili

Component: WebpagesApplications/Tor Browser
Owner: set to tbb-team

comment:2 Changed 2 weeks ago by mcs

Status: newneeds_information

I think this is caused by Tor Browser's anti-fingerprinting features. What happens if you use about:config to set ui.use_standins_for_native_colors to false? You may also need to set browser.display.document_color_use to 2. Note that it is not recommended to keep these changes because they may help a website identify you.

comment:3 Changed 2 weeks ago by Thorin

use this in a userChrome.css: tested and working in TB8*. There is no need to change settings that protect your fingerprint

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* about:newtab and about:blank
 * also remove white flash: see https://bugzilla.mozilla.org/1488384 */
#browser vbox#appcontent tabbrowser,
#content,
#tabbrowser-tabpanels,
browser[type=content-primary],
browser[type=content] > html {
	background: #2A2A2E !important
}

EDIT: also tested and working in Firefox 68+ (for when TB is based on ESR68). Note, you will need to make sure toolkit.legacyUserProfileCustomizations.stylesheets = true

Last edited 2 weeks ago by Thorin (previous) (diff)

comment:4 Changed 2 weeks ago by Thorin

As a bonus, this also colors the letterboxing :)

Note: See TracTickets for help on using tickets.