Slashdot Mirror


WebKit For Metacity/Mutter CSS Theming?

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?"

124 comments

  1. Lets see... by Darkness404 · · Score: 0

    But it's important to remember that WebKit it 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?"

    Ok, so lets see, ignoring the huge overhead this will have and the slowdowns. How isn't it a security risk? Lets see, some person makes a "theme" that exploits a flaw in WebKit to let them run a rootkit. How doesn't this sound like a bad idea? Its becoming more and more like Windows....

    --
    Taxation is legalized theft, no more, no less.
    1. Re:Lets see... by maxume · · Score: 3, Funny

      It's too bad, what with Metacity being one of the few window managers available.

      --
      Nerd rage is the funniest rage.
    2. Re:Lets see... by Anonymous Coward · · Score: 0

      Someone can do the exact same thing and exploit the current rendering system. Come on, that argument is a non-starter.

      It doesn't become more and more like windows until the users become more and more like windows users that click OK no matter what and never read the effing screen...

    3. Re:Lets see... by bogaboga · · Score: 3, Insightful

      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.

    4. Re:Lets see... by camg188 · · Score: 5, Insightful

      "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?

    5. Re:Lets see... by FudRucker · · Score: 0, Offtopic

      gnome and kde both, i have abandoned both, i just use lightweight window managers like a custom built & trimmed fvwm or OpenBox anymore

      --
      Politics is Treachery, Religion is Brainwashing
    6. Re:Lets see... by Darkness404 · · Score: 1

      The difference being is that there are a ton more people out to exploit WebKit than there will ever be wanting to exploit Metacity.

      --
      Taxation is legalized theft, no more, no less.
    7. Re:Lets see... by Darkness404 · · Score: 1, Interesting

      Because of a few things. For one, WebKit powers Safari, Chrome and a whole host of other browsers. Because of this, and the fact that the code is open, its going to be a lot easier for flaws to be discovered (just look at the Firefox zero day exploit that came out today). 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. Because of this large volume, there are going to be a lot more pre-made scripts available to your generic script kiddy. One of them realizes that GNOME now uses WebKit and uses that and a pre-made rootkit to gain access.

      While security by obscurity never is a good permanent solution, it works pretty well when dealing with things with a (generally speaking) small userbase. 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.

      --
      Taxation is legalized theft, no more, no less.
    8. Re:Lets see... by msuarezalvarez · · Score: 2, Insightful

      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...

    9. Re:Lets see... by maxume · · Score: 1

      Yes, it was a joke. And I don't even use Linux.

      --
      Nerd rage is the funniest rage.
    10. Re:Lets see... by maxume · · Score: 1

      Today's Firefox vulnerability appears to be limited to denial of service (which probably isn't an exploit, but I'm not close enough to that jargon to argue about it). The one from last week was exploitable.

      --
      Nerd rage is the funniest rage.
    11. Re:Lets see... by Fnord · · Score: 4, Insightful

      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.

    12. Re:Lets see... by Darkness404 · · Score: 1

      Ah, well the article was updated after I had read it. But thanks for pointing it out (I was going to actually test out the code this afternoon but got distracted by Halo).

      --
      Taxation is legalized theft, no more, no less.
    13. Re:Lets see... by ubernostrum · · Score: 4, Insightful

      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?

    14. Re:Lets see... by SanityInAnarchy · · Score: 5, Insightful

      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.

      --
      Don't thank God, thank a doctor!
    15. Re:Lets see... by smash · · Score: 1

      One of them realizes that GNOME now uses WebKit and uses that and a pre-made rootkit to gain access.

      Uh, you run your window manager as root do you? Good luck with that...

      --
      I run: Windows, OS X, Linux, FreeBSD. Just because you have a hammer, doesn't mean everything is a nail.
    16. Re:Lets see... by RiotingPacifist · · Score: 3, Insightful

      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.

      --
      IranAir Flight 655 never forget!
    17. Re:Lets see... by tyrione · · Score: 1

      Nice try.

      Here is the growing list of WebKit enabled GNOME applications.

      http://trac.webkit.org/wiki/ApplicationsGtk

      I personally like Epiphany 2.27.2 in Debian already being HTML 5 ready and having Font-Face and more just working while I have to wait for Debian to actually get Firefox [Iceweasel] ready. With the most recent major security flaw in Firefox 3.5 I'd expect Debian to wait until FF 3.5.1 is released before I get to have that even in Experimental, let alone Sid.

    18. Re:Lets see... by 644bd346996 · · Score: 1

      Presumably, in using it strictly as a themeing engine, the version of WebKit used wouldn't incude a JavaScript interpreter by default, since only the CSS layout and rendering code is needed. Without JavaScript, what attack vectors do you expect to remain?

    19. Re:Lets see... by Anonymous Coward · · Score: 0

      FYI, Iceweasel is at 3.5.1-1 in experimental.

    20. Re:Lets see... by Anonymous Coward · · Score: 0

      Call me crazy, but I've never heard of any CSS-only exploits period. I've seen things like z-index lies "display:none;" bullshittery, but only to some other end, like phishing, or some fancy malformed js. Is there something I'm missing?

    21. Re:Lets see... by Anonymous Coward · · Score: 0

      What does a Window Manager have to do with Linux?

    22. Re:Lets see... by vonFinkelstien · · Score: 1

      It's a lot easier to trick people into visiting a website, just once, than it is to convince them to install your theme.

      A pretty lady as a wallpaper will convince them just fine.

    23. Re:Lets see... by Anonymous Coward · · Score: 0

      Whooosh? Or was the sound of a joke going over my head?

    24. Re:Lets see... by SanityInAnarchy · · Score: 1

      Depends who you're trying to convince. It really doesn't take much to download a pretty lady in a safer jpg or png form and set her as your wallpaper.

      --
      Don't thank God, thank a doctor!
    25. Re:Lets see... by Razalhague · · Score: 1

      And where do you need to go in order to get one? A webpage!

      Also, we're still talking about nerds (unless the year of the linux desktop happens while I wasn't looking). A great many don't put pretty ladies on their desktop. They keep them well hidden in other folders.

    26. Re:Lets see... by Anonymous Coward · · Score: 1, Funny

      Simple solution:

      Users must be too fucking stupid to choose a theme, therefore remove themes from metacity. Whichever developer is landed with the metacity code this year can choose the theme. Everyone will love this fantastic enhancement of the user interfacing experience!

    27. Re:Lets see... by Anonymous Coward · · Score: 0

      Or Gnome will rewrite Webkit in Mono, just to piss everyone off.

    28. Re:Lets see... by MrCrassic · · Score: 2, Funny

      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...

      * -- joke

        OO
      OOOOO -- the cloud
        OO

        o
      \|/
        | -- you
      / \

    29. Re:Lets see... by MrCrassic · · Score: 1

      and I suck for posting that.

    30. Re:Lets see... by MikeBabcock · · Score: 1

      Seriously, you're confused:

      Because of this, and the fact that the code is open, its going to be a lot easier ...

      Unlike Linux or Gnome itself, or Metacity? We're talking about open source or free software here, its all got exposed code, and it all gets checked for bugs by both malicious and kind-hearted persons from time to time.

      If you're saying that WebKit is more popular than Linux itself and will therefore attract a few extra eyes, I'd bet you're wrong but either way its pretty close. The problem you should have is with WebKit being fairly new in comparison, not with it being open.

      --
      - Michael T. Babcock (Yes, I blog)
    31. Re:Lets see... by Anonymous Coward · · Score: 0

      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.

      Anti-Sec has officialy jumped the shark. They're posting to Slashdot now.

    32. Re:Lets see... by Barsteward · · Score: 1

      and I suck for posting that.
      leave my cock alone.......

      --
      "The hands that help are better far than lips that pray." - Robert Ingersoll (1833-1899)
    33. Re:Lets see... by FunkyELF · · Score: 1

      That is a dumb argument.
      You ever hear about security through obscurity?

    34. Re:Lets see... by joaommp · · Score: 1

      you've been reading linuxhaters too much. take a pause. :P

    35. Re:Lets see... by Ant+P. · · Score: 1

      * { background-image: url(telnet://some-innocent-site:80) }

      There, a client and server DoS attack using only CSS. It doesn't work any more, but it did back when I found out about it (at which point it had already been known for over a year and not fixed, and stayed that way until someone else found out "shell:" urls entered in Firefox got opened and executed by IE...)

  2. double bubble, toil and trouble by Anonymous Coward · · Score: 0

    But it's important to remember that WebKit it not a browser, it's just a rendering engine, and it's not where all the security issues come from.

    And Trident is "just" the rendering engine for Internet Explorer. Yet it's where ALL of the security issues come from.

    1. Re:double bubble, toil and trouble by Arker · · Score: 2, Informative

      Indeed.

      Now webkit isnt a porous mass of malware-friendly hooks like you have on windows, it's true. At least not yet. Nonetheless, sometimes it's best just to accept that the fact you *can* do something stupid like make your window manager depend on an unrelated application, that doesnt mean it's actually a good idea.

      --
      =-=-=-=-=-=-=-=-=-=-=-=-=-=-
      Friends don't let friends enable ecmascript.
    2. Re:double bubble, toil and trouble by DavidRawling · · Score: 2, Interesting

      Yes, yes it is. And a lot of vocal people whinge about how removing IE doesn't remove Trident, which shouldn't be part of the OS, because god dammit, people MUST BE ABLE TO CHOOSE, and now you're not letting me choose not to have WebKit, because my 2 user fork of Gecko is better because it lets me do X, Y and Z.

      Sounds like a double standard to me. Either integrating the HTML engine with the window manager is bad (Trident/Windows) or it's good (WebKit/Mutter). It's not both at the same time because you want to be an individual and hate Microsoft, just like everyone else does.

    3. Re:double bubble, toil and trouble by intx13 · · Score: 1

      Nobody is talking about merging Firefox and Mutter. In general, squeezing security problem-prone applications into a window manager is a Bad Thing, whether it's IE and Windows Explorer, Firefox and Gnome, or sendmail and anything.

      This article is talking about using WebKit, a rendering engine as a themeing system in Mutter. While using Trident to render themes in Windows Explorer would certainly bring out some cheap laughs at IE's expense, security is not really the predominant concern.

    4. Re:double bubble, toil and trouble by Daniel+Phillips · · Score: 1

      So... Webkit renders html as far as I know. So the proposal seems to be to render the entire Gnome gui by feeding html at it. I hope I'm wrong, because if that is correct then it would be a really goofy way of going about things.

      --
      Have you got your LWN subscription yet?
    5. Re:double bubble, toil and trouble by collinstocks · · Score: 2, Informative

      So... Webkit renders html as far as I know. So the proposal seems to be to render the entire Gnome gui by feeding html at it. I hope I'm wrong, because if that is correct then it would be a really goofy way of going about things.

      You're wrong, don't worry.

      A window manager pretty much manages the window decorations (title bar, borders, et cetera) and window actions (close, maximize, resize, move, roll-up, sticky, always on top, always on bottom, et cetera).

      Metacity is a window manager and nothing else. It doesn't handle what is in the windows themselves.

      Oh, and their only proposing to use CSS. No HTML.

    6. Re:double bubble, toil and trouble by zsau · · Score: 1

      What's wrong with two-user forks? I have a bunch of one and a couple of two user forks on my computer. Isn't that what free software's about?

      --
      Look out!
    7. Re:double bubble, toil and trouble by IntlHarvester · · Score: 1

      Either integrating the HTML engine with the window manager is bad (Trident/Windows) or it's good (WebKit/Mutter). It's not both at the same time because you want to be an individual and hate Microsoft, just like everyone else does.

      The specific problem with Windows Explorer was that it rendered local HTML content at a higher security level than web content. Which lead to fun exploits because someone selected an icon.

      And certainly there was a feeling that Microsoft wasn't playing fair, but that was more about threating Compaq and others in their "trust". Had Trident been integrated with some sense of security, it probably wouldn't have been a technical issue per-se.

      --
      Business. Numbers. Money. People. Computer World.
    8. Re:double bubble, toil and trouble by Curtman · · Score: 1

      a lot of vocal people whinge about how removing IE doesn't remove Trident ... Either integrating the HTML engine with the window manager is bad (Trident/Windows) or it's good (WebKit/Mutter). It's not both at the same time because you want to be an individual and hate Microsoft, just like everyone else does.

      Right, and as individuals we all voted years ago speak as one unified voice which never contradicts itself. I apologize on behalf of the FOSS collective. Your suggestions will be assimilateda dnd addressed at next years conference.

  3. I see pro's, but no con's by TerrenceCoggins · · Score: 1, Insightful

    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...

  4. Something compiled? by ickleberry · · Score: 0, Flamebait

    Would it not be better to use a compiled, binary version of CSS for this sort of thing to reduce the overhead. I know its fashionable these days to do everything over HTTP and inside a browser but it's just a fad. Everybody knows it sucks from a design / efficiency point of view (unless you are an expensive coffee drinking, iPhone toting meeja student with messy hair who lives in a big city).

    I'm not going to waste my time writing a detailed rant about why you shouldn't use a freaking browser rendering engine to draw your GUI for you because thanks to the openness of Linux I will just be able to load one of 10's of other, infinitely faster window managers. KDE4 has already become far too bloated and unresponsive for my liking and it looks like GNOME will be next, maybe XFCE after that but other minimalist window managers will be created to fill the niche left behind by those who fell victim to the awful disease that is feature creep.

    I have nothing against features that are actually useful, but this is just extra fluff we don't need

    1. Re:Something compiled? by Anonymous Coward · · Score: 0

      "Doing everything over HTTP"... What does that have to do with what's being discussed?
      "Compiled, binary version of CSS"... Do you know what CSS is? Do you know what webkit is?

    2. Re:Something compiled? by jpfed · · Score: 2, Funny

      Indeed, nothing says UNIX like a binary format.

    3. Re:Something compiled? by Anonymous Coward · · Score: 0

      If CSS should be used, webkit should be the way. It sounds like you'd be in the no-CSS for Mutter camp.

    4. Re:Something compiled? by SanityInAnarchy · · Score: 5, Interesting

      I have no idea why you're modded insightful. I'm tempted to mod you down, but I'll reply, instead:

      I know its fashionable these days to do everything over HTTP and inside a browser but it's just a fad.

      Yeah, the Web is "just a fad". OK, I'll get off your lawn.

      Oh, and what does HTTP have to do with this? Or a browser? This is just a rendering engine, nor is it the first app to do this -- Firefox itself does its UI in XUL, as does Thunderbird, Songbird, and several other apps.

      Everybody knows it sucks from a design / efficiency point of view

      Design, you may have a point. I'd be interested to hear it.

      Efficiency is actually getting quite good, especially for what this is.

      I'm not going to waste my time writing a detailed rant about why you shouldn't use a freaking browser rendering engine to draw your GUI for you because thanks to the openness of Linux I will just be able to load one of 10's of other, infinitely faster window managers.

      Good. But if you'd written a longer rant, there might actually be more to discuss.

      But let's go back to your original point:

      Would it not be better to use a compiled, binary version of CSS for this sort of thing to reduce the overhead.

      So... Why would we want to use a "compiled, binary" version of anything we don't have to? Your startup scripts are in Bash. If you're on Ubuntu, a fair amount of your upgrade scripts are in Python.

      For efficiency's sake, you say. Ok, but why would you want it stored that way? Web browsers are proof that it really doesn't take that long to parse CSS, HTML, and Javascript. There's no reason the runtime can't store them in some binary/bytecode format, but why would you complicate the on-disk format?

      For space? Those things compress well. And again, browsers are proof that compression is fast enough for people to not notice or care.

      For boot time? Again, browsers prove that's kind of a non-issue -- most websites I view are massively more complex than some borders around a window. Turn on Flashblock, and tell me you wouldn't love for a computer to boot as fast as a typical website loads.

      Now, I understand where you're coming from. I used Fluxbox for a long time. Then I realized that KDE4 loads in about two seconds on my machine, and zero seconds vs two seconds to load a GUI isn't enough of a difference for me to care, considering the functionality I get out of it. (Actually, I realized this with KDE3...)

      And as for the functionality, I don't know the first thing about skinning a window manager. I do, however, know how to build HTML and CSS. So, me suddenly knowing how to build themes, easily, I call that a useful feature.

      --
      Don't thank God, thank a doctor!
    5. Re:Something compiled? by mctk · · Score: 3, Funny

      unless you are an expensive coffee drinking,

      You.

      iPhone toting

      In.

      meeja student

      Sensitive.

      with messy hair

      Clod!

      who lives in a big city

      Oh, nevermind.

      --
      Paul Grosfield - the quicker picker upper.
    6. Re:Something compiled? by Daniel+Phillips · · Score: 1

      Web browsers are proof that it really doesn't take that long to parse CSS, HTML, and Javascript.

      Web browsers are proof that CSS, HTML and Javascript based interfaces are really sluggish and memory hungry compared to interfaces coded with native frameworks.

      --
      Have you got your LWN subscription yet?
    7. Re:Something compiled? by SanityInAnarchy · · Score: 3, Interesting

      Are you... FUKING MAD?

      I'm sane enough to know how to spell 'fucking'.

      A whole desktop using a HTML engine to render the entire desktop?

      I don't know that I suggested that. Doesn't have to be pure HTML, nor did anyone suggest that it be the entire desktop. Oh, and the original proposal was apparently for CSS and XML -- so more like XUL.

      Are you using Firefox? Its entire UI is done in XUL, and rendered by Gecko.

      You know the nigthmare to create and respond to events using html and javascript?

      It's actually like some beautiful dream...

      Ok, yes, could be better. Has also been beaten into submission by frameworks. I can create and respond to an event nearly with a one-liner -- and I'm doing it not just with callbacks, but with callbacks that are also closures. Javascript is actually a good language -- I am not insane, I'm not being sarcastic, and if you really disagree, I suspect you don't know it very well.

      And the ridiculous performance against a normal window manager like KDE or the actual GNOME?

      KDE4 already uses Ecmascript (Javascript) for a few things. I wouldn't be surprised to find HTML and Webkit in there somewhere.

      And for what it's worth, browser speeds are actually to the point where they occasionally double between releases. The fact that you think this would be slow mostly means you've dealt with slow, unoptimized implementations.

      Or, in other words: Have you seen Chrome?

      You maybe like to use a US$2000 machine to simply get the GUI usable

      Actually, the machine cost more, but it does hell of a lot more than "simply get the GUI usable". KDE4 also runs on a five year old machine -- not particularly fast, but works fine, and better than the XP that was there.

      --
      Don't thank God, thank a doctor!
    8. Re:Something compiled? by SanityInAnarchy · · Score: 1

      Turn off Flash and see if it doesn't get a lot faster.

      As for your claim, I'm going to shrug and say both that they're fast enough, and that we're talking about a fairly small piece of chrome. I don't know that anyone suggested building the entire UI that way -- although when it's happened, you end up with something that runs on netbooks.

      --
      Don't thank God, thank a doctor!
    9. Re:Something compiled? by A12m0v · · Score: 1

      If efficiency is what's you are concerned about then why not move X, Metacity and Webkit to kernel space? that would sure save us the overhead of switching from user mode to kernel mode! /sarcasm

      --
      GENERATION 25: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
    10. Re:Something compiled? by segedunum · · Score: 1

      KDE4 has already become far too bloated and unresponsive for my liking and it looks like GNOME will be next, maybe XFCE after that but other minimalist window managers will be created to fill the niche left behind by those who fell victim to the awful disease that is feature creep.

      http://www.joelonsoftware.com/articles/fog0000000020.html

      If you want a desktop that does nothing then that's fine by the rest of us.

    11. Re:Something compiled? by TheDarkMaster · · Score: 1

      They have a point. I are a web developer, and is almost impossible to create a desktop-like interface on html without causing a major slowdown. As you sayed you have a $2000+ machine, but you try to use a "web-based interface" with antivirus running, messenger running, Servers running and maybe a game or a CPU-intensive application like 3D rendering? Why I will use 1GB or more and a dual or quad-core CPU to simply run my desktop? Is nonsense.

      --
      Religion: The greatest weapon of mass destruction of all time
    12. Re:Something compiled? by nschubach · · Score: 1

      Then create a web like experience on the desktop... What are you going to lose? You might have to create a new tag for application space like current window managers have (or use Object tags?), but otherwise the framework is there. Links to your favorite applications in a menu along the top, side, or bottom of the "page" with the ability to do a search of your hard drive as if it were a site on the web.

      As far as applications running in the background, Google has proven that you can run IM in the browser alongside weather widgets and other things with tabs and all. (Customize your Google Homepage) A web server for a single client is really not that machine intensive, if you even have to run it since the "browser WM" would be opening local files and have no need to translate URLs. And lets say you want to see what your server application is doing... <img src="~/.desktop/display/myServer/status.png" onLoad="myTheme.bindUpdate(this, 'app.myServer.statusUpdate')" /> (if onLoad was added as an event of course...)

      --
      Every time I start to have faith in humanity, I ruin it by driving to work between 7 and 8 am.
    13. Re:Something compiled? by Anonymous Coward · · Score: 0

      If KDE runs slow for you, then you need to upgrade your computer. For instance, my 4 year old laptop is able to run the latest KDE without any hiccups.

    14. Re:Something compiled? by n30na · · Score: 1

      ...we're talking on linux, av is (nearly) irrelevant. And you're just drawing window borders. Nothing complex, no javascript, nothing like that. just rendering a little box. I really doubt it'll be much more overhead than any other option.

    15. Re:Something compiled? by TheDarkMaster · · Score: 1

      I know you can make a html-based desktop... But the problem is - again - the resources usage.

      Or, into another terms: Why you will use 300MB for your super-duper html/css/ajax/etc based desktop if a simmilar using C or C++ uses only 50MB to do the same job and faster? Got it?

      I will not use so much memory to the job only "because RAM is now cheap!".

      --
      Religion: The greatest weapon of mass destruction of all time
    16. Re:Something compiled? by TheDarkMaster · · Score: 1

      Is like Java. If you like to use CSS to draw the GUI, you need the complete CSS rendering system (load the interpreter/VM), and plus the HTML rendering engine(load framework). Is pointless to do this if you can make the GUI using native (and much faster than html can do) language.

      --
      Religion: The greatest weapon of mass destruction of all time
    17. Re:Something compiled? by n30na · · Score: 1

      I guess I disagree somewhat there. But then I think that the usability boost is worth it. It's also important to remember that this would be an alternate compliment to traditional themes, so you don't need to use it if you don't want to.

    18. Re:Something compiled? by Ant+P. · · Score: 1

      Are you... FUKING MAD? A whole desktop using a HTML engine to render the entire desktop? You know the nigthmare to create and respond to events using html and javascript? And the ridiculous performance against a normal window manager like KDE or the actual GNOME?

      Sorry to burst your bubble, but KDE 3 has a fully functional Active Desktop clone. KDE4 has HTML+Javascript desktop applets. Its entire help system uses HTML, Qt4 uses CSS internally, the list goes on and on and on. Are you "fuking" retarded?

  5. No problem by Reed+Solomon · · Score: 5, Funny

    As long as it keeps my desktop active, like some sort of active desktop, then it's all good.

  6. No more CSS by intx13 · · Score: 4, Interesting

    CSS barely functions on the platform for which it was intended, and now you want to bring it to a platform that has well-established, functional, themeable rendering engines already in existence?

    CSS was intended to let designers seperate from function from form - how is that lacking in current themeing environments? The linked blog contains a laundry list of features that are in CSS that are not applicable to desktop themes and features that are not in CSS that are necessary for desktop themes. What I don't see is a list of features that CSS brings to desktop themes that are impractical in existing systems.

    Let's see: a system that barely works on its intended platform that contains functionality not applicable to the new, suggested platform and is missing functionality necessary on the new, suggested platform. Gee, sounds like the right technology for the job!

    1. Re:No more CSS by wisty · · Score: 1

      It's a pity that your post is so far down the list.

    2. Re:No more CSS by Jared555 · · Score: 1

      Wow, the government is getting more and more involved in open source every day

    3. Re:No more CSS by Chuck+Chunder · · Score: 1

      Person A: What shall we use to fill this round hole?
      Person B: I've seen this really cool square peg someone made!

      --
      Boffoonery - downloadable Comedy Benefit for Bletchley Park
  7. No problem.. by msimm · · Score: 2, Interesting

    But let the rendering engine strip or blobify the skin/theme files. Who cares what the underlying descriptive language is, let it be something people are already familiar with. Imagine if every time a new software project was started we first created a new language, that's what we generally ask of our theme/skin designers. I guess someone's thinking outside that box! :P

    --
    Quack, quack.
  8. Developers use APIs usually... by thatkid_2002 · · Score: 1

    With all this pissing and moaning about Webkit vulnerabilities and whatever, you are forgetting that there almost certainly will be an API which goes between webkit and the the WM (and possibly more APIs on top of that!) which not only makes interfacing with the WM and the rendering engine easier but it also should restrict the amount of stupid things that you can do!... or rather the amount of things that malicious code can do.

    Ah... I forgot. Everybody on Slashdot codes in binary (and the noobs use assembly) and do not believe in abstraction layers.

    1. Re:Developers use APIs usually... by True+Vox · · Score: 1

      Pfft, BINARY? Back in my day we didn't have a full supply of 1's for every damn kid! We had to ration 'em out. Through most of school, I was coding with mostly 0's, 1's were few and far between (I remember getting a pack of 10 for christmas one year)! Now, get off my lawn! :)

      --
      "Gratuitous complexity is akin to chaos" - True Vox
  9. Power and future-proofing? by Anonymous Coward · · Score: 1, Insightful

    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.

    1. Re:Power and future-proofing? by Toonol · · Score: 1

      I think the eventual goal is to beat windows by having Linux run INSIDE of Firefox. Turning the desktop into a browser window is the first step.

    2. Re:Power and future-proofing? by Anonymous Coward · · Score: 1, Insightful

      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.

    3. Re:Power and future-proofing? by A12m0v · · Score: 0, Flamebait

      moving from GTK+ to WebKit could be what it takes to save GNOME

      --
      GENERATION 25: The first time you see this, copy it into your sig on any forum and add 1 to the generation.
    4. Re:Power and future-proofing? by Flossymike · · Score: 2, Insightful

      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

  10. Maybe I'm confused... by hyperion2010 · · Score: 0, Offtopic

    Who the hell needs CSS+webkit when you have vim????

    (full disclosure: is fluxbox user)

  11. Re:Sooo... by killthepoor187 · · Score: 1

    that would be in the comments above you...

  12. WTF? No more CSS? by mcrbids · · Score: 4, Informative

    I'm not sure I understand how you start by saying that CSS barely works for the target environment - BILLIONS of web pages are served every day in a (relatively) cross-platform fashion.

    Many of these are rather good looking, too.

    So I'd have to argue that CSS doesn't work. The areas where CSS is weak consist primarily of CSS specs that have NOT been implemented (*ahem* IE) or implemented in a bone-headed way (*ahem* IE) not in areas of weakness within the CSS spec itself.

    Perhaps the most amazing thing about CSS is how trouble-free its implementation has been, and just how smooth the transition actually has been.

    Old stuff still basically works, new stuff just basically works better.

    But while we're at it, we should also pay homage to KDE, Konqueror, and its many progeny. KDE begat Konqueror. Konqueror begat Webkit, which has begat (among too many other web-like to mention) Chrome/Chromium and Safari. And just about everybody who has worked on or with Webkit has raved about its clean design and crisp implementation.

    So, we must give kudos to the excellent KDE team who has produced a product that is just now starting to give Mozilla / IE a run for their money, without all the funding by AOL for all those years.

    Good job, KDE team!

    --
    I have no problem with your religion until you decide it's reason to deprive others of the truth.
    1. Re:WTF? No more CSS? by tyrione · · Score: 1

      Konqueror did not begat WebKit. KHTML/KJS begat WebKit.

    2. Re:WTF? No more CSS? by moosesocks · · Score: 3, Insightful

      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.

      --
      -- If you try to fail and succeed, which have you done? - Uli's moose
    3. Re:WTF? No more CSS? by Anonymous Coward · · Score: 0

      nobody writes PDF/PostScript, but CSS can be explained pretty quickly to people who don't know how to think algorithmically.

    4. Re:WTF? No more CSS? by am+2k · · Score: 1

      Don't forget the inability to do simple math (like center+10px, bottom-50px). How are you supposed to separate style from content when you need blank divs to simulate space calculations?

    5. Re:WTF? No more CSS? by julesh · · Score: 1

      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.

      You mean, like margin-left: auto; margin-right: auto;? Or text-align: center?

      I agree that CSS has some startling issues, but this isn't one of them.

    6. Re:WTF? No more CSS? by Anonymous Coward · · Score: 0

      Also, it is worth to mention that Qt has been using a CSS variant of its own for specialized style rendering.
      If you just want the default theme you don't need to mess with that, but if you want custom UI styles you're going to have to write some CSS.
      They did add non standard features, some of which are actually great.

    7. Re:WTF? No more CSS? by donatzsky · · Score: 1

      Sure, it can be done, but it's not very logical.

    8. Re:WTF? No more CSS? by Anonymous Coward · · Score: 1, Insightful

      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 :) )

    9. Re:WTF? No more CSS? by Anonymous Coward · · Score: 0

      > (like center+10px, bottom-50px)

      What is "center +x "?

      This doesn't make sense and isn't therefore available on other layout managers (Swing for example) as well.

      Using CSS for layout management seems strange at first, but it may be an option.

    10. Re:WTF? No more CSS? by Anonymous Coward · · Score: 0

      Try vertical-align: center on anything other than a table cell (or a DOM element imitating a table cell) and you'll raise an eyebrow.

    11. Re:WTF? No more CSS? by Anonymous Coward · · Score: 0

      Dude, text-align: center doesn't work on block-level elements.

      And setting both the left and right margin to auto interacts badly with elements without an explicit width.

    12. Re:WTF? No more CSS? by Anonymous Coward · · Score: 0

      Just look at what you have to do to make rounded corners.

      * { border-radius: 2em; -moz-border-radius: 2em; -webkit-border-radius: 2em }

      I'm not overly bothered if they use CSS or not but integrating webkit into their Window Manager would just be stupid.

    13. Re:WTF? No more CSS? by moosesocks · · Score: 1

      Actually, I'll mildly disagree with you on this one: It *would* be nice for CSS to be able to do simple math, although JavaScript is perfectly adequate for the task.

      Of course, JavaScript has more than a few of its own irritating deficiencies, although JQuery makes the language considerably more tolerable, and makes CSS manipulation a breeze. JQuery should have been part of JavaScript from the start!

      --
      -- If you try to fail and succeed, which have you done? - Uli's moose
    14. Re:WTF? No more CSS? by Blakey+Rat · · Score: 1

      I'm not sure I understand how you start by saying that CSS barely works for the target environment - BILLIONS of web pages are served every day in a (relatively) cross-platform fashion.

      That doesn't mean it doesn't "barely work." Hell, CSS doesn't have variables, it can't do math, it took until version 3 to get extremely basic, obvious features like columns... it's god-awful. "Barely works" is appropriate in my opinion.

      So I'd have to argue that CSS doesn't work. The areas where CSS is weak consist primarily of CSS specs that have NOT been implemented (*ahem* IE) or implemented in a bone-headed way (*ahem* IE) not in areas of weakness within the CSS spec itself.

      So the fact that I can't say "headercolor = '#ffaacc'; #header {backgroundColor = headercolor;}" is *not* an area of weakness within the CSS spec? Or the fact that I can't add the runtime metrics together with the designtime metrics? (i.e. add pixels, known at design-time, to em, which can't be known until runtime.)

      Here's a challenge: center content with arbitrary dimensions vertically using CSS. You can do this in HTML using a table in like 4 lines of code; In CSS it's virtually impossible.

      If you don't think CSS has major flaws, then you don't have much imagination.

      Perhaps the most amazing thing about CSS is how trouble-free its implementation has been, and just how smooth the transition actually has been.

      Old stuff still basically works, new stuff just basically works better.

      Same could be said for HTML. But HTML doesn't suck as much as CSS. (DOM does, though... don't even get me started on DOM!)

    15. Re:WTF? No more CSS? by Blakey+Rat · · Score: 1

      You need to do the math in CSS because CSS knows how big a "em" is at runtime, and Javascript doesn't.

      Take an example where you want a box to be "5em + 10px" tall. How could you do that in Javascript? (I guess you could set it to just 5em and then use JS to determine it's existing pixel size, then add 10px, then re-set the style, but man-- talk about a hack! And it wouldn't work when the user resized the font, unless they also reloaded the page.)

    16. Re:WTF? No more CSS? by Anonymous Coward · · Score: 0

      Yes... yes it is.

      Crude implementation hacks with margins are not the same properly centering, and text alignment doesn't apply to block elements causing it to be fickle. These things shouldn't require voodoo incantations.

      This is exactly the issue.

    17. Re:WTF? No more CSS? by Anonymous Coward · · Score: 0

      It's not really baffling. CSS was designed for web pages, not for printable pages. I'm of the opinion that regardless of that fact, they should have also given some print page features, but it does exactly what it was intended to do, and does it well, assuming the browser supports the spec (as is the case with Webkit).
      Centering an element works fine btw, (margin-left:auto; margin-right:auto; usually), it's all about context.
      Let's also not forget that the use of CSS in this case has nothing to do with print pages.
      Proprietary attributes are actually provided for in the CSS 2.1 standard, providing they have a prefix starting with a dash, which they all do. Again, this doesn't matter much in this context.

    18. Re:WTF? No more CSS? by marnues · · Score: 1

      Those are hacks, not actual centering. They only work on certain elements and if you have to use any other hackery, they rarely work as desired. I've ended up using massive amounts of javascript just to keep a dynamic menu centered at the top of a page. I think there's a lot of websites out there that don't center things like menus because it's too much work. And we want this to be the language of desktop formatting?

    19. Re:WTF? No more CSS? by Ant+P. · · Score: 1

      text-align: center doesn't work on block-level elements.

      .outer { text-align: center } .outer > .inner { display: inline-block }

      There. Now it does.

    20. Re:WTF? No more CSS? by garnetlion · · Score: 1

      I'm a little out of practice with CSS so I may be missing something obvious, but is there some reason you can't do something like align: center, padding-left:10px to create the same effect as center+10px?

  13. "It's a rendering engine" by FranTaylor · · Score: 1

    There are a whole lot of rendering engines out there, why choose one with an HTML API?

    As a hypothetical alternative, OpenGL is also a perfectly good rendering engine, why not use it? It is just as ubiquitous, it supports every conceivable rendering operation one would ever want to perform. Nothing can touch it in the efficiency department. There are OpenGL bindings for many languages. There's even the new javascript OpenGL binding.

    If I was going to choose a rendering engine, I would look first at its API. I certainly would not choose to use HTML as a rendering language.

    1. Re:"It's a rendering engine" by Homburg · · Score: 1

      There are a whole lot of rendering engines out there, why choose one with an HTML API?

      Yes, the API seems to me to be give the lie to the idea that WebKit is just a rendering engine, not a browser. If you look at the API, it's very clearly designed to power a browser-style application. If it exposed an API that you could pass a DOM tree and a list of CSS styles, and get back a pixmap rendering, that might not be a bad backend for a theming system. But WebKit doesn't expose that low-level API, rather, its API is based around loading whole HTML pages.

    2. Re:"It's a rendering engine" by atamido · · Score: 1

      Would it really be so difficult to add the ability to pass it a DOM tree?

  14. Unprecedented? Please. by Anonymous Coward · · Score: 1

    would allow Mutter to have unprecedented power,

    Unprecedented? It's not as if Windows didn't integrate the browser/rendering engine into Active Desktop, back in what, 1995? And surely Symphony OS never implemented a gecko-based desktop manager.

    1. Re:Unprecedented? Please. by haruchai · · Score: 2, Insightful

      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

      --
      Pain is merely failure leaving the body
    2. Re:Unprecedented? Please. by Anonymous Coward · · Score: 0

      close enough, and weather it was unstable or secure or not isn't the point, the point is when something has been done before, doing it again is hardly unprecedented.

    3. Re:Unprecedented? Please. by nschubach · · Score: 1

      And since Microsoft already tried it and failed, all other attempts should be squashed... because Microsoft is the epitome of efficiency and speed and therefore cannot be beat!

      --
      Every time I start to have faith in humanity, I ruin it by driving to work between 7 and 8 am.
  15. PDF/Postscript derivative?? by Anonymous Coward · · Score: 0

    Its pretty clear you do not know what you are talking about.

    They want to use WebKit as a LAYOUT engine. That is, they want to enable styling and positioning of windows (and other objects) using the CSS and DIV+SPAN box layout model.

    PDF/PostScript has none of that. The only thing they have is simple vector and font operations (read: a scanline renderer) - so you are suggesting they should use the Skia renderer in Chrome rather than CSS. But that's not a layout engine!

  16. WTF? Desktop Linux jumping the shark? by Anonymous Coward · · Score: 0

    Explain to me why a window manager needs a web rendering engine?

    Kudos to the genius who says this will make metacity "future proof".... How many rewrites has it gone through? Were the last ones future proof? What about when the next big thing comes along and they rewrite Metacity in Javascript?

    Seriously, it was already my impression that Linux on the desktop was going backward, not forward... This just makes me wonder what the hell is going through their minds. I miss when these projects did what was necessary and what they claimed, not tried to follow wild geese. I guess that's why I'm still using WindowMaker...

    1. Re:WTF? Desktop Linux jumping the shark? by Anonymous Coward · · Score: 0

      Explain to me why a window manager needs a web rendering engine?

      For the same reason people "need" a penis enlargement.

      So that they can fuck you deeper.

  17. WebKit is C++ by Anonymous Coward · · Score: 0

    Metacity/Gnome are written in C as is the netsurf browser which also has decent CSS 2.1 support. Is it a good idea integrating a layout engine in C++ that's largely under the control of Apple, Google and Nokia?

    No, it isn't; not unless you've completely lost the plot. They've got Vala which is amazingly cool and yet they're seriously considering platform dependencies such as Mono and WebKit (libstdc++). Yuk!

  18. Spin spin spin by pizzach · · Score: 1

    Hey, SanityInAnarchy. I'm not necessarily disagreeing with you, but I do want to point out a few things.

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

    It can also be called homogeneousness with can cause security problems in general. On top of that, with all the features Webkit brings it also brings complexity in code... which inherently leads to more security flaws. As an example, many forums only allow bbcode instead of full-blown html.

    In the end I think the features are probably worth it, though. While metacity themeing isn't hard per-say, it would still be much easier and more powerful with css. And as an ex-Firefox theme developer, I think the benefits way outweigh the drawbacks.

    --
    Once you start despising the jerks, you become one.
  19. KDE already depends on WebKit. by brunes69 · · Score: 1

    WebKit ships with QT. KDE depends on QT.

  20. True story - you aren't far off the truth by Kupfernigk · · Score: 1
    You jest but perhaps you do not know how close you are. The original Manchester computer (Manchester UK that is) used teletypes for input and output, and they could not afford to change the balls. Baudot code is, to say the least, nonobvious. So 5-bit binary zero printed out as / and because this was the default state of the memory, early printouts consisted mainly of pages full of slashes.

    It's said that when they gave their first presentation in London, most people present knew nothing about computers and were quite unable to understand why they were looking at pages of slashes. One person asked if they were "the Manchester rain beating on the windows".

    Years later, I amused myself doing hex dumps using a teletype. It's quite easy to produce a rainy city-scape in this way. But, indeed, with hand coded hex, zeroes predominated and ones were much more scarce.

    --
    From scarped cliff or quarried stone she cries "A thousand types are gone, I care for nothing, no not one."
    1. Re:True story - you aren't far off the truth by True+Vox · · Score: 1

      Thank you for inadvertintly making me right. That so rarely happens to me. :) Also, yay for learning something new!

      --
      "Gratuitous complexity is akin to chaos" - True Vox
  21. It's time for another Good Idea/Bad Idea... by Millennium · · Score: 1

    Adapting CSS to work for UI skinning is a good idea. It leverages very common knowledge and works based on a powerful model.

    Implementing this by shoehorning an entire Web rendering engine into a window manager is not a good idea. By definition it means including a huge amount of unrelated and unneeded functionality, any or all of which could contain bugs. Witness the lessons of Display PostScript in NeXTStep, which introduced security problems due in no small part to including far more than was needed for the job (a lesson that Quartz and its descendants have avoided by sticking to the more limited, but also more task-appropriate, PDF model).

    Swiping the CSS parser from WebKit is a good idea: it's a mature technology with solid performance. Cramming all of WebKit into the window manager is a bad idea: most of it would, for this specific purpose, be meaningless bloat that stands to do a lot more harm than good.

  22. Re:First by Anonymous Coward · · Score: 0

    third