Coming soon - Firefox Client Side Decoration

Chat about Linux in general
Forum rules
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
Lucap
Level 6
Level 6
Posts: 1038
Joined: Tue May 24, 2016 1:40 am

Coming soon - Firefox Client Side Decoration

Post by Lucap »

http://www.omgubuntu.co.uk/2017/08/fire ... oming-soon

https://www.reddit.com/r/linux/comments ... n_firefox/

Apparently Fedora is already experimenting with it and it should be available to the rest of us by Firefox 59 going by the reddit link.

Though it's somewhat confusing as the pictures shown in the omgubuntu link looks like genuine client side decoration as the tabs go all the way to the top of the screen yet if you look at the Fedora link they still don't and just look like the title bar has been reduced slightly?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JosephM
Level 6
Level 6
Posts: 1454
Joined: Sun May 26, 2013 6:25 pm

Re: Coming soon - Firefox Client Side Decoration

Post by JosephM »

Yeah, by the screenshot it looks like there is actually very little difference.
When I give opinions, they are my own. Not necessarily those of any other Linux Mint developer or the Linux Mint project as a whole.
Lucap
Level 6
Level 6
Posts: 1038
Joined: Tue May 24, 2016 1:40 am

Re: Coming soon - Firefox Client Side Decoration

Post by Lucap »

Lets hope there is something something wrong with Fedora's implementation as it does seem like a pointless exercise for a couple more pixels.
User avatar
Moem
Level 22
Level 22
Posts: 16193
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Coming soon - Firefox Client Side Decoration

Post by Moem »

Who knows, we may even be able to get the tabs back below the address bar, where they belong. :wink:
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
aes2011
Level 4
Level 4
Posts: 498
Joined: Wed Jul 06, 2011 10:39 pm

Re: Coming soon - Firefox Client Side Decoration

Post by aes2011 »

Lucap wrote:Lets hope there is something something wrong with Fedora's implementation as it does seem like a pointless exercise for a couple more pixels.
Seems to work "partially" for users of kwin or xfwm4 :(
Lucap
Level 6
Level 6
Posts: 1038
Joined: Tue May 24, 2016 1:40 am

Re: Coming soon - Firefox Client Side Decoration

Post by Lucap »

Moem wrote:Who knows, we may even be able to get the tabs back below the address bar, where they belong. :wink:
I'm slightly concerned you may also move the bottom task bar to the top as well. :P :wink:

aes2011 wrote:Seems to work "partially" for users of kwin or xfwm4 :(
I'm starting to wonder if it will make FF 59 considering they have been at it for ages and it was supposed to have been release ready for FF 57
User avatar
Pepi
Level 6
Level 6
Posts: 1306
Joined: Wed Nov 18, 2009 7:47 pm

Re: Coming soon - Firefox Client Side Decoration

Post by Pepi »

Moem wrote:Who knows, we may even be able to get the tabs back below the address bar, where they belong. :wink:
I think I've read where this can be done by using the 'userChrome.css file in your profile. I added this file to get a little folder color back and it worked
User avatar
Moem
Level 22
Level 22
Posts: 16193
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Coming soon - Firefox Client Side Decoration

Post by Moem »

Lucap wrote:I'm slightly concerned you may also move the bottom task bar to the top as well. :P :wink:
Sorry, what's a bottom task bar? I looked at my bottom in the mirror but it doesn't appear to have a task bar. 8)
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
aes2011
Level 4
Level 4
Posts: 498
Joined: Wed Jul 06, 2011 10:39 pm

Re: Coming soon - Firefox Client Side Decoration

Post by aes2011 »

Moem wrote:Who knows, we may even be able to get the tabs back below the address bar, where they belong. :wink:
Eminently doable: https://github.com/Aris-t2/CustomCSSforFx/releases/ for that and much, much more!

But a clean version is right here: viewtopic.php?f=47&t=257605

Back to CSD. In the current Firefox 59 CSD still has far to go. Several pointless pixels above the tabs and an empty square at the left end of the tab bar. As things stand now, in KDE at least, it's easy to make a window-specific rule to cleanly lose the title bar. Min/max and close are also taken out but there's always the keyboard for that.
Last edited by aes2011 on Sat Dec 02, 2017 9:58 am, edited 1 time in total.
Lucap
Level 6
Level 6
Posts: 1038
Joined: Tue May 24, 2016 1:40 am

Re: Coming soon - Firefox Client Side Decoration

Post by Lucap »

* Insert twerking gif *
Moem wrote:Sorry, what's a bottom task bar? I looked at my bottom in the mirror but it doesn't appear to have a task bar. 8)
Try twerking the settings. :D
User avatar
Flemur
Level 20
Level 20
Posts: 10097
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Coming soon - Firefox Client Side Decoration

Post by Flemur »

I don't get it - is it a big deal to remove the titlebar (I do that with fluxbox) or move a menu bar somewhere else (can probably do that with userChrome.css) ?

If they want users to be able to customize a program's GUI they should emulate foobar - or just copy it because the guy designed and implemented it so well.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Lucap
Level 6
Level 6
Posts: 1038
Joined: Tue May 24, 2016 1:40 am

Re: Coming soon - Firefox Client Side Decoration

Post by Lucap »

