<br>I'm not a developer so some of what I write is here say but from what I know of from following various upstream.<br><br><div class="gmail_quote">On Tue, Jun 14, 2011 at 8:58 PM, Daniel Drake <span dir="ltr"><<a href="mailto:dsd@laptop.org">dsd@laptop.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">There have been various discussions in the past suggesting a move from<br>
mozilla to webkit for the Browse activity and related components, but<br>
I've never really been convinced: there is always a cost to switching,<br>
and convincing-looking numbers from webkit supporters tended to be<br>
countered with convincing-looking numbers from mozilla supporters.<br>
<br>
But now I believe there is a new reason for the switch to WebKit: necessity.<br>
<br>
=== Mozilla ===<br>
<br>
First, why I've become convinced that Mozilla is no longer a viable<br>
option in the face of alternatives:<br></blockquote><div><br><snip><br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The combination of the fact that mozilla embedding has been neglected<br>
over the years, is currently broken and is now actively discouraged,<br>
and the fact that general use and design of the library sits way<br>
outside of our open-source norms means that I've lost faith in this<br>
being a good option for us (and I've got so frustrated by this episode<br>
that I've changed web browser on my desktop system as well).<br></blockquote><div><br>Would a skinned version of Firefox Mobile work for what is needed?<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

=== WebKit ===<br>
<br>
What I'd like to do now is spec out a project for someone to take on,<br>
moving Browse to WebKit in a way that can be clearly justified for the<br>
community.<br>
<br>
But, WebKit is totally new to me so I have many open questions. Can<br>
anyone help me answer them? I'll be collecting the results into a wiki<br>
page (to form the above spec).<br>
<br>
1. I've only made half the argument above. Mozilla is bad, but why is<br>
WebKit the solution? The key questions here are: is it embeddable?<br>
Does it work well when embedded? Do the developers support it being<br>
embedded?<br></blockquote><div><br>Yes. Its used by yelp (gnome help) and various other applications and libraries. Eclipse embeds it in SWT and a number of mail clients use it for html mail rendering (I think Claws uses it).<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Does anyone have experience here? The name "WebKit" makes it sound<br>
nice and modular, and the fact that WebKit itself isn't a browser<br>
would seem to support these arguments, but it would be nice being able<br>
to argue this on a more solid basis.<br></blockquote><div><br>In theory it should be nice an modular, the JS is a separate component for example. Details of all the components are here:<br><br><a href="http://trac.webkit.org/wiki/HackingGtk">http://trac.webkit.org/wiki/HackingGtk</a><br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
2. What is the state of Surf?<br>
This is the existing webkit-based browser for Sugar. Does it work<br>
well? Is it reliable? What are the gaping holes?<br></blockquote><div><br>It works, we're shipping it in SoaSv5.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

3. What is the safe of pywebkitgtk in F14, F15, F16?<br>
This is the backend library used by Surf, right? Is this still the<br>
right answer for creating a webkit-based app using Python + GTK?<br>
Does it work well on Fedora 14, or do we need a newer distro?<br></blockquote><div><br>It works with Surf on F-14 (yum install sugar-surf for a quick test) but I have no idea of the state of it. Looking at the rpm changelog in Fedora 1.1.6 is the current release in Fedora, current as of Aug 2009, although 1.1.8 is in F-15 as of March.<br>
<br>Looking at the 1.4.x release that ships with F-15 it looks like there's gobject introspection support has been added so I suggest that for a new project that might be the best way to go for python support. Tomeu might be the best person to reply to that point though. <br>
<br>F-14 ships 1.3.10. Looking at the changelogs I suspect we're stuck on that version due to requirements on libsoup. <br><br>There's issues with the version in F-14 in that it doesn't support TLS and a number of other things (not sure exactly what else though).<br>
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I remember at one point there being some pretty key problems with<br>
pywebkitgtk causing Surf development to halt. What were these issues<br>
and have they been overcome?<br></blockquote><div><br>I suspect the solution is to use introspection instead. The support seems complete since the release of 1.4.x stable release in F-15.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

IIRC those pywebkitgtk-related problems were going to be solved with a<br>
move to GObject introspection, which wasn't mature back in that<br>
timeframe. But it is mature and usable now. But does this require us<br>
to move to GTK+-3?<br></blockquote><div><br>I don't believe it does. In F-14 and F-15 there's both webkitgtk and  webkitgt3 releases.<br><br>  </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Does WebKit/webkitgtk work for both GTK+-2 and GTK+-3? Any pros/cons<br>
of one over the other?<br></blockquote><div><br> There's 2 different builds of them in both F-14 and F-15. The gtk3 linked version in both releases trails behind the gtk2 release, I don't believe that's due to lack of support for gtk3 but rather someone hasn't kept the releases in sync.<br>
<br>Not a complete answer but should give you a start.<br><br>Peter<br></div></div>