Read this article in: Portuguese (Português) · Spanish (Español)
WebKit is a browser rendering engine with a rich and multifaceted history, originating at the intersection of free software development and the corporate ecosystem. Although it is globally associated with Apple today, WebKit was born from a previous project, KHTML and KJS, developed by KDE. The evolution of WebKit is therefore a narrative of collaboration and, at times, divergence, involving developers from KDE, Apple, companies like Adobe and Sony, and other contributors. This rendering engine, which supports operating systems such as macOS, iOS, Linux, and Windows, has undergone significant transformations over two decades, establishing itself as one of the most influential technologies in the modern web.
The relevance of WebKit is undeniable, evidenced not only by its use in browsers like Safari but also in embedded platforms, such as PlayStation consoles and e-book readers. The project began with KHTML in 1998, but it was in 2001 that Apple started the fork of the code. On June 7, 2005, Apple made WebKit open source, allowing its global adoption. However, the story did not end there: on April 3, 2013, Google announced the creation of Blink, a fork of WebCore, marking a crucial turning point in the engine’s trajectory.
In this article, we will delve into this fascinating technological journey. We will begin with the origins in KDE, analyzing KHTML and KJS. Next, we will explore the birth of WebKit at Apple and the transition to open source, detailing the architecture of WebCore and JavaScriptCore. We will discuss global adoption in embedded platforms, discuss the major split with the emergence of Blink, and finally, review the phase of evolution and refinement brought by the WebKit2 era, offering a complete view of how this rendering engine has shaped the internet we know.
Key Points
- WebKit was born in the KDE free software ecosystem, starting from the KHTML and KJS libraries.
- The engine is divided into WebCore (rendering) and JavaScriptCore (code execution).
- Apple released the WebKit source code on June 7, 2005, solidifying the project.
- WebKit operates on multiple platforms, including macOS, iOS, Linux, and Windows.
- The licenses are diverse: WebCore and JSCore use LGPL, and others use BSD 2-Clause.
WebKit in summary
| Type | Browser engine |
|---|---|
| Developers | Apple Inc., Adobe Systems, Sony, KDE, Igalia, and others |
| Origin | Apple Inc., KDE (original KHTML and KJS design) |
| Release | November 4, 1998 (KHTML released); June 7, 2005 (WebKit source) |
| Language | C++ |
| Operating Systems | macOS, iOS or iPadOS for iPad, Linux, Microsoft Windows |
| License | LGPL (rendering engine, JavaScript engine), BSD 2-Clause (additional Apple contributions) |
| Repository | github.com/WebKit/WebKit |
The KDE Origins: KHTML and KJS

