Browse/WebKit: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
m (AAA18/WebKit moved to Browse/WebKit over redirect: revert)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
= Introduction =
= Introduction =
Webkit is a lightweight browser engine, comparable to Gecko. This page documents the procedure and results of replacing Gecko with WebKit in Browse. If you just want to try it, grab the latest bundle from
Webkit is a lightweight browser engine, comparable to Gecko. This page documents the procedure and results of replacing Gecko with WebKit in Browse. Also see the [[Browse#Implementation_Discussion|Browse implementation discussion]] for details of another trial of Browse with WebKit. If you just want to try it, grab the latest bundle from
http://dev.laptop.org/~bobbyp
http://dev.laptop.org/~bobbyp
It should have the libraries you need in the bundle to run it on an XO with one of the recent F9-based joyrides.
It should have the libraries you need in the bundle to run it on an XO with one of the recent F9-based joyrides.
Line 12: Line 12:
Next, is PyWebKitGtk
Next, is PyWebKitGtk
http://code.google.com/p/pywebkitgtk/
http://code.google.com/p/pywebkitgtk/
There is a Subversion repository on the Google Code branch, but they [http://www.unpluggable.com/?p=173 mention] that the main development goes on in git
There is a Subversion repository on the Google Code branch, but they [http://www.unpluggable.com/?p=173 mention] that the main development goes on in git. Plus, the example included is actually based off of Browse!
git clone git://repo.or.cz/pywebkitgtk.git
git clone git://repo.or.cz/pywebkitgtk.git


Line 35: Line 35:
* Load status is displayed
* Load status is displayed
* Reload and stop buttons work
* Reload and stop buttons work
* Zoom buttons work
* Zoom buttons work - fullpage zoom
* Gnash works!


'''What... Doesn't'''
'''What... Doesn't'''
* Saving and resuming to Journal (probably not too hard)
* Saving and resuming to Journal (probably not too hard)
* Back, Forward and History (probably not too hard)
* Back, Forward and History (probably not too hard)
* Gnash or plugins (no idea)
* probably the search bar
* probably the search bar
* probably copy and paste (easy)
* probably copy and paste (easy)

Latest revision as of 20:17, 17 September 2009

Introduction

Webkit is a lightweight browser engine, comparable to Gecko. This page documents the procedure and results of replacing Gecko with WebKit in Browse. Also see the Browse implementation discussion for details of another trial of Browse with WebKit. If you just want to try it, grab the latest bundle from

http://dev.laptop.org/~bobbyp

It should have the libraries you need in the bundle to run it on an XO with one of the recent F9-based joyrides.

Dependencies

WebKit and PyWebkitGtk are the dependencies for this project, and RPMs for F9 don't exist yet. For WebKit:

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

is a good reference. The Git repository is just a git-svn mirror of the Subversion one, so choose your fancy.


Next, is PyWebKitGtk

http://code.google.com/p/pywebkitgtk/

There is a Subversion repository on the Google Code branch, but they mention that the main development goes on in git. Plus, the example included is actually based off of Browse!

git clone git://repo.or.cz/pywebkitgtk.git


WebKit might take a while, but they should both be relatively stable.


Browse branch

I started with the master branch of Browse from

http://dev.laptop.org/git?p=web-activity;a=summary

and my branch (webkit) is located here

http://dev.laptop.org/git?p=users/bobbyp/browse;a=shortlog;h=webkit
git://dev.laptop.org/users/bobbyp/browse

I tried to keep the code and methods as close as possible to the original Browse.


Issues

What Works

  • Page titles are updated correctly
  • Browse navigates to addresses you type in the titlebar
  • Load status is displayed
  • Reload and stop buttons work
  • Zoom buttons work - fullpage zoom
  • Gnash works!

What... Doesn't

  • Saving and resuming to Journal (probably not too hard)
  • Back, Forward and History (probably not too hard)
  • probably the search bar
  • probably copy and paste (easy)