WebKit

From Wikipedia, the free encyclopedia

WebKit
Image:Webkit Logo.png
Developed by Apple Inc., Trolltech, Nokia, Adobe, Google, others.
OS Cross-platform
Genre Application framework
License LGPLv2/BSD-style
Website http://webkit.org

WebKit is an open source application framework that provides a foundation upon which to build a web browser. WebKit was originally derived from the Konqueror browser’s KHTML software library by Apple, Inc. for use as the engine of Mac OS X’s Safari web browser, and has now been further developed by Apple, Nokia, Google and others. The framework is now included in Omniweb, Shiira, iCab, Adobe AIR, mobile phones (including the iPhone), Nokia’s Series 60 browser, and Google’s Android platform. Although WebKit is included with Trolltech’s Qt 4.4, the underlying framework for KDE,[1] the KDE project will use its original version of KHTML for the near future.[2]

It passes the Acid2 test, and as of March 2008, latest nightly builds of WebKit score 100/100[3] in the Acid3 test.

Contents

[edit] History

WebKit began when Apple Inc. created a software fork of the KDE project’s HTML layout engine KHTML and KDE's JavaScript engine (KJS). Apple developers explained in an email to KDE developers[4] that these engines allowed easier development than other technologies by nature of being small (less than 140,000 lines of code), cleanly designed and standards compliant. KHTML and KJS were ported to Mac OS X with the help of an adapter library and renamed WebCore and JavaScriptCore.[4] WebKit was first included with Mac OS X v10.3, and is available as a software update for v10.2.7 and later.

WebKit was announced at the Macworld Expo in January 2003 by Apple CEO Steve Jobs with the release of the Safari web browser. Until then the changes to KHTML and KJS were not shared, but after the announcement they were submitted to the KDE project.[5] In time, Apple’s cooperation with KDE was criticized, with changes being mostly submitted in bulk back to the KDE project. While this helped Konqueror pass the Acid2 test, the source code had already diverged so much that improvements were difficult to share back and forth.[6]

On June 7, 2005, Safari developer Dave Hyatt announced on his weblog that Apple was open sourcing WebKit (previously, only WebCore and JavaScriptCore were open source) and opening up access to WebKit’s Concurrent Versions System (CVS) tree and Bugzilla tool.[7] This was announced at Apple’s Worldwide Developers Conference 2005 by Bertrand Serlet. The next week, Nokia announced that it was developing a browser based on WebKit, which was later named Web Browser for S60.

In mid-December 2005 support for Scalable Vector Graphics was merged into the standard build[8] and in early January 2006 the source code was migrated from CVS to Subversion. In June 2007, a Microsoft Windows port was added to WebKit. The next month the Ars Technica website published an article announcing that the KDE team would move from KHTML to WebKit.[9]

[edit] Components

[edit] WebCore

WebCore is a layout, rendering, and document object model (DOM) library for HTML and SVG, developed by the WebKit project, originally developed by Apple. It is licensed under the LGPL. The WebKit framework wraps WebCore and JavaScriptCore, providing an Objective-C application programming interface to the C++-based WebCore rendering engine and JavaScriptCore script engine, allowing it to easily be referenced by applications based on the Cocoa API; later versions also include a cross-platform C++ platform abstraction, and various ports provide additional APIs.

[edit] JavaScriptCore

JavaScriptCore is a framework that provides a JavaScript engine for WebKit implementations, and provides this type of scripting in other contexts within Mac OS X.[10][11] JavaScriptCore is originally derived from KDE’s JavaScript engine (KJS) library (which is part of the KDE project) and the PCRE regular expression library. Since forking from KJS and PCRE, JavaScriptCore has been improved with many new features and greatly improved performance.[12]

[edit] Drosera

Drosera is a JavaScript debugger that was included with the nightly builds of WebKit.[13][14] It was named after Drosera, a genus of carnivorous plants (i.e. bug-eaters). Drosera has been replaced by the inclusion of debugging functionality in the Web Inspector.[15]

[edit] Ports

