What is PreferenceStyleSheet?

User Help for Mozilla Firefox
Post Reply
mozray
Posts: 76
Joined: March 10th, 2017, 3:48 pm

What is PreferenceStyleSheet?

Post by mozray »

I updated to Firefox 70 today and I'm noticing that the default link color is now light blue instead of the typical blue.

Using the browser inspector, it looks like the "PreferenceStyleSheet" is overriding the default link color:

Image

I have no idea what the PreferenceStyleSheet is or how it was enabled. Toggling the color values under "General > Colors" in about:preferences doesn't seem to do anything.

As a last resort, I wiped out my prefs.js file and the correct colors came back, so it's probably an about:config setting, but I'm not sure which one is causing this.

I'd like to disable the PreferenceStylesheet. Any help would be appreciated.
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: What is PreferenceStyleSheet?

Post by morat »

The about:PreferenceStyleSheet stylesheet been around for a long time.

Reply by dickvl in 2007
http://forums.mozillazine.org/viewtopic ... 8&t=542652

My inspector tab shows "(user agent)" not "PreferenceStyleSheet" in the rule view.

I can right click on "(user agent)" next to the *|*:link rule and click "Copy Location" to copy the "about:PreferenceStyleSheet" url to the clipboard.

Test page from bug 1239336
http://bug1239336.bmoattachments.org/at ... id=8707480
http://bugzilla.mozilla.org/show_bug.cgi?id=1239336

Maybe you reset the following prefs when you wiped out the prefs.js file.

* browser.anchor_color
* browser.visited_color

Firefox fails to load PreferenceStyleSheet
http://www.reddit.com/r/FirefoxCSS/comments/79idlz
mozray
Posts: 76
Joined: March 10th, 2017, 3:48 pm

Re: What is PreferenceStyleSheet?

Post by mozray »

Thanks for the reply, morat.

I've already checked that forum thread and Reddit post and I couldn't get enough info from those posts.

Right clicking on "PreferenceStyleSheet" doesn't enable me to copy anything:

Image

About the "browser.anchor_color" and "browser.visited_color" prefs, those were never set.

Any other advice would be appreciated.
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: What is PreferenceStyleSheet?

Post by morat »

Well you don't want to disable the about:PreferenceStyleSheet stylesheet.

My rule view in inspector tab
https://imgur.com/fSSL12K
mozray
Posts: 76
Joined: March 10th, 2017, 3:48 pm

Re: What is PreferenceStyleSheet?

Post by mozray »

Hmm, there's something wrong with my inspector on the test webpage:

Image

I'm not getting the proper rules in the inspector... I am using Firefox Unbranded v70. I might try a newer build to see if that might fix things.
mozray
Posts: 76
Joined: March 10th, 2017, 3:48 pm

Re: What is PreferenceStyleSheet?

Post by mozray »

Okay, my Inspector settings were different. I had "Use browser styles" unchecked. I now have it checked and the Inspector is correct:

Image

The issue now is why my link color is a lighter blue [rgb(0, 102, 204)] instead of default blue [rgb(0, 0, 238)]?
morat
Posts: 6403
Joined: February 3rd, 2009, 6:29 pm

Re: What is PreferenceStyleSheet?

Post by morat »

I see the clickable "PreferenceStyleSheet" link as well next to the *|*:link rule under the color rule in the computed tab with the browser styles option checked. I never noticed that before.

Reference
http://searchfox.org/mozilla-release/se ... stylesheet
Post Reply