firefox: Enable userChrome in about:config#5670
firefox: Enable userChrome in about:config#5670MrQubo wants to merge 1 commit intonix-community:masterfrom
Conversation
5307a99 to
b73f112
Compare
|
|
|
I've tried running tests with EDIT: |
b73f112 to
fc80b16
Compare
fc80b16 to
e68817e
Compare
IldenH
left a comment
There was a problem hiding this comment.
Really like this change as it is confusing having the stylesheets not work despite being set.
e68817e to
e286638
Compare
|
I hate github, I was replying you, but it was "pending" so I think you didn't see any of that. ;_; |
|
It looks like this needs to rebased since: #5128 |
e286638 to
4205c1f
Compare
|
Rebased, I've made some additional changes, could you review again? Completely unrelated change, but the containers test was bugging me. |
| id = 5; | ||
| containers = { | ||
| "shopping" = { | ||
| id = 6; |
There was a problem hiding this comment.
Wait what was wrong with the containers test? Each container should have its own unique id set, so I think it makes sense to keep one explicitly set in the test.
There was a problem hiding this comment.
It was a bit confusing, because it's container id, not profile id. It looks like someone set it to 6 because it's the next number after 5, but these ids are unrelated. I feel like there's no need to set container id here (apart from making this test failproof against changing the default container id), and it's not testing anything.
I could set it explicitly to 1, but using 6 here is a bit confusing, because it looks like it's related to this 5.
| {option}`${userChromeAttr}` won't work with | ||
| {option}`settings."toolkit.legacyUserProfileCustomizations.stylesheets"` set to false. |
There was a problem hiding this comment.
I'm not sure if you saw my other comment on this since it was in a resolved thread, but {option}`x` shouldn't be used in assertions, because they don't get rendered like the docs do.
There was a problem hiding this comment.
Ok. I left the backticks characters.
d1aee34 to
e9e0e61
Compare
e9e0e61 to
2682ad9
Compare
|
|
||
| "${profilesPath}/${profile.path}/user.js" = mkIf (profile.settings != { } | ||
| || profile.extraConfig != "" || profile.bookmarks != [ ]) { | ||
| "${cfg.profilesPath}/${profile.path}/user.js" = mkIf (profile.settings |
There was a problem hiding this comment.
I think it hurts readability how ./format broke the line before !=. :/
2682ad9 to
615a348
Compare
|
I (hopefully) fixed the tests on macos. |
|
Maybe it would be easier to fix the tests in #5698 and keep this PR self-contained. |
|
It looks like it's still failing here |
|
@kira-bruneau I can't understand why it's failing. |
|
Thank you for your contribution! I marked this pull request as stale due to inactivity. Please read the relevant sections below before commenting. If you are the original author of the PR
If you are not the original author of the PR
|
615a348 to
c4707bf
Compare
c4707bf to
1cd9311
Compare
|
Seems like macos tests where fixed in master. |
|
Now ubuntu tests are broken in master. ;_; |
Enable "toolkit.legacyUserProfileCustomizations.stylesheets" in about:config if userChrome or userContent is not empty.
1cd9311 to
008a165
Compare
|
The code moved from |
|
No idea what is the error now. |
Is this working at its current state, or are there still errors? |
|
Tests on this PR need fixing, see: #6403 |
|
Thank you for your contribution! I marked this pull request as stale due to inactivity. Please read the relevant sections below before commenting. If you are the original author of the PR
If you are not the original author of the PR
|
Description
Enable "toolkit.legacyUserProfileCustomizations.stylesheets" in about:config if userChrome is not empty.
Resolves #5666
Change is not backwards compatible. It will break configs where
userChromeis set to non-empty string andsettings."toolkit.legacyUserProfileCustomizations.stylesheets"is set to false. It seems unlikely but I've added assertion nevertheless.Checklist
Change is backwards compatible.
Code formatted with
./format.Code tested through
nix-shell --pure tests -A run.allornix develop --ignore-environment .#allusing Flakes.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Maintainer CC
@rycee @kira-bruneau