WebKit

WebKit
WebKit
Logo
Developer(s) Apple, KDE, Nokia, Google, RIM, Palm, Samsung, others.
Initial release November 4, 1998; 13 years ago (1998-11-04)
Preview release r98925 / November 1, 2011; 21 days ago (2011-11-01)
Written in C++
Operating system Cross-platform[1]
Type Layout engine
License GNU Lesser General Public License (LGPLv2.1) (JavaScriptCore & WebCore components), BSD License v2.0 (remainder of the browser engine)
Website www.webkit.org

WebKit is a layout engine designed to allow web browsers to render web pages. WebKit powers Apple Safari and Google Chrome and by October 2011 held over 33% of the browser market share between them. It is also used as the basis for the experimental browser included with the Amazon Kindle ebook reader, as well as the default browser in the iOS and Android mobile operating systems. The WebKit engine provides a set of classes to display web content in windows, and implements browser features such as following links when clicked by the user, managing a back-forward list, and managing a history of pages recently visited.

WebKit was originally derived by Apple Inc. from the Konqueror browser's KHTML software library for use as the engine of Safari web browser, and has now been further developed by individuals from KDE, Apple Inc., Nokia, Google, Bitstream, Torch Mobile, Samsung, Igalia, and others.[2] Mac OS X, Windows, GNU/Linux, and some other Unix-like operating systems are supported by the project.[3]

WebKit's WebCore and JavaScriptCore components are available under the GNU Lesser General Public License, and the rest of WebKit is available under a BSD-style license.[4]

Contents

Origins

