Closed Bug 1568626 Opened 5 years ago Closed 5 years ago

userChrome.css not working even set toolkit.legacyUserProfileCustomizations.stylesheets=true

Categories

(Firefox :: Toolbars and Customization, defect)

68 Branch
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: shuiwatermizu, Unassigned)

References

(Regression)

Details

(Keywords: regression)

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

  1. open profile folder
    about:support
  2. create a file
    userChrome.css
  3. put contents in the above file in order to make the bookmarks toolbar auto-hide
    #PersonalToolbar {visibility: collapse !important;}
    #navigator-toolbox:hover > #PersonalToolbar {visibility: visible !important;}
  4. about:config
    set toolkit.legacyUserProfileCustomizations.stylesheets=true
  5. restart firefox, the toolbar doesn't hide

Actual results:

The toolbar didn't hide

Expected results:

The toolbar should hide

Hi, I tried to reproduce this issue but I'm not sure I fully understand it, The steps are :

  1. Start Firefox with a fresh new profile.
  2. Set the Bookmarks Toolbar to be displayed.
  3. Open the about:support in order to find the profile folder.
  4. Create the userChrome.css file that contains:
    #PersonalToolbar {visibility: collapse !important;}
    #navigator-toolbox:hover > #PersonalToolbar {visibility: visible !important;}
  5. Set toolkit.legacyUserProfileCustomizations.stylesheets=true in about:config.
  6. Restart the Firefox Browser.

Expected results should be that the Bookmarks toolbar is hidden.
Actual Results the Bookmarks toolbar is still displayed.

Did this functionality work before 68.0.1 ?
Can you retry this issue in Safe Mode? you can find the steps here: https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode
Also can you please try our latest Nightly and let us know if the issue still occurs there as well. You can find the build here: https://nightly.mozilla.org/

Flags: needinfo?(shuiwatermizu)

Thanks for working on this.

Did this functionality work before 68.0.1 ?
It should work, see below
http://kb.mozillazine.org/index.php?title=UserChrome.css&printable=yes
The problem is I can't make UserChrome.css work at all in 68.0.1. I tried the example userChrome.css of the above and it didn't work either. I put it into profile folder and profile/chrome folder, neither worked.

I tried the nightly and safe mode, neither worked.

Flags: needinfo?(shuiwatermizu)

I will set the component for it and maybe one of our developers can take a look and they will know more about this issue. Thanks for taking the time to report this problem.

Component: Untriaged → Toolbars and Customization

I tested this and the preference works for me. In your steps to reproduce, you're missing the step that the userChrome.css file needs to be within a directory (create this if it doesn't exist) called "chrome".

I had to put the "chrome" directory in the "roaming" profile directory, also known as the "root directory" for the profile.

See the steps at http://kb.mozillazine.org/index.php?title=UserChrome.css&printable=yes

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Keywords: regression
Regressed by: 1550157
Resolution: --- → WORKSFORME

You're right. Thanks

That is, if putting userChrome.css into chrome folder, it worked.

Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.