Flemur wrote:I don't get it - is it a big deal to remove the titlebar (I do that with fluxbox) or move a menu bar somewhere else (can probably do that with userChrome.css) ?

If they want users to be able to customize a program's GUI they should emulate foobar - or just copy it because the guy designed and implemented it so well.
https://addons.mozilla.org/en-GB/firefox/addon/htitle/

Apparently you have to be careful with layout.css.devPixelsPerPx with editing userChrome.css and alike otherwise there is scaling problems that the font rendering can look fuzzy in relation to the viewable screen?
aes2011
Level 4
Level 4
Posts: 498
Joined: Wed Jul 06, 2011 10:39 pm

Re: Coming soon - Firefox Client Side Decoration

Post by aes2011 »

In Firefox 59, chrome://browser/skin/browser.css has

Code: Select all


:root {
  /* Note: Setting this to 0 (without px) breaks CSS calculations for OSX. */
  --space-above-tabbar: 0px;
}

:root[extradragspace][tabsintitlebar]:not([inFullscreen]) {
  --space-above-tabbar: 8px;
}

/* Toolbar / content area border */
but adding that code to userChrome.css and reducing the px values does nothing for me even after adding "!important". There's still the ~8px dead space above the tab bar.
H.Remedy

Re: Coming soon - Firefox Client Side Decoration

Post by H.Remedy »

aes2011 wrote:As things stand now, in KDE at least, it's easy to make a window-specific rule to cleanly lose the title bar. Min/max and close are also taken out but there's always the keyboard for that.
I've accomplished the same in Xfce by installing a package called devilspie (instructions: https://serge-m.github.io/how-to-hide-f ... nsion.html) and using it to hide the Firefox titlebar.

As you say, removing the titlebar also removes the maximize/minimize/close icons. But you can get those back with the following Firefox extensions:
https://addons.mozilla.org/en-US/firefo ... he-window/
https://addons.mozilla.org/en-US/firefo ... he-window/
https://addons.mozilla.org/en-US/firefo ... he-window/

The end result is quite nice:
Image
aes2011
Level 4
Level 4
Posts: 498
Joined: Wed Jul 06, 2011 10:39 pm

Re: Coming soon - Firefox Client Side Decoration

Post by aes2011 »

H.Remedy wrote:...
I've accomplished the same in Xfce by installing a package called devilspie (instructions: https://serge-m.github.io/how-to-hide-f ... nsion.html) and using it to hide the Firefox titlebar.

As you say, removing the titlebar also removes the maximize/minimize/close icons. But you can get those back with the following Firefox extensions:
https://addons.mozilla.org/en-US/firefo ... he-window/
https://addons.mozilla.org/en-US/firefo ... he-window/
https://addons.mozilla.org/en-US/firefo ... he-window/

The end result is quite nice:
Image
Thanks for the idea of putting back the icons. And devilspie is great for Xfce users who want to script window management.
Lucap
Level 6
Level 6
Posts: 1038
Joined: Tue May 24, 2016 1:40 am

Re: Coming soon - Firefox Client Side Decoration

Post by Lucap »

I can't remember the exact reason why ( it might have been the developer of Htitle that said it? ) but a few years back i vaguely remember there was a problem with devilspie and the developer vanished and then someone forked it into devilspie2.

I think it was something to do with the way it changed the pixel layout or something so it might be worth looking into if it can be done with devilspie2 until Firefox implements their own changes?
H.Remedy

Re: Coming soon - Firefox Client Side Decoration

Post by H.Remedy »

Lucap wrote:I think it was something to do with the way it changed the pixel layout
Thanks for the tip about devilspie2. It turns out the first version was just not being maintained anymore, so someone forked it. The fork is not compatible with the original. However, for my very simple need, the original version is fine.

Here's a link to the newer project for anyone interested: http://www.nongnu.org/devilspie2/. Amusingly enough, there's a big notice at the top asking for a new maintainer. :)
aes2011
Level 4
Level 4
Posts: 498
Joined: Wed Jul 06, 2011 10:39 pm

Re: Coming soon - Firefox Client Side Decoration

Post by aes2011 »

H.Remedy wrote:
Lucap wrote:I think it was something to do with the way it changed the pixel layout
Thanks for the tip about devilspie2. ...
Here's a link to the newer project for anyone interested: http://www.nongnu.org/devilspie2/. Amusingly enough, there's a big notice at the top asking for a new maintainer. :)
@Lucap, @H.Remedy, thanks for the updates. I wonder if Wayland on the horizon is inducing a sense of "what's the use ..." ?
InkKnife
Level 5
Level 5
Posts: 741
Joined: Mon Apr 30, 2012 5:24 pm

Re: Coming soon - Firefox Client Side Decoration

Post by InkKnife »

I hope this won't mean that Firefox will start ignoring user set window widget placement like Chrome does.
i7 3770, 12GB of ram, 256GB SSD, 64GB SSD, 750GB HDD, 1TB HDD, Cinnamon.
Lucap
Level 6
Level 6
Posts: 1038
Joined: Tue May 24, 2016 1:40 am

Re: Coming soon - Firefox Client Side Decoration

Post by Lucap »

Image

I just tried firefox 60 nightly and it now has the above customise option to hide the title bar and it worked just like the old htitle addon. :)
Locked

Return to “Chat about Linux”