The code that would become WebKit began in 1998 as the KDE project's HTML layout engine KHTML and KDE's JavaScript engine (KJS). The WebKit project was started within Apple by Don Melton on 25 June 2001[5] as a fork of KHTML and KJS. Melton explained in an e-mail to KDE developers[6] that KHTML and KJS allowed easier development than other available technologies by virtue of being small (fewer 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.[6] JavaScriptCore was announced in an e-mail to a KDE mailing list in June 2002, alongside the first release of Apple's changes.[7] WebCore was announced at the Macworld Expo in January 2003 by Apple CEO Steve Jobs with the release of the Safari web browser. JavaScriptCore was first included with Mac OS X v10.2 as a private framework which Apple used within their Sherlock application, while WebCore debuted with the first beta of Safari. Mac OS X v10.3 was the first major release of Apple's operating system to bundle WebKit, although it had already been bundled with a minor release of 10.2.

However, the exchange of code patches between the two branches of KHTML has previously been difficult and the code base diverged because both projects had different approaches in coding.[8] One of the reasons for this is that Apple worked on their version of KHTML for a year before making their fork public.

Despite this, the KDE project was able to incorporate some of these changes to improve KHTML's rendering speed and add features, including compliance with the Acid2 rendering test.[citation needed] Konqueror 3.5 passed the Acid2 test, which was released after Apple had opened its WebKit CVS and Bug Database.

According to Apple, some changes involved Mac OS X–specific features (e.g., Objective-C, KWQ, Mac OS X calls) that are absent in KDE's KHTML, which called for different development tactics.[9]

Split development

At one point KHTML developers said they were unlikely to accept Apple's changes and claimed the relationship between the two groups was a "bitter failure".[10] Apple submitted their changes in large patches that contained a great number of changes with inadequate documentation, often to do with future feature additions. Thus, these patches were difficult for the KDE developers to integrate back into KHTML.[11] Furthermore, Apple had demanded developers to sign nondisclosure agreements before looking at Apple's source code and even then they were unable to access Apple's bug database.[citation needed]

During the publicized 'divorce' period, KDE developer Kurt Pfeifle (pipitas) posted an article claiming KHTML developers had managed to backport many (but not all) Safari improvements from WebCore to KHTML, and they always appreciated the improvements coming from Apple and still do so. The article also noted Apple had begun to contact KHTML developers about discussing how to improve the mutual relationship and ways of future cooperation.[12]

Since the story of the fork appeared in news, Apple has released changes of the source code of its KHTML fork in a CVS repository.[13] Since the transfer of the sourcecode into a public CVS repository, Apple and KHTML developers have had increasing collaboration. Many KHTML developers have become reviewers and submitters for WebKit SVN repository.

The WebKit team had also reversed many Apple-specific changes in the original WebKit code base and implemented platform-specific abstraction layers to make committing the core rendering code to other platforms significantly easier.[14]

In July 2007, the Ars Technica website published an article reporting that the KDE team would move from KHTML to WebKit.[15] Instead, after several years of integration, KDE Development Platform version 4.5.0 was released in August 2010 with support for both WebKit and KHTML, and development of KHTML continues.[16]

Open-sourcing

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 CVS tree and the bug Database tool.[13] This was announced at Apple's Worldwide Developers Conference 2005 by Apple Senior Vice President of Software Engineering Bertrand Serlet.

In mid-December 2005 support for Scalable Vector Graphics was merged into the standard build[17] and in early January 2006 the source code was migrated from CVS to Subversion.

WebKit's JavaScriptCore and WebCore components are available under the GNU Lesser General Public License, while the rest of WebKit is available under a BSD-style license.

Further development

Beginning in early 2007, the development team began to implement CSS extensions, including animation, transitions and both 2D and 3D transforms;[18] such extensions were released as working drafts to the W3C in 2009 for standardization.[19]

In November 2007, the project announced that it had accomplished support for HTML5 media features, allowing for embedded video to be natively rendered and script-controlled in WebKit.[20]

On June 2, 2008, the WebKit project announced they rewrote JavaScriptCore as "SquirrelFish", a bytecode interpreter.[21][22] The project evolved into SquirrelFish Extreme (abbreviated SFX), announced on September 18, 2008, which compiles JavaScript into native machine code, eliminating the need for a bytecode interpreter and thus speeding up Javascript execution.[23] Initially the only supported architecture for SFX was the x86 architecture, but at the end of January 2009 SFX was enabled for Mac OS X on x86-64 architectures as it passes all tests on that platform.[24]

On June 6, 2011, as an early step to try to use an extension to today's CSS (Cascading Style Sheets) technology to bring magazine-style layouts to Web pages, the first bit of Adobe-written code landed in the WebKit browser engine project. [25]

WebKit2

WebKit2 was announced on 8 April 2010. WebKit2 is designed from the ground up to support a split process model, where the web content (JavaScript, HTML, layout, etc.) runs in a separate process from the application UI. This model is similar to what Google Chrome now offers, with the major difference being that WebKit2 has built the process split model directly into the framework, allowing other clients to use it. Currently WebKit2 is available for Mac, Windows and MeeGo-Harmattan.[26][27][28]

Use

WebKit is used as the rendering engine within Safari on Windows, Mac OS X and iOS. Other applications on Mac OS X make use of WebKit, such as Apple's e-mail client Mail and the 2008 version of Microsoft's Entourage personal information manager, both of which make use of WebKit to render e-mail messages with HTML content.

New web browsers have been built around WebKit such as the S60 browser[29] on Symbian mobile phones, Blackberry Browser (ver 6.0+), Midori, Shiira, Chrome browser,[30][31] Uzbl, Maxthon 3, xxxterm, and the Android Web browser. KDE Projects Rekonq Web Browser and Plasma Workspaces also use it as the native web rendering engine. WebKit has been adopted as the rendering engine in OmniWeb, iCab and Epiphany replacing their original rendering engines.[32] 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 too cumbersome to continue supporting it. HP's Palm WebOS uses WebKit as the basis of its application runtime. The latest interface update for Valve Corporation's Steam employs WebKit to render its interface and built-in browser.[33] WebKit is used to render HTML and run JavaScript in the Adobe Integrated Runtime application platform. In Adobe Creative Suite CS5, WebKit is used to render some parts of the user interface. As of the first half of 2010, analyst estimates place the cumulative number of mobile handsets shipped with a WebKit-based browser at 350 million.[34] WebKit will continue to dominate the mobile industry as the market penetration of smartphones, the engine's primary contributors, increases. The introduction of tablets will also be a contributing factor, since many tablets have the Android or Apple iOS operating system (iPad, iPad 2) installed. In 2011, from January to August, the market share of Android OS alone increased from 15% to 20%. Combining the increase of smartphone and tablet sales, coupled with the increasing market share of Chrome, WebKit could become the dominant web browser engine in 2012. Consider, for example, that for the period of January to September 2011, the market share of Google's Chrome browser went from 15% to 23.5%, and Safari maintained a 5-6% share while usage of both Internet Explorer and Mozilla decreased significantly. If this growth continues, total usage of WebKit (Chrome, Safari, and smartphones/tablets) will surpass 50% by the end of 2012. [35]

Ports

The week after Hyatt's announcement of WebKit's open-sourcing, Nokia announced that it had ported WebKit to the Symbian operating system and was developing a browser based on WebKit for mobile phones running S60. Now named Web Browser for S60, it is used on Nokia, Samsung, LG, and other Symbian S60 mobile phones. Apple has also ported WebKit to the iOS to run on the iPhone and iPod Touch, where it is used to render content within the device's web browser and e-mail software.[36] The Android mobile phone platform uses WebKit as the basis of its web browser[37] and the Palm Pre, announced January 2009, has an interface based on WebKit.[38] The Amazon Kindle 3 includes an experimental WebKit based browser.[39]

In June 2007, Apple announced that WebKit had been ported to Microsoft Windows as part of Safari. There are also ongoing ports for the open source operating systems Syllable,[40] Haiku[41] and AROS.[42]

WebKit has also been ported to a number of toolkits that support multiple platforms, such as the GTK+ toolkit,[43][44] the Qt framework,[45] the Adobe Integrated Runtime, the EFL and the Clutter toolkit,[46]. Qt Software (owned by Nokia) includes the Qt port in the Qt 4.4 release. The Qt port of WebKit is also available to be used in Konqueror in KDE 4.1.[15] The Iris Browser on Qt also uses WebKit. The Enlightenment Foundation Libraries (EFL) port is under development (by Samsung and ProFUSION) focusing the embedded and mobile systems, for use as stand alone browser, widgets/gadgets, rich text viewer and composer. The Clutter port is developed by Collabora and sponsored by Bosch.

There is also a project synchronized with WebKit (sponsored by Pleyo)[47] called Origyn Web Browser, which provides a meta-port to an abstract platform with the aim of making porting to embedded or lightweight systems quicker and easier.[48] This port is used for embedded devices such as set-top boxes, PMP and it has been ported into AmigaOS,[49][50] AROS[51] and MorphOS. MorphOS version 1.7 is the first version of OWB supporting HTML5 media tags.[52][53]

Components

WebCore

WebCore is a layout, rendering, and Document Object Model (DOM) library for HTML and SVG, developed by the WebKit project. Its complete source code 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 be easily referenced by applications based on the Cocoa API; later versions also include a cross-platform C++ platform abstraction, and various ports provide additional APIs.

WebKit passes the Acid2 and Acid3 tests, with pixel-perfect rendering and no timing or smoothness issues on reference hardware.[54]

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.[7][55] 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.[56]

On June 2, 2008, the WebKit project announced they rewrote JavaScriptCore as "SquirrelFish", a bytecode interpreter.[21][22] The project evolved into SquirrelFish Extreme (abbreviated SFX, marketed as Nitro), announced on September 18, 2008, which compiles JavaScript into native machine code, eliminating the need for a bytecode interpreter and thus speeding up JavaScript execution.[23]

Drosera

Drosera is a JavaScript debugger that was included with the nightly builds of WebKit.[57][58] It was named after Drosera, a genus of carnivorous plants. Drosera has been replaced by the inclusion of debugging functionality in the Web Inspector.[59]

SunSpider

SunSpider is a benchmark suite that aims to measure JavaScript performance on tasks relevant to the current and near future use of JavaScript in the real world, such as encryption and text manipulation.[60] The suite further attempts to be balanced and statistically sound.[61] Version 0.9 was released by the WebKit team in December 2007.[62] It was well-received,[63] and other browser developers also use it to compare the JavaScript performance of different browsers.[64] Version 0.9.1 was released in April 2010.[65]

See also

References

  1. ^ "WebKit". Trac.webkit.org. http://trac.webkit.org/wiki. Retrieved 2010-12-27. 
  2. ^ Maciej Stachowiak (November 9, 2008). "Companies and Organizations that have contributed to WebKit". WebKit Wiki. http://trac.webkit.org/wiki/Companies%20and%20Organizations%20that%20have%20contributed%20to%20WebKit. Retrieved 2008-11-17. 
  3. ^ "The WebKit Open Source Project - Getting the Code". Webkit.org. http://webkit.org/building/checkout.html. Retrieved 2010-12-27. 
  4. ^ "Open Source - WebKit". Apple. http://developer.apple.com/opensource/internet/webkit.html. Retrieved 2009-03-05. 
  5. ^ Melton, Don (25 August 2011). "ATTENTION INTERNETS! WebKit is not 10 years old today. That happened on June 25. I know the date because that's when I started the project.". Twitter. http://twitter.com/#!/donmelton/status/106603038575296512. Retrieved 13 October 2011. 
  6. ^ a b KDE KFM-Devel mailing list "(fwd) Greetings from the Safari team at Apple Computer", January 7, 2003.
  7. ^ a b Stachowiak, Maciej (June 13, 2002). "JavaScriptCore, Apple's JavaScript framework based on KJS". kde-darwin mailing list. Archived from the original on 2007-03-10. http://web.archive.org/web/20070310215550/http://www.opendarwin.org/pipermail/kde-darwin/2002-June/000034.html. Retrieved 2008-08-21. 
  8. ^ "So, when will KHTML merge all the WebCore changes?". kdedevelopers.org. http://www.kdedevelopers.org/node/1001. Retrieved 2010-02-20. 
  9. ^ "Safari and KHTML again". kdedevelopers.org. 2005-04-30. http://www.kdedevelopers.org/node/1006. Retrieved 2010-02-20. 
  10. ^ The bitter failure named "safari and khtml"
  11. ^ Open-source divorce for Apple's Safari?
  12. ^ WebCore - KHTML - Firefox: Know your facts!
  13. ^ a b Daniel Molkentin (June 7, 2005). "Apple Opens WebKit CVS and Bug Database". KDE News. http://dot.kde.org/2005/06/07/apple-opens-webkit-cvs-and-bug-database. Retrieved 2007-01-16. 
  14. ^ Ars at WWDC: Interview with Lars Knoll, creator of KHTML
  15. ^ a b Unrau, Troy (2007-07-23). "The unforking of KDE’s KHTML and WebKit". Ars Technica. http://arstechnica.com/journals/linux.ars/2007/07/23/the-unforking-of-kdes-khtml-and-webkit. Retrieved 2007-07-30. 
  16. ^ KDE Development Platform 4.5.0 gains performance, stability, new high-speed cache and support for WebKit
  17. ^ Next Generation KDE Technologies Ported to WebCore
  18. ^ CSS Transforms
  19. ^ CSS3 Animations
  20. ^ HTML5 Media Support by Antti Koivisto, Surfin' Safari blog, November 12th, 2007
  21. ^ a b Announcing SquirrelFish
  22. ^ a b SquirrelFish project
  23. ^ a b Introducing SquirrelFish Extreme
  24. ^ "Changeset 40439 – WebKit". Trac.webkit.org. 2009-01-30. https://trac.webkit.org/changeset/40439. Retrieved 2010-12-27. 
  25. ^ Stephen Shankland, CNET. "Adobe's Web design work lands in WebKit browser." Jun 6, 2011. Retrieved Jun 6, 2011.
  26. ^ "Announcing WebKit2". Webkit.org. https://lists.webkit.org/pipermail/webkit-dev/2010-April/012235.html. Retrieved 2010-12-27. 
  27. ^ "WebKit2 wiki". Webkit.org. http://trac.webkit.org/wiki/WebKit2. Retrieved 2011-05-24. 
  28. ^ "Introducing the Nokia N9: all it takes is a swipe!". Nokia Corporation. http://conversations.nokia.com/2011/06/21/introducing-the-nokia-n9-all-it-takes-is-a-swipe/. Retrieved 2011-06-21. 
  29. ^ Nokia S60 Webkit Browser
  30. ^ Google Chrome, Google’s Browser Project
  31. ^ Comic describing the Google Chrome Project
  32. ^ Epiphany Mailing list - Announcement: The Future of Epiphany
  33. ^ A Brand New Steam
  34. ^ "100 Million Club (H1 2010 update)". 100 Million Club (H1 2010 update). VisionMobile. http://www.visionmobile.com/blog/2010/10/smart-feature-phones-the-unbalanced-equation-100-million-club-series/. Retrieved 1 March 2011. 
  35. ^ Christopher Pecoraro (October 15, 2011). "WebKit Will Rule the World (Wide Web)". Irventu weblog. http://irventu.com/WebKit-Will-Rule-the-World-%28Wide-Web%29. Retrieved 2012-10-15. 
  36. ^ Maciej Stachowiak (January 10, 2007). "The Obligatory iPhone Post". Surfin' Safari weblog. http://webkit.org/blog/87/safari-on-the-iphone/. Retrieved 2008-01-24. 
  37. ^ Android Uses WebKit
  38. ^ Palm Pre in-depth impressions, video, and huge hands-on gallery
  39. ^ Joshua Topolsky. "New Amazon Kindle announced: $139 WiFi-only version and $189 3G model available August 27th in the US and UK". http://www.engadget.com/2010/07/28/new-amazon-kindle-announced-139-wifi-only-version-and-189-3g/5. 
  40. ^ Syllable WebKit Port, Syllable Server
  41. ^ Webkit port: talking to Andrea "xeD" Anzani | Haiku Project
  42. ^ Cow launched! | Robert Norris´ Blog on porting WebKit to AROS
  43. ^ WebKitGTK+ project website
  44. ^ Alp Toker – WebKit/Gtk+ is coming
  45. ^ QT WebKit
  46. ^ WebKitClutter project website
  47. ^ pleyo
  48. ^ See OWB forge
  49. ^ AmigaOS OWB official page
  50. ^ "Amiga - Powering through, dead or alive!". amigaweb.net. http://amigaweb.net/index.php?function=view_news&id=962. Retrieved 2010-06-02. 
  51. ^ AROS OWB developer page
  52. ^ "Origyn Web Browser for MorphOS". Fabian Coeurjoly. http://fabportnawak.free.fr/owb/. Retrieved 2010-01-04. 
  53. ^ Thom Holwerda (March 8, 2010). "Origyn Web Browser 1.7 Supports HTML5 Media, More". OSNews. http://www.osnews.com/story/22971/Origyn_Web_Browser_1_7_Supports_HTML5_Media_More. Retrieved 2010-03-08. 
  54. ^ Maciej Stachowiak (2008-09-25). "Full Pass Of Acid3". Surfin' Safari - The WebKit Blog. http://webkit.org/blog/280/full-pass-of-acid-3/. Retrieved 2008-09-29. 
  55. ^ The WebKit Open Source Project – JavaScript
  56. ^ "The Great Browser JavaScript Showdown". 2007-12-19. http://www.codinghorror.com/blog/archives/001023.html. 
  57. ^ WebKit.org Drosera wiki article
  58. ^ "Introducing Drosera". Surfin’ Safari. http://webkit.org/blog/?p=61. 
  59. ^ "Commit removing Drosera". http://trac.webkit.org/changeset/33547. 
  60. ^ Muchmore, Michael (2008-06-18). "Review: Firefox 3 Stays Ahead of Browser Pack". Fox News. http://www.foxnews.com/story/0,2933,368182,00.html. Retrieved 2008-09-06. 
  61. ^ "SunSpider JavaScript Benchmark". http://www.webkit.org/perf/sunspider/sunspider.html. Retrieved 15 February 2011. 
  62. ^ "Announcing SunSpider 0.9". 2007-12-18. http://webkit.org/blog/152/announcing-sunspider-09/. Retrieved 2008-09-06. 
  63. ^ Atwood, Jeff (2007-12-19). "The Great Browser JavaScript Showdown". http://www.codinghorror.com/blog/archives/001023.html. Retrieved 2008-09-06. 
  64. ^ Resig, John (2008-09-03). "JavaScript Performance Rundown". http://ejohn.org/blog/javascript-performance-rundown/. Retrieved 2008-06-09. 
  65. ^ "Surfin’ Safari - Blog Archive » Announcing SunSpider 0.9.1". Webkit.org. 2010-04-07. http://webkit.org/blog/1046/announcing-sunspider-0-9-1/. Retrieved 2010-12-27. 

External links


Wikimedia Foundation. 2010.

Игры ⚽ Нужен реферат?

Look at other dictionaries:

  • WebKit — Entwickler Apple, KDE, Nokia, Adobe, Google und andere Betriebssystem Plattformunabhängig Programmier­sprache C++, Objective C …   Deutsch Wikipedia

  • WebKit — Desarrollador Apple Inc., Qt Software, Nokia, Adobe, Google, otros …   Wikipedia Español

  • Webkit — Entwickler: Apple, Trolltech, Nokia, Adobe, Google, andere. Betriebssystem: Plattformunabhängig Kategorie: Engine …   Deutsch Wikipedia

  • WebKit — Тип Фреймворк Разрабо …   Википедия

  • WebKit — Développeur Apple, Nokia, Google Environnements C++ …   Wikipédia en Français

  • Webkit — est une bibliothèque de fonctions permettant aux développeurs d intégrer facilement un moteur de rendu de pages Web dans leurs logiciels. Elle est disponible sous licence BSD et GNU LGPL. Originellement réservée au système d exploitation Mac OS X …   Wikipédia en Français

  • WebKit/GTK+ — WebKitGTK+ WebKitGTK+ est le portage du moteur de rendu HTML WebKit pour l environnement GTK+. Actuellement en cours de développement, il servira de base aux prochaines versions d Epiphany, le navigateur web du bureau GNOME mais aussi à Midori,… …   Wikipédia en Français

  • Apple WebKit — …   Википедия

  • WebCore — WebKit Entwickler: Apple, Trolltech, Nokia, Adobe, Google, andere. Betriebssystem: Plattformunabhängig Kategorie: Engine …   Deutsch Wikipedia

  • Web Kit — WebKit Entwickler: Apple, Trolltech, Nokia, Adobe, Google, andere. Betriebssystem: Plattformunabhängig Kategorie: Engine …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”