-
Notifications
You must be signed in to change notification settings - Fork 280
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
[Bug] Tab count on new tab button gone/bugged #3153
Comments
Huh. This was solved by commenting out the |
When I start Firefox, I reliably see the "+++" in the new tab bar. Opening the addon preferences and changing anything in the stylesheet text box then makes the correct tab count appear (forcing TST or Firefox to reload something?). Mysterious-though-nice workaround aside, it would be great to not have to do that on every browser start :D |
Can you paste which CSS exactly you are using? I use tab counting and have no issues ... but on Windows and FF102.1. |
@rixx I couldn't reproduce this on my Nightly 103.0a1 on Ubuntu 21.04. Please describe detailed steps to reproduce - sorry I don't know code snippets completely. |
... one other comment\observation. I dumped my entire CSS from Windows into Ubuntu and noticed I wasn't seeing my expected behavior, so it made me think of what might be different. In Ubuntu, my theme was set to "Proton". When I changed it to "Photon" everything worked as expected. (Changing to Photon, kept my changes between restarts) @piroor have there been any recent "Proton" changes that might change this behavior? |
Ok, I think I have a solution. I just inspected it real-time and this CSS works for me regardless of Photon vs. Proton and after restarting the browser.
|
It seems that adding this bit has resolved my issue (thanks @irvinm ):
I wonder if any of the snippets here: https://github.com/piroor/treestyletab/wiki/Code-snippets-for-custom-style-rules needs to be updated? Will wait and see what the official fix is but glad that I have a solution for now 😸 |
+1, that fix works here, too! |
irvinm thanks, that worked for me too! |
All, To be clear, there is not a "bug" here with TST. Everything in the wiki is just to help consolidate information for different changes people have tried over the years via CSS. Anyone can update these CSS segments. As many of you know, CSS solutions are based on a certain starting point. The challenge with this issue is that there are 2 variables to this solution: Photon vs. Proton ... and ... whether TST is configured to simulate SVG icons (Options -> Development -> Simulate SVG icons [advanced options enabled]). As long as the simulate SVG icons is enabled (looks like that is the default now), then this simplified solution should work for both Proton and Photon. If "simulate SVG icons" is disabled, this solution would need to be adapted.
If this works for everyone, I can update the wiki. |
Hiya @irvinm Thanks for the clarification that this isn't a bug... it seems that the CSS segments needs to be updated for it to work correctly with the new version due to... reasons(?) 🤷 I have the Unlocked Expert Options ticked (I assume that is what you meant by advanced options enabled) but under Options -> Development can't find any options for Simulate SVG icons However, under the All Configs I see mention of SVG and those are ticked so I am guessing that it's already configured? When I added your new proposed fix to my existing setup, it doesn't work like your previous one: However, if I appended My guess is that you will be updating the CSS code for Tab counts in new tab button [#1661] and anywhere else it is needed. |
Yes, you have it enabled: In terms of the wiki, the solution should be to have it how you have it in the 2nd screenshot ... the first screenshot certainly isn't right. :) Old:
New:
|
@rixx I have updated the wiki to reflect all of this. Can you close this item if there is nothing else to discuss? |
Thank you! |
Now I got whats happen. Recently I introduced a workaround for the bug 1763420. It removes |
Very interesting. There are two CSS declarations for the "+" button:
They CSS selectors have their own "specificity". When multiple CSS declarations are defined for a target, only one declaration having highest specificity become active. Based on the spec, Their specificity are calculated as:
The document says that 0-3-1 should win and the user defined style rule never win due to its lower specificity 0-1-1. However on old version TST the user style was effective, and it still effective when it is applied dynamically. This result looks that specificity of those selectors are ignored. This is possibly an edge case bug of Gecko itself. Anyway, the solution described at the comment #3153 (comment) is quite effective because
|
I've introduced a new workaround ea2e9dc and the minimum testcase #3153 (comment) looks effective even if I restart Firefox. I hope it should help people who use user styles. |
Hi there, also came here, because my counter was broken, but the fix works for me. Problem solved 👯 I just could not ignore the screenshots - you all managed to switch your TST-Settings to a dark theme. Mine are still glaring white ... is there any setting separate for the options darkness only? |
Abstract
I'm using the tab count recipe from the Wiki, copied 1:1. It's been working for a long time now.
I'm running Firefox Nightly, and am mostly reporting this to check if it's changed behaviour or a bug:
Expected result
I used to see the tab count in my "new tab" button.
Actual result
The tab now reads "+++".
Environment
The text was updated successfully, but these errors were encountered: