I’m working on WebKit on Windows these days. Sometimes I see someone asking about WebKit for Windows. I would summarize the current situation.
- Is there anyone working on bringing WebKit2 to Windows?
- Are there any modern WebKit-based browsers for Windows?
AppleWin port is a upstream port which is used for iTunes for Windows. It uses the same components with Mac port, i.e. Core Graphics and Core Foundation, etc.
The latest 64bit built binary can be downloaded from Buildbot. You need to install iTunes on your PC by using MSI installer. You can’t use Microsoft Store version of iTunes.
- How to run the latest WebKit ( Safari ) on Windows
You can compile out both 32bit and 64bit AppleWin port by yourself. However, the required library WebKitSupportLibrary.zip is not redistributable.
WinCairo port is a redistributable upstream Windows port. It supports both WebKit1 and WebKit2, but it plans to remove WebKit1. WinCairo WebKit1 and WebKit2 are using GraphicsLayerTextureMapper for Accelerated Compositing at the moment, but it’s still immature. I’d like to recommend to disable accelerated compositing by using menu at the moment.
The latest built binary can be downloaded from Buildbot.
Latest #WebKit MiniBrowser for Windows based on WinCairo 64https://t.co/SpdGSAsvW3 :— Friedhold Matz (@FriedholdMatz) June 24, 2020
Todo: `Download build artifacts from Buildbot` .
I'd like to embed this as WKwebView in Java .. but I can't. pic.twitter.com/uCBnngXPK9
Microsoft Playwright is distributing WinCairo port WebKit with modifications.
Playwright (WebKit on Windows) pic.twitter.com/PCluWMkI2s— Fujii Hironori (藤井宏憲) (@fujii0) June 17, 2020
Here is the list of Microsoft Playwright modifications to WinCairo as far as I know.
- Disabled high DPI support
- Use the complex text code path
- No way to disable accelerated compositing
QtWebKit a downstream port which supports WebKit1 and WebKit2.
In WebKit1, WebKit thread and UI thread are separated. It seems that Accelerated Compositing doesn’t work on Windows.
WebKitGTK is a well maintained upstream port, but doesn’t support Windows. So, Cygwin or WSL and X11 server (VcXsrv or Cygwin/X) are needed to run. Cygwin has epiphany and midori packages, but very old.
You can use Microsoft Playwright on WSL.
wget https://playwright.azureedge.net/builds/webkit/1317/webkit-ubuntu-20.04.zip unzip webkit-ubuntu-20.04.zip apt-get install libnotify4 libenchant1c2a libgstreamer-plugins-bad1.0-0 ./minibrowser-gtk/pw_run.sh https://google.com
Now, WebKitGTK and WPE WebKit have nightly build archives. Bug 215266 – [GTK][WPE] Add a script for generating MiniBrowser bundles
WPE WebKit is a well maintained upstream port, but doesn’t support Windows.
FTW port is a new upstream Windows port which uses Direct2D and DirectWrite.
I found a StackOverflow question of WinCairo performance. Here are the benchmark results on my PC.
|AppleWin r249040 (32bit) AC||8.39|
|AppleWin r249040 (32bit) non-AC||8.68|
|WinCairo r249042 (64bit) WK2 non-AC||136.66|
|WinCairo r249042 (64bit) WK1 AC||68.99|
|QtWebKit (64bit) WK1 non-AC||115.18|
|Firefox 68.0.2 (64bit)||272.57|
|Firefox 68.0.2 (64bit) no-GPU||105.12|
- Windows 10 version 1903 with 150% device scale factor display
- AppleWin: https://s3-us-west-2.amazonaws.com/archives.webkit.org/win-x86_64-release/249040.zip (This is a 32bit version with regardless to the URL)
- WinCairo: https://s3-us-west-2.amazonaws.com/archives.webkit.org/wincairo-x86_64-release/249042.zip
- QtWebKit: otter-browser-win64-1.0.81-weekly272-setup.exe with manually adjusting zooming level
Here are screenshots.