Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
GNOME GUI Graphics Programming Software IT Technology

WebKit For Metacity/Mutter CSS Theming? 124

An anonymous reader writes "As Metacity (the GNOME window manager) evolves into Mutter, the question of CSS themes and how to implement them has come up. One of the proposals was WebKit, which the author asked more specifically about on his blog. It seems that WebKit, being a very fast rendering engine, would allow Mutter to have unprecedented power, not to mention being nearly future-proofed. As a major bonus, going this way could allow GNOME to share themes with KDE, which is apparently already headed towards a dependency on WebKit. Many people will reflexively recoil at the idea of a browser being mixed with a window manager. But it's important to remember that WebKit is not a browser — it's just a rendering engine, and it's not where all the security issues come from. So, what are the real technical issues at stake here? What are the pros and cons of using WebKit underneath GNOME rendering?"
This discussion has been archived. No new comments can be posted.

WebKit For Metacity/Mutter CSS Theming?

Comments Filter:
  • Re:Lets see... (Score:4, Insightful)

    by bogaboga ( 793279 ) on Sunday July 19, 2009 @09:59PM (#28751967)

    One of the pros: GNOME gets a "tested" engine to do most of the work required...

    And the con: GNOMErs will squabble about what to drop and in the end, they will create more duplication. Not good...not good at all.

  • by TerrenceCoggins ( 1601371 ) on Sunday July 19, 2009 @09:59PM (#28751971)
    Make it happen so that Open-Source OS's can move onto standardizing the more important OS API's without having to worry about having a standardized theming schematic that is powerful and unbiased towards any visual toolkit or desktop environment. Hopefully after everyone adopts this I can make apps from one gnome look good in kde and vice versa already...
  • Re:Lets see... (Score:5, Insightful)

    by camg188 ( 932324 ) on Sunday July 19, 2009 @10:02PM (#28751991)
    "Lets see, some person makes a "theme" that exploits a flaw in WebKit"
    Could you explain to me why this would be a greater security risk than some person making a "theme" that exploits a flaw in Metacity?
  • Re:Lets see... (Score:3, Insightful)

    by msuarezalvarez ( 667058 ) on Sunday July 19, 2009 @10:28PM (#28752133)
    Unless you were frozen in th 50s, that comment can only be explained as a joke... if there is something of which there is plenty, that's window managers...
  • Re:Lets see... (Score:5, Insightful)

    by Fnord ( 1756 ) <joe@sadusk.com> on Sunday July 19, 2009 @10:37PM (#28752201) Homepage

    But, your window manager doesn't run as root. And themes have to be installed by the end user. This is no less secure that just using a browser.

    The overhead could be ridiculous, sure, but this just isn't a security problem.

  • Re:Lets see... (Score:5, Insightful)

    by ubernostrum ( 219442 ) on Sunday July 19, 2009 @10:40PM (#28752229) Homepage

    Browser rendering engines? In my application UI? It's more likely than you think, especially if you use Firefox, or any other application built around a XUL runtime. How many CSS-only exploits you heard of for them?

  • by Anonymous Coward on Sunday July 19, 2009 @10:47PM (#28752297)

    It seems that WebKit, being a very fast rendering engine, would allow Mutter to have unprecedented power, not to mention being nearly future-proofed.

    Maybe I'm old-fashioned, but I'm not really seeing why we need so much power or future-proofing in a window manager. The window manager is responsible for... what, drawing title bars and window frames? Can someone explain to me what part of that needs future-proofing or would benefit in any way from an HTML rendering engine? It's not that I disagree, I honestly don't see the purpose or logic at all. I mean, if the GNOME guys decided to replace Gtk+ with WebKit... well, I think it'd be a lousy idea, but I could see the reasoning. This just completely baffles me. It's like if I suggested replacing a bookshelf with a refrigerator. OK, I guess you can put books in a refrigerator if you want; it does have shelves. And I suppose if you happened to have some books which needed to be kept cold, well, that'd be a big plus. Maybe putting an old book in the vegetable crisper would keep it in better condition longer.

    But seriously, I'm not sure I've ever seen such a shining example of a solution looking for a problem.

  • Re:Lets see... (Score:5, Insightful)

    by SanityInAnarchy ( 655584 ) <ninja@slaphack.com> on Sunday July 19, 2009 @11:05PM (#28752409) Journal

    Wait, how does this make it easier? Metacity's code is open already.

    There are going to be a ton more crackers wanting to find ways to exploit Safari and Chrome than there will ever be wanting to find flaws in a WM.

    And a ton more hackers working to fix those flaws.

    Basically, without WebKit GNOME is just another DE, interesting, but not worth the work to exploit. On the other hand, with a ready-made script, it wouldn't take too long for someone with no skills to exploit it.

    So you're basically arguing in favor of security through obscurity, and against code reuse?

    Also, I fail to see how it's more dangerous for the average user to have their WM compromised than their browser. It's a lot easier to trick people into visiting a website, just once, than it is to convince them to install your theme.

  • by Anonymous Coward on Sunday July 19, 2009 @11:47PM (#28752691)

    It seems that WebKit, being a very fast rendering engine, would allow Mutter to have unprecedented power, not to mention being nearly future-proofed.

    Maybe I'm old-fashioned, but I'm not really seeing why we need so much power or future-proofing in a window manager. The window manager is responsible for... what, drawing title bars and window frames? Can someone explain to me what part of that needs future-proofing or would benefit in any way from an HTML rendering engine? It's not that I disagree, I honestly don't see the purpose or logic at all. I mean, if the GNOME guys decided to replace Gtk+ with WebKit... well, I think it'd be a lousy idea, but I could see the reasoning. This just completely baffles me. It's like if I suggested replacing a bookshelf with a refrigerator. OK, I guess you can put books in a refrigerator if you want; it does have shelves. And I suppose if you happened to have some books which needed to be kept cold, well, that'd be a big plus. Maybe putting an old book in the vegetable crisper would keep it in better condition longer.

    But seriously, I'm not sure I've ever seen such a shining example of a solution looking for a problem.

    I think the future they're proofing against is people adding arbitrary widgets to everything and then wanting them to inherit properties from the general theme.

  • Re:Lets see... (Score:4, Insightful)

    by RiotingPacifist ( 1228016 ) on Monday July 20, 2009 @12:16AM (#28752829)

    and a pre-made rootkit to gain access.

    you keep using that phrase, I don't think it means what you think it means.
    1) your WM runs at user level, an exploit would therefore at best gain the ability to run code at user level.
    2) you WM can be locked down pretty tough by apparmore/selinux/etc, so whatever code it can execute is limited to the functions of a WM anyway (no net access, no disk writes, etc)
    3) if your downloading random themes from untrusted users, it's easier to attack you by giving you a widget/screenlet or random script to run.
    4) if there is a security flaw in the webkit rendering engine, surely you can just exploit peoples browsers when they go to download your theme.

    In summary please never talk about security ever again.

  • by moosesocks ( 264553 ) on Monday July 20, 2009 @01:07AM (#28753091) Homepage

    Try using CSS for a while, and you'll see that its creators left out some frankly baffling features, such as the ability to center an element.

    The 3 major implementations (Mozilla, WebKit, and IE) all had major differences in their first versions (with none of them implementing the spec properly!)

    Other features that (dead tree) page designers would find extremely common were left out as well (hyphenation and columns being my biggest personal pet peeves)

    Currently, there's a big push to do applications and graphics using CSS and Javascript, which have resulted in WebKit and Mozilla adopting a set of proprietary CSS attributes that aren't part of the standard.

    Don't get me wrong -- style sheets were an absolute godsend to web development. However, both the standard (and the implementation of that standard) are crap. Metacity would be much better off taking NeXT/Apple route, and using a PDF/PostScript derivative.

  • by haruchai ( 17472 ) on Monday July 20, 2009 @01:46AM (#28753219)

    Active Desktop was part of or released with IE4, probably in mid-97. Too bad it sucked system resources so hard and was so unstable

  • by Flossymike ( 461164 ) on Monday July 20, 2009 @06:23AM (#28754339)

    Just a random thought off the top of my head, but would using css potentially help with technologies such as screen readers for the blind? Also, as you could have named areas, does it open up areas which can be set as preferences, for instance deciding that you prefer to have menus always at the top of the screen.

    Just my 1p

  • by Anonymous Coward on Monday July 20, 2009 @07:27AM (#28754627)

    I'm not sure I understand how you start by saying that CSS barely works for the target environment

    Just look at what you have to do to make rounded corners. (This seems especially relevant for WMs :) )

"I've seen it. It's rubbish." -- Marvin the Paranoid Android

Working...