-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@import local files for convenience #14
Comments
I realise that this might have unintended consequences that we are unable to foresee. |
I didn't think this through at all - @import statements obviously have to be at the top of the file. Hopefully we can think about the issue and come up with some solution. |
Alright, what I did instead is:
Then I put this in userChrome.css above my content: And this in userContent.css above my content: So I'll close this issue now. Apologies for the spam! |
Hi! I'm thinking about a different way to allow importing custom styles, and it would be nice to also preserve the theme config (currently there are a few things you can enable in git pull
./update.sh Any changes in your custom styles for the |
Ah, yes, I have e10s disabled, and have apparently for a long time. I always run firefox nightly built from source, and have done that for probably over 10 years on linux. Which means that I sometimes have to explicitly disable new features that keep crashing - But yes, @import does work for me with e10s disabled. That is to say, it works with that pref set to false. Whether or not that enables or disables e10s, I can not say, except that I trust the comment on BMO at face value and can't be bothered to check it further. My thoughts are that personally I don't care about Windows-users, so a script would be fine - but also that it's working for me now and I've apparently had e10s disabled since its inception - and performance has never been a problem for me, so I am certainly willing to wait until the BMO issue is resolved, and continue with the way I solved it in my previous comment. But also that it seems more likely that the userContent.css filename is explicitly sandboxed for access from the content processs than it being related to e10s. I can do some code lookup on DXR a bit later and check it out! |
Hm, so, there's no doubt that I have e10s enabled now after resetting some preferences ( This is the first rule of my userContent.css:
And I can comment out/in the top line to enable/disable your userContent changes. |
Well this is weird. Something just randomly started working for me. I've got two keys in my
By default the first one is set to false and the second one to true. If I enable both, nothing changes. If I disable the second one, |
As far as I can see, |
https://dxr.mozilla.org/mozilla-central/source/toolkit/modules/Troubleshoot.jsm#212 explains what "Web Content Processes" means:
ppmm implements, according to https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Services.jsm "nsIMessageBroadcaster" and "nsIProcessScriptLoader" |
I see you are talking about Firefox Nightly again. I just checked and it does work as you describe it. However, Firefox 57, which is the current stable release, still has this problem: https://dxr.mozilla.org/mozilla-release/search?q=browser.tabs.remote.autostart. Firefox 58.0b5 appears to behave like FF Nightly, so at least I'm glad it's gonna be fixed as soon as the new release rolls out. Anyway, I think we could temporary sacrifice that option to make |
Okay after trying to implement this, I noticed
I don't know why it worked before with I just added And again, thanks for help. |
Hi!
So I already had both custom userContent.css and userChrome.css, but of course I have to use yours, they are so fantastic.
Which means I merged yours with my local ones, but it's a pain to update.
Can you possibly add something equivalent to
@import "localContent.css"
and@import "localChrome.css"
at the bottom of your CSS files? Then I could justgit pull
and put my own selectors in those files, and never have any conflicts.Firefox will stop parsing at those statements if the files do not exist, so they must be at the bottom.
Thank you for the work you've done, it looks amazing.
The text was updated successfully, but these errors were encountered: