News from WWDC25: WebKit in Safari 26 beta

This blog post is more exciting that the whole WWDC conference

Web Apps:

On Mac, we took a different approach when introducing Web Apps on Mac in Sep 2023. There, it doesn’t matter whether or not the website has a Web Application Manifest — it always opens as a web app. We don’t want our users to experience a mysterious difference in behavior because of the presence or absence of invisible technology. Users should have a consistent experience.

Now, we are bringing this new behavior to iOS and iPadOS. By default, every website added to the Home Screen opens as a web app. If the user prefers to add a bookmark that opens in their default browser, they can turn off “Open as Web App”, even if the site is configured to be a web app. It’s up to users to decide. And the UI is always the same.

Web APIs:

WebGPU

WebKit for Safari 26 beta adds support for WebGPU.

WebGPU supersedes WebGL on macOS, iOS, iPadOS, and visionOS and is preferred for new sites and web apps. It maps better to Metal, and the underlying hardware. Comparatively, WebGL required significant translation overhead due to being derived from OpenGL which was designed prior to modern GPUs.

WebGPU has been enabled in Safari Technology Preview for over a year, and is now shipping in Safari 26 beta for macOS, iOS, iPadOS, and visionOS. Given the level of hardware access provided by WebGPU, much consideration was taken to ensure WebGPU does not expose new security attack surfaces. Additionally, validation performed was streamlined recently to minimize overhead and maintain closer to native application performance.

DigitalCredentials:

WebKit for Safari adds support for the W3C’s Digital Credentials API. In jurisdictions that have issued such credentials, this API allows a website to securely request identity documents (e.g., a driver’s license) from Apple Wallet or other iOS applications that have registered themselves as an Identity Document Provider.

The Digital Credential API is useful for situations where a high-trust credential is needed to access a service online (e.g., renting an automobile). It provides a much safer and user friendly alternative to, for example, a user having to take a photograph of their driver’s license.

Website Security:

Web developers can use the Trusted Types API, now supported in Safari beta, to ensure that end user input does not lead to client-side cross-site scripting (XSS). The API guarantees that input can be sanitized using a developer-specified function before being passed to vulnerable APIs.

Coming to Safari is the WebAuthn Signal API, which allows websites to report credential updates (like username changes or revocations) to credential providers, ensuring a more accurate and consistent user experience with passkeys. The new PublicKeyCredential.signal* methods enable websites to communicate these changes, improving credential management and streamlining sign-in flows. This enhancement empowers websites to provide a more seamless and secure WebAuthn experience.

User privacy/security:

In our continuing efforts to improve privacy and protect users, Safari beta now prevents known fingerprinting scripts from reliably accessing web APIs that may reveal device characteristics, such as screen dimensions, hardware concurrency, the list of voices available through the SpeechSynthesis API,  Pay payment capabilities, web audio readback, 2D canvas and more. Safari additionally prevents these scripts from setting long-lived script-written storage such as cookies or LocalStorage. And lastly, Safari prevents known fingerprinting scripts from reading state that could be used for navigational tracking, such as query parameters and document.referrer.

Since it’s beginning, Lockdown Mode disallowed the use of most web fonts. Now instead, web fonts are evaluated by the new Safe Font Parser, and if they pass the evaluation, they are allowed. This means almost all content will be displayed using the specified web fonts in Lockdown Mode.

PS @jonah why can’t the browser tag be used in either general or off-topic ?

5 Likes

the list of voices available through the SpeechSynthesis API

having literally just implemented voice choices a few hours ago for a project I’m working on, I don’t understand the reason for this since every user of a given platform (eg. iOS) would have the exact same voice list
edit: turns out macOS lets you download higher quality variants which may alter this list

almost all content will be displayed using the specified web fonts in Lockdown Mode

this on the other hand is super nice: so many websites use fonts for glyphs/icons, especially in menus, and are unusable otherwise.

3 Likes

Really exciting, I’m interested how the new credentials API is going to work. My state has yet to implement digital ID’s so can’t test it out anyway but still cool. Not mentioned here is that they enabled fingerprint randomization by default for all browsing which should provide a bigger crowd to blend in with.

2 Likes

I completely overlooked this development actually (cough cough liquid glass). I think for once, the iPad can be a genuine contender in the tablet space once the Pixel Tablet reaches EOL and is no longer supported by Graphene.

1 Like

Seems the Pixel tablet has security updates until june 2028. Will Graphene OS provide support until then or stops at the software updates ?

1 Like

I think the issue is the potential lack of a second one.
Google released the Pixel C in December 2015 and gave it updates until June 2019.
But then didn’t release the Pixel Tablet until June 2023.

2 Likes