The rendering engine that would become WebKit was not born in an isolated corporate environment, but rather in the free software ecosystem of the KDE project. The initial codebase consisted of two libraries: KHTML, which was the layout engine, and KJS, which was the JavaScript engine. These tools were developed starting in 1998 and represented a robust starting point, later adopted and adapted by major industry players.
The transition from KHTML and KJS to the WebKit lineage occurred in 2001. Apple Inc. started the WebKit project as a fork of these libraries. According to contemporary records, the decision to use KHTML and KJS was motivated by their characteristics: the code was small—containing fewer than 140,000 lines of code—it was elegantly designed, and, crucially, it adhered to established standards. The adaptation process involved porting the libraries to macOS, which resulted in the renaming of KHTML and KJS to WebCore and JavaScriptCore, respectively.
However, the development was not linear. Starting in 2002, with the announcement of JavaScriptCore, the workflow began to show friction. The codebases of WebCore and KHTML increasingly diverged because the two projects adopted distinct coding approaches and code-sharing methodologies. There were reports of tension, with KDE developers claiming that the changes submitted by Apple were, at times, massive and lacked adequate documentation, making integration back into KHTML difficult. These disputes led, at one point, to a public description of “bitter failure” between the groups.
After a period of intense discussion and divergence, the WebKit code was finally released in a public version control repository. The project’s opening was solidified on June 7, 2005, when Safari developer Dave Hyatt announced that Apple was releasing the WebKit source code. At this stage, WebKit already had the support of several companies, including Adobe Systems, Sony, and Igalia. To ensure widespread adoption, the license was distributed in two parts: the JavaScriptCore and WebCore components are available under the GNU Lesser General Public License (LGPL), while the rest of WebKit uses the BSD 2-Clause license.
🕒 WebKit Evolution Timeline
- 1998 — KHTML (layout engine) and KJS (JavaScript engine) are developed in the KDE ecosystem.
- 2001 — Apple Inc. begins the WebKit project as a fork of the KHTML and KJS libraries.
- 2002 — The start of friction, with a divergence between the WebCore and KHTML code bases.
- 2005 — The WebKit code is released in a public repository, consolidating the project.
The birth of Apple and the transition to open source
Despite its roots in the open-source software ecosystem of the KDE project, WebKit quickly established itself as a global project, involving everyone from tech giants to independent developers. The initial development, which included KHTML, already had a robust structure, but the true expansion and consolidation of the rendering engine came with the entry and active involvement of companies like Apple Inc. and Adobe Systems, as well as contributors such as Sony and Igalia. This multidisciplinary collaboration ensured that WebKit was more than just open-source code; it was an evolving technology platform designed to operate on multiple architectures, such as macOS, iOS/iPadOS, Linux, and Microsoft Windows.
The Open-Source Milestone
One of the most decisive moments in the history of WebKit was the process of open-sourcing the code. Although components like WebCore and JavaScriptCore were already open, the real turning point occurred on June 7, 2005. On this day, Dave Hyatt, a Safari developer, publicly announced that Apple was open-sourcing WebKit. This announcement was not just a simple code release; it represented the opening of WebKit to global development. To better understand the evolution of powerful search engines, it is interesting to know about Elasticsearch: Who Created It?. For the first time, access to the WebKit’s revision control tree and issue tracker was made available, allowing the third-party community not only to use but also to actively contribute to and review the engine.
📘 Rendering Engine
It is the software responsible for interpreting and displaying the code of a web page. WebKit, for example, is an engine that operates on multiple architectures such as macOS, iOS, and Windows.
This decision to make WebKit accessible to a global base of developers transformed the project. The code, written in C++, began to be rapidly refined and expanded. For example, in mid-December 2005, support for Scalable Vector Graphics (SVG) was integrated into the standard build, demonstrating the fast pace of development that the open-source model allowed. In terms of technical governance, WebKit operates under a diversified licensing structure: JavaScriptCore and WebCore are available under the GNU Lesser General Public License (LGPL), while additional Apple contributions are licensed under the BSD 2-Clause.
The ability of third parties to contribute and of different companies—such as Sony and Adobe—to use the engine in their own platforms, whether on PCs or mobile devices, cemented WebKit as a dominant force. Today, the engine, which can be accessed through the github.com/WebKit/WebKit repository, is a notable example of how open-source collaboration can generate enterprise-level solutions, powering everything from operating systems to embedded platforms.
Architecture and Function: WebCore and JavaScriptCore

The architecture of WebKit is defined by the symbiotic collaboration between two distinct but complementary processing engines: WebCore and JavaScriptCore. WebKit, in essence, acts as a comprehensive framework that wraps and exposes the functionality of these engines to applications, offering an interface that allows its integration into different operating systems, such as macOS, iOS/iPadOS, Linux, and Windows. While WebCore is responsible for the visual and structural interpretation of content, JavaScriptCore is the engine specialized in executing script code. This division of responsibilities ensures that WebKit is not merely a viewer, but a robust and highly optimized rendering platform.
WebCore: The Rendering and DOM Engine
WebCore is the fundamental library that handles the structure and presentation of web content. It is responsible for layout, rendering, and managing the Document Object Model (DOM) for languages like HTML and Scalable Vector Graphics (SVG). This component is licensed under the GNU Lesser General Public License (LGPL), ensuring its adaptability in various contexts. The precision of WebCore is a central point of its design, as it is engineered to pass the rigorous Acid2 and Acid3 tests, attesting to its ability to deliver “pixel-perfect” rendering without issues of timing or fluidity on reference hardware.
JavaScriptCore: The Evolution of Code Execution
If WebCore handles what is seen, JavaScriptCore handles what is executed. This engine provides the necessary environment to run JavaScript within WebKit implementations. Its history is marked by intense performance evolution. JavaScriptCore is a descendant of the KJS library from the KDE project and the PCRE regular expression library. In a process of continuous refinement, the engine underwent radical transformations. On June 2, 2008, the project announced the rewrite of JavaScriptCore, introducing “SquirrelFish,” a register-based bytecode interpreter, which replaced the original interpreter based on AST-walking (Abstract Syntax Tree).
Optimization did not stop there. On September 18, 2008, the engine evolved to “SquirrelFish Extreme” (SFX), also known as Nitro, which introduced Just-in-Time (JIT) compilation, significantly accelerating JavaScript execution. The relentless pursuit of speed led, on May 13, 2014, to the announcement of an optimizing JIT compiler called FTL (Fourth-Tier-LLVM), which uses LLVM to generate optimized machine code. More recently, on February 15, 2016, the JIT FTL backend was replaced by the “Bare Bones Backend” (B3), continuing the engine’s trajectory of refinement and high performance.
In summary, WebKit operates through precise orchestration: JavaScriptCore processes and executes the programming logic, and WebCore uses the results of this processing to manipulate the DOM and perform graphics rendering, ensuring that the webpage is displayed correctly and efficiently on any supported platform.
📌 Essential WebKit Functions
- WebCore manages the structure and presentation of web content.
- JavaScriptCore executes the script within the environment.
- WebKit acts as a comprehensive framework for applications.
- This division ensures a robust and optimized rendering platform.
Global Adoption and Use in Embedded Platforms
WebKit’s influence far exceeds the context of a mere rendering engine for desktop browsers. Its global adoption is a testament to its robustness and adaptability, establishing it as a fundamental technology in market niches ranging from mobile operating systems to complex embedded platforms. Far from being restricted to the Apple ecosystem, WebKit has become the basis for numerous products, reaching a vast installed base. Analysts estimated that, by mid-April 2015, WebKit held a 50.3% market share in the browser sector, a figure that underscores its undeniable relevance in web infrastructure.
The true test of WebKit’s versatility lies in the concept of “ports”—specific adaptations that allow the engine to run on architectures and operating systems radically different from its origins. Development was not limited to PCs. For example, Nokia ported WebKit to the Symbian system, resulting in the Web Browser for S60, which was used on phones from brands like Samsung and LG. Similarly, WebKit was adapted for iOS, being used in the iPhone, iPod Touch, and iPad, and also in software like Apple’s Mail email client. Other platforms, such as Android, used WebKit (and later, its fork Blink) as the basis for their browsers before the 4.4 KitKat version.
🧪 WebKit in Action: From Cell Phones to Consoles
WebKit was not limited to desktops. It was adapted for Nokia’s Symbian, reaching Samsung and LG phones. Furthermore, it was used on iOS (iPhone, iPad) and even on game consoles, such as the PlayStation 3.
Presence in Embedded Systems
Its use in embedded systems is perhaps the most fascinating aspect of WebKit’s history. It was adapted to run on game consoles, such as the PlayStation 3, which used WebKit in its system software starting with version 4.10. Furthermore, WebKit was incorporated into various open-source software toolkits, allowing its integration into Linux environments. To better understand the evolution of personal computers, it is interesting to look at the history of the Apple I; for example, WebKitGTK is used by projects like GNOME Web and Eolie, while the Enlightenment Foundation Libraries (EFL) has the EWebKit port, which is specifically focused on mobile and embedded systems. For niche applications, such as set-top boxes and PMP devices, there was the Origyn Web Browser, a meta-port that facilitated portability to systems like AmigaOS and MorphOS.
Specialization continued with the development of Web Platform for Embedded (WPE), a port maintained by Igalia. WPE enhances the architecture by dividing rendering functionality into general-purpose routines and platform backends, making it ideal for embedded applications. In short, WebKit is not just a browser engine; it is an infrastructure component that allows the web to be consumed by a diversity of hardware, from the Palm Pre to devices controlled by third-party firmware. Its wide dissemination, which involved developers like Sony, Adobe, and KDE, cemented its status as a truly global project.
The Big Split: The Rise of Blink

Throughout its history, WebKit established itself as a global rendering engine, operating on operating systems such as macOS, iOS, and Linux. However, the development of any project of such magnitude is not a linear process, and the need to adapt to the specific needs of large companies often creates tension. The most significant and divisive event in WebKit’s history occurred on April 3, 2013, when Google announced the creation of Blink. This was not just an update, but a complete split of the WebCore component, which is WebKit’s rendering core. See also: Who Created Render.
The decision to create Blink was motivated by technical and strategic reasons intrinsic to the development of Google Chrome. Chrome engineers determined that, to ensure greater freedom in implementing features within the browser without causing “upstream” conflicts (meaning conflicts with the main WebKit codebase), the component needed to be separated. Furthermore, the separation allowed for a crucial simplification of the code. By migrating to Blink, Google was able to remove the WebCore components that were unnecessary or unused by Chrome, resulting in a leaner, more focused codebase.
The creation of Blink was not an isolated event; it immediately reverberated through the browser competitive landscape. Google’s announcement was followed by a paradigm shift in the industry, especially after Opera Software announced, in the same year, that it would begin using WebKit through the Chromium codebase. In response to this dynamic, the WebKit developers themselves began intense discussions about removing all Chrome-specific code from the original engine, aiming for optimization and codebase cleanup.
The result of this intense reengineering is palpable: WebKit, in its original form, became an engine that, in its current version, no longer contains Chrome-specific code. This includes, for example, the build system, the V8 JavaScript engine’s hooks and platform code that were exclusive to that development line. The split to Blink redefined the browser ecosystem, establishing two lineages of highly specialized rendering engines, each with its own development philosophy and focus on optimization.
Evolution and Refinement: The WebKit2 Era
The history of WebKit, which had consolidated its position as a global rendering engine, was not a linear path of stability. The increasing complexity of the web environment and the need for greater modularity drove a significant redesign effort, culminating in the WebKit2 project. This refinement process was formally announced on April 8, 2010. The central objective of this project was to resolve the structural limitations of the original WebKit, promoting a cleaner abstraction of the components that managed page layout and rendering.
The core of the WebKit2 innovation lay in the separation of responsibilities. The previous architecture, although functional, did not allow for the simple reuse of the engine in different application contexts. WebKit2 proposed a radical change: to isolate the web content—meaning JavaScript, HTML, and the layout process—from the surrounding user interface (UI) or the application’s “shell.” Essentially, the web content began to reside in a process separate from the graphical interface. This decoupled processing approach aimed to greatly simplify the engine’s reusability, allowing it to be integrated into various platforms and environments more robustly.
The Scope and Adoption of WebKit2
WebKit2 was not just a theoretical refinement; it was designed to cater to a vast range of operating systems and frameworks. The original targets of the project included Linux, macOS, Windows, GTK, and MeeGo-Harmattan. The API change was so profound that it motivated a redenomination in the development ecosystem. The original WebKit API was, in turn, renamed the WebKitLegacy API, while the new and more modern interface came to be simply called the WebKit API.
The adoption of this new model demonstrated the relevance of the reengineering effort. For example, Safari for macOS migrated to the new API in version 5.1, while Safari for iOS implemented WebKit2 with the release of iOS 8. This API transition, although complex, ensured that WebKit continued to evolve, remaining relevant and prepared to support the advanced functionalities that web development required, such as CSS3 improvements and 3D transformations.
Glossary
- DOM: An object model that represents the structure of web content, allowing code to manipulate the page’s elements.
- WebCore: The library responsible for the visual and structural interpretation of content, managing layout and rendering.
- JavaScriptCore: The specialized engine for executing JavaScript code within WebKit implementations.
- LGPL: A software license that allows use and modification of the code, but with certain licensing restrictions.
- JIT: An optimization technique that compiles code at runtime, significantly speeding up engine performance.
- SVG: Scalable Vector Graphics. It is a vector image format used to define graphics and visual elements.
Frequently Asked Questions
What is the main difference between WebKit and Blink?
Blink is a fork of WebKit. WebKit was used as the base for Android browsers before version 4.4 KitKat, and Blink emerged from that lineage. This branching represents an evolution and specialization of the original rendering engine.
Is WebKit still used in modern browsers?
Yes. WebKit is a technology with a wide reach, being used in mobile operating systems such as iOS and iPadOS. Furthermore, it has been adapted to run on various embedded systems, such as game consoles and niche devices.
Is WebKit open source? What are the licenses?
Yes, WebKit is an open-source project. The architecture is defined by a diverse structure of licenses. The JavaScriptCore and WebCore components are available under the GNU Lesser General Public License (LGPL), while other contributions use the BSD 2-Clause license.
Who are the main maintainers of WebKit today?
The initial development was driven by multidisciplinary collaboration involving major companies such as Apple Inc., Adobe Systems, Sony, and KDE. Various contributors, such as Igalia, were also crucial to the engine’s evolution and portability.
What is WebCore and what is its function in WebKit?
WebCore is the fundamental library responsible for the visual and structural interpretation of web content. It manages the Document Object Model (DOM), layout, and graphic rendering, ensuring that the page is displayed accurately and efficiently.
Conclusion
The trajectory of WebKit is a fascinating case study in how open source can transcend corporate boundaries. Born from the free software ecosystem of the KDE project, with the KHTML and KJS libraries, the rendering engine underwent an intense and sometimes turbulent adaptation when adopted by Apple. The methodological divergence between the groups, which generated tension and the report of a “bitter failure,” was the prelude to the global consolidation of WebKit. The real turning point occurred on June 7, 2005, when Apple open-sourced the code, transforming the project into a worldwide technological force.
Currently, WebKit operates as a complex framework, sustained by the symbiosis between WebCore—which is responsible for rendering and DOM management—and JavaScriptCore—the script execution engine. This robust architecture, which ensures “pixel-perfect” accuracy and optimization across various platforms, proves that multidisciplinary collaboration, involving companies like Adobe and Sony, is capable of generating enterprise-level solutions. The engine is not just a viewer, but a constantly evolving platform that powers operating systems and mobile devices around the globe.
The history of WebKit demonstrates that the most resilient innovation is the one built in community. By following the complex dynamics of its evolution, we realize that the future of the web is, intrinsically, a collaborative project. What lesson of perseverance and openness can we learn for tomorrow’s technological challenges?