WebKit, being a portable and popular open source project, has attracted ports to several operating systems and toolkits. It is used in the Nokia Series 60 browser,[16] while the community[17] is porting the browser engine to the GTK+ toolkit and a port to the Qt toolkit is being developed by community and several companies including Trolltech. Trolltech includes the Qt port in the Qt 4.4 release. The Qt port of WebKit will also be available to be used in Konqueror in KDE 4.1.[9]

There are also ongoing ports for the open source operating systems Syllable[18], Haiku[19] and AROS.[20]

Apple has ported WebKit to the iPhone, where it is used to render content within the phone’s web browser and email software.[21] Adobe Systems uses WebKit in the Adobe Integrated Runtime, a cross-platform runtime environment for building rich internet applications on the desktop. The upcoming Android mobile phone platform will use WebKit as the basis of its web browser.[22]

There is also a project synchronized with WebKit, sponsored by Pleyo[23], Origyn Web Browser, which provides a meta-port to an abstract platform and makes port quicker to embedded or lightweight systems.[24] This port is used for embedded devices such as set-top boxes, PMP and also the AmigaOS official port.[25]

The development team of GNOME's web browser, Epiphany, announced in April 2008[26] that it will use WebKit exclusively, and stop supporting the Mozilla Foundation's Gecko layout engine. Epiphany supported both Gecko and WebKit for some time, but the team decided that Gecko's release cycle and future development plans would make it cumbersome to continue supporting it.

There is a Qt port named Arora[27]. Arora is a very basic browser whose feature list includes things like "History" and "Bookmarks". It does not have support for netscape plugins, so no flash support until Qt 4.5. It works on Linux, OS X, Windows, and embedded Linux using Qt Embedded.

[edit] See also

[edit] References

  1. ^ Trolltech Qt 4.4.0 Technical Preview released
  2. ^ Harri Porten (October 23, 2007). The KHTML Future FAQ. FrogBlog. Retrieved on 2008-01-24.
  3. ^ Maciej Stachowiak (March 26, 2008). WebKit achieves Acid3 100/100 in public build.
  4. ^ a b KDE KFM-Devel mailing list "(fwd) Greetings from the Safari team at Apple Computer", 7 January 2003.
  5. ^ Don Melton (January 7, 2003). Fwd: Our changes to KHTML and KJS. Retrieved on 2007-01-16.
  6. ^ Apple Announces New "Safari" Browser
  7. ^ Daniel Molkentin (June 7, 2005). Apple Opens WebKit CVS and Bug Database. KDE News. Retrieved on 2007-01-16.
  8. ^ Next Generation KDE Technologies Ported to WebCore
  9. ^ a b Unrau, Troy (2007-07-23). The unforking of KDE’s KHTML and WebKit. Ars Technica. Retrieved on 2007-07-30.
  10. ^ The WebKit Open Source Project – JavaScript
  11. ^ KDE-Darwin mailing list, "JavaScriptCore, Apple’s JavaScript framework based on KJS", 13 June 2002.
  12. ^ The Great Browser JavaScript Showdown (2007-12-19).
  13. ^ WebKit.org Drosera wiki artcle
  14. ^ Introducing Drosera. Surfin’ Safari.
  15. ^ Commit removing Drosera.
  16. ^ S60WebKit
  17. ^ Alp Toker – WebKit/Gtk+ is coming
  18. ^ Syllable WebKit Port, Syllable Server
  19. ^ Webkit port: talking to Andrea "xeD" Anzani | Haiku Project
  20. ^ Cow launched! | Robert Norris´ Blog on porting WebKit to AROS
  21. ^ Maciej Stachowiak (January 10, 2007). The Obligatory iPhone Post. Surfin' Safari weblog. Retrieved on 2008-01-24.
  22. ^ Android Uses WebKit
  23. ^ pleyo
  24. ^ See OWB forge
  25. ^ AmigaOS OWB official page
  26. ^ Epiphany Mailing list ANNOUNCEMENT: The Future of Epiphany
  27. ^ Arora Project

[edit] External links