BrowserDigest Browser Digest
Back to Blog

Safari logo

What Changed in WebKit: Safari 18.1

WebKit Engine
🤖 2 Apple Intelligence features 🐛 15+ bug fixes 📋 Interop 2024 improvements

Why This Matters

WebKit powers every browser on iOS and iPadOS, plus Safari on macOS and visionOS. Safari 18.1 is a targeted release — light on new web platform features but significant for introducing Apple Intelligence capabilities to the browsing experience. It ships with iOS 18.1, macOS Sequoia 15.1, and visionOS 2.1.


CSS

This release focuses on polish rather than new features. A key fix addresses style container queries querying the root element — a subtle interop issue that affected component libraries relying on container queries for responsive design. This fix helps Safari pass more tests for Interop 2024.


JavaScript

A targeted fix corrects an incorrect optimization that caused random non-updated values — the kind of subtle JIT bug that could produce intermittent, hard-to-reproduce errors in production JavaScript. While only one line in the release notes, this class of fix prevents real-world data corruption.


Web APIs

Safari 18.1 introduces Apple Intelligence to the web in two ways:

Summaries in Reader — Safari Reader, the distraction-free reading mode available since 2010, now includes an AI-powered “Summarize” button. Longer articles get automatic table-of-contents generation, and some articles show summary highlights directly in the Page Menu. This works on devices where Apple Intelligence is available.

Writing Tools — A system-wide feature that helps users proofread, rewrite with different tones, and summarize selected text. Writing Tools works in any text input field on the web. For developers building apps with WKWebView, the new Writing Tools API provides fine-grained control over this behavior.


Media

A notable WebCodecs fix prevents audio and video codecs with pending work from being prematurely garbage collected — a bug that could cause silent failures in applications using the newer WebCodecs API for low-level media processing.

WebRTC gets a fix for blurry screen sharing on some sites — a quality-of-life improvement for the millions of people using browser-based video conferencing daily.


Security

The ping attribute for anchor elements is now properly controlled by the connect-src CSP directive, closing a gap where ping requests could bypass Content Security Policy restrictions. A networking fix also corrects Cross-Origin-Opener-Policy header handling in iframes, where window.opener was incorrectly set to null after multiple cross-origin navigations.


Performance

content-visibility receives a fix ensuring it doesn’t incorrectly apply to elements with display: contents or display: none — preventing layout miscalculations that could cause invisible elements to consume rendering resources.

A rendering fix for float clearing in the WordPress Classic Editor sidebar addresses a layout issue affecting one of the web’s most widely-used content management systems.

AVIF support is fixed in WKWebView on macOS, ensuring apps using web views can now properly display this efficient image format.


Accessibility

Safari 18.1 delivers 7 accessibility fixes, targeting VoiceOver and assistive technology integration. Notable corrections include: display: contents on <tbody> elements no longer breaks the accessibility tree, tables with hidden rows report correct counts, role="menu" properly allows child groups, and VoiceOver correctly handles dynamic aria-describedby text changes.

The ElementInternals.ariaValueNow null value handling is fixed, ensuring custom elements expose the correct value to assistive technologies.


Bottom Line

Who should care? Safari 18.1 is primarily a stability and polish release. If you were hitting container query edge cases, WebCodecs GC bugs, or VoiceOver issues with tables, this update addresses those directly. The Apple Intelligence features (Reader summaries, Writing Tools) are user-facing rather than developer-facing, but they signal Apple’s commitment to AI integration at the platform level.

Biggest impact: The JIT optimization fix is the most critical change for web developers — subtle value corruption bugs are among the hardest to diagnose, and this fix eliminates one source. The CSP fix for the ping attribute also closes a real security gap.


Subscribe to BrowserDigest


Sources