Bug 19941

Summary: [Gtk] webkit_web_view_set_transparent doesn't work
Product: WebKit Reporter: Jan Alonzo <jmalonzo>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: chris.chapuis, fourmanoit, mrobinson, sempuki1, simon.fraser
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
Alp Toker's transparency demo presented to FOSDEM 2008
none
Web page with semi-transparent body
none
Screenshot of test.html using Alp Toker's Demo none

Description Jan Alonzo 2008-07-08 03:48:58 PDT
"Whise" mailed in pywebkitgtk mailing list that set_transparent doesn't seem to work. I tried using webkit_web_view_set_transparent to true in GtkLauncher but it doesn't seem to work as well. "doesn't work" meaning we're not getting any transparency at all.
Comment 1 helder fraga 2008-08-03 07:49:50 PDT
im planing to port dashboard to linux , and without this working feature it is dificult
Comment 2 Sylvain Fourmanoit 2008-08-10 15:17:06 PDT
webkit_web_view_set_transparent() did work a few months ago; I still have an old GTK webkit build (r30763, svn head somewhere around March 2008) I can build against on which the mc.c hack Alp Toker presented to FOSDEM 2008 has working transparency:

http://www.atoker.com/blog/2008/02/26/developing-hybrid-web-gtk-applications/

At least for me, transparency does not work anymore with mc.c built against current trunk (r35658) -- it has not since around May; unfortunately, I don't have a narrower interval.
Comment 3 Christophe CHAPUIS 2009-12-01 10:39:25 PST
I confirm this bug is still widely open. I'm trying to use it today in an applet of Cairo-Dock, and it has never been working for me.
Here is the part of the source code that is using this functionality, if it may be of some help:
http://bazaar.launchpad.net/~cairo-dock-team/cairo-dock-plug-ins/plug-ins/annotate/head%3A/weblets/src/applet-widget.c
Comment 4 Simon Fraser (smfr) 2010-09-10 09:53:28 PDT
I wonder if http://trac.webkit.org/changeset/67137 helped here?
Comment 5 Sylvain Fourmanoit 2010-09-11 12:25:57 PDT
Created attachment 67312 [details]
Alp Toker's transparency demo presented to FOSDEM 2008
Comment 6 Sylvain Fourmanoit 2010-09-11 12:27:39 PDT
Created attachment 67313 [details]
Web page with semi-transparent body
Comment 7 Sylvain Fourmanoit 2010-09-11 12:29:25 PDT
Created attachment 67314 [details]
Screenshot of test.html using Alp Toker's Demo
Comment 8 Sylvain Fourmanoit 2010-09-11 13:03:45 PDT
(In reply to comment #4)
> I wonder if http://trac.webkit.org/changeset/67137 helped here?

Thanks for the heads-up.

Enclosed is a screenshot of Alp Toker's mc.c demo (no longer available from his blog) compiled against Webkit/GTK+ revision 67308: as you can see, transparency is back: that's great news!

Out of curiosity, I ran the same demo on a Webkit build from April the 15th 2010 (I don't know the exact revision -- it's called version 1.1.90 in pkgconfig); to my surprise, it also worked: I therefore ignore when and how the webkit_web_view_set_transparent() functionality has been restored...

Regardless, it seems to me this bug can be closed. I should probably add that my latest build (svn r67308) is unfortunately very unstable (it segfaults on about any page, from google.com to webkit.org), but I really haven't investigated why, and have no reason to believe this is specifically related to your r67137 commit.