Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

WebKit 4 min read Announcement mediumAdept

Updates to Storage Policy

Starting in Safari 17 and WebKit apps on iOS 17, iPadOS 17 and macOS Sonoma, storage quota is a percentage of disk space. Each origin can use up to 60% of the disk in browser apps and 15% in other apps, with an overall cap of 80% or 20%. Cross-origin frames get 10% of the main frame's quota, and Safari no longer prompts users for more space. When the overall quota is exceeded or the system is short on storage, WebKit evicts whole origins in least-recently-used order, skipping origins with active pages or persistent storage. The Storage API's estimate(), persisted() and persist() are now fully supported, but developers still need to handle QuotaExceededError.

Assumes: Web storage APIsIndexedDB basics

Related posts

  • News from WWDC22: WebKit Features in Safari 16 Beta

    WebKit easyNovice

    Safari 16 beta adds Container Queries (size queries plus cqw/cqh/cqi/cqb/cqmin/cqmax units), CSS Subgrid, Web Push on macOS Ventura via the standard Push API, Notifications API and Service Worker backed by Apple Push Notification service, and Shared Workers. Web Inspector gains a Flexbox Inspector and support for developer-tools extensions built on the same JavaScript APIs as other browsers. Other additions include CSS Offset Path, animatable grids, overscroll-behavior, and a re-architected macOS accessibility layer that serves twice as many requests in 25% less time on complex pages. Existing Web Push implementations work unchanged as long as sites use feature detection and allow push.apple.com subdomains.

  • WebKit Features in Safari 17.0

    WebKit mediumAdept

    Safari 17.0 ships for iOS 17, iPadOS 17 and macOS with a broad set of web platform features, starting with the new HTML <search> element (Safari is the first browser to ship it), the popover attribute and API, and <hr> inside <select>. On the CSS side it adds expanded font-size-adjust (from-font and two-value syntax), font-format()/font-tech() feature queries, unprefixed hyphens, @counter-style, full-width text-transform, the remaining Media Queries level 4 features, and image-set() type/resolution arguments. It also fixes accessibility problems with display:contents and supports the full Storage API, with an origin quota now calculated from total disk space instead of a fixed 1 GB. Code examples show usage, such as adding role="search" to <search> until other browsers support it.

  • WebKit Features in Safari 17.1

    WebKit easyNovice

    Safari 17.1 brings the Managed Media Source API to iPhone, a power-efficient alternative to Media Source Extensions for adaptive bitrate streaming. It hands more buffer and network management to the browser and requires an AirPlay source alternative or explicitly disabled remote playback. The release also adds storage.session.setAccessLevel for Safari extensions, with storage.session restricted to trusted contexts by default. Bug fixes cover accessibility, CSS, RegExp look-behind, HLS and MediaSource playback, IntersectionObserver performance, popovers in shadow DOM and WebGL context loss.

  • The File System API with Origin Private File System

    WebKit mediumAdept

    WebKit now supports the File System Standard's origin private file system, a per-origin sandboxed storage area where web apps can create, read, write, move, enumerate and delete files and directories. It is available from Safari on macOS 12.2 and iOS 15.2, has the same lifetime as IndexedDB and localStorage, and is disabled in Private Browsing. Worked examples cover navigator.storage.getDirectory(), getFileHandle/getDirectoryHandle, move(), resolve(), async iteration, removeEntry() and getFile(). Writing in WebKit currently requires FileSystemSyncAccessHandle, which works only in Workers, takes exclusive access to a file, and offers synchronous read, write, truncate and flush for the best performance.

  • News from WWDC23: WebKit Features in Safari 17 beta

    WebKit mediumAdept

    Safari 17 beta brings 88 web features. Mac users can add any website to the Dock as a web app: cookies are copied over and web push and badging are supported. The release also adds experimental <model> and WebXR (immersive-vr with hand tracking) for Vision Pro, JPEG XL and HEIC image support, image-set() type arguments, and the power-efficient Managed Media Source API for adaptive streaming. HTML gains the popover attribute and <hr> in <select>, CSS gains @counter-style and expanded font-size-adjust, and each feature comes with code examples showing usage and fallbacks.

The quest for software engineering knowledge.

Look:
Layout: