Aqua WebKit turns Safari 7, released in 2013, into the best web browser in the world. It surpasses Google Chrome on all of the objectively most important metrics:
| Safari 7 | Google Chrome 158 | |
|---|---|---|
| Works With Modern Websites | β | β |
| Runs on Mac OS X 10.9 Mavericks (the world's best operating system) | β | β |
| Works With Full uBlock Origin | β | β |
| Beautiful Yet Compact Aqua User Interface | β | β |
| Fully Rearrangeable Toolbar | β | β |
| Turns Web Pages Into Dashboard Widgets | β | β |
| Integrated With Spotlight | β | β |
| Has Annoying AI Features You Don't Want | β | β |
Aqua WebKit is not an experiment. It is fast and stable and ready to use. The author personally browses the web almost entirely in Safari 7 with Aqua WebKit.
In these screenshots, none of Safari's code has been changed. Only WebKit.framework, WebKit2.framework, and JavascriptCore.framework have been replaced by Aqua WebKit's versions.
Aqua WebKit additionally adds support for major portions of the WebExtensions API, such that most Firefox and Chrome extensions can be automatically converted to work in Safari.
Nearly all backport code was generated by language models. This top-level readme is and always will be entirely human-authored.
-
The backport is fully self-hosted. Build on Mavericks; use on Mavericks.
-
With the exception of the macOS SDK, all dependencies and build requirements are included in the repository.
-
The backport is built using a modern clang compiler, a modern C++ standard library, and a modern macOS SDK.
-
Video playback is handled by gstreamer, used upstream by WebKitGTK.
-
Image decoding is handled by the same set of libraries used upstream by WebKitGTK (libpng, libjpeg-turbo, etc). Nothing is decoded by ImageIO.
-
Fonts are sanitized by OTS, used by Chromium, before they are handed to CoreText.
-
WebCrypto is handled by libgcrypt, used upstream by WebKitGTK.
-
Networking is largely handled by curl, used upstream by WebKit WinCairo. Data is still stored in CFNetwork containers for Safari compatibility. BoringSSL is used for TLS.
-
Google's proprietary Widevine library will be automatically downloaded and patched at runtime to support protected media playback.
-
Minimize upstream divergence. Wherever possible, polyfill outside of WebKit's codebase (e.g. in AquaWebKitSupport). There are two reasons for this:
- Polyfills make it easy to merge changes from upstream in the future.
- Polyfills ensure we are using battle-tested upstream logic over custom logic we wrote ourselves. A polyfill merely provides WebKit with the environment it expects.
-
Minimize the amount of complex computer-generated code by using existing libraries where possible.
-
Due to fundamental Core Animation restrictions on Mavericks,
backdrop-filteris replaced with a simple darkening filter. -
WebGPU is currently not supported.
-
WebTransport is not supported, primarily because it's still a draft specification.
Relative to the complexity of WebKit, building this project should be straightforward. Please try it! If you run into trouble, open an issue.
On a Mac or Virtual Machine running Mavericks with Apple's Command Line Tools installed:
- Clone this repository.
- To speed up this step, you may wish to use
--depth N, where N is a reasonably small number, to fetch only the N most recent commits.
- To speed up this step, you may wish to use
- Place a copy of the MacOSX26.1.sdk adjacent to your cloned repository.
- For example, if you cloned to
~/Developer/webkit, you would want to place the SDK at~/Developer/MacOSX26.1.sdk. - Alternately, place the SDK wherever you want and remember to set the
AQUAWEBKIT_SDKenvironment variable in a later step. - Officially, the SDK must be extracted from a recent copy of Xcode. Unofficially, just download it here .
- For example, if you cloned to
- Run AquaWebKitSupport/bootstrap.sh to extract/build the toolchain.
- Run AquaWebKitSupport/build.sh to build WebKit.
- On a reasonably fast machine, this will take hours, but not days. Consider letting it run over night.
- Ccache is enabled and included in the toolchain. After you've built the project once, future rebuilds should be much faster.
- If desired, run AquaWebKitSupport/install.sh to install the Frameworks on your system.
This is a massive project, and contributions are appreciated!
Every (!) hunk that diverges from WebKit must include an AQUAWEBKIT marker comment. Think of these a little like unsafe blocks in Rust; we need them sometimes, but we'd much rather make a polyfill. Like converting unsafe code to safe, code that converts an upstream divergence to a polyfill is highly valued even if it has no functional benefit.
Fully handwritten code is greatly respected, and will be held in especially high regard!
Code generated by language models is also very much allowed in this backport. However, please take reasonable steps to ensure that the code you submit is correct and functional. This includes but is not limited to building and manually testing your code and running applicable test suites.
In general, please do not use AI in any written communication, including pull requests and bug reports. I enjoy talking to real people, not computers! If an issue is technically above your head such that you need an AI's assistance, please explain the problem from your perspective first (ie what do you experience) and then clearly demarcate AI-generated blocks.