Version 1 (modified by Jon Davis, 3 years ago) (diff)


Apple WebKit Goals for 2021

by Maciej Stachowiak

We like to organize our thinking into themes

  • Performance
  • Privacy
  • Security
  • User Experience
  • Web Compatibility
  • Platform Integration

For performance, we look at a number of benchmarks (both public and internal) with a zero regression policy

Ideas for improving performance are a lightweight optimization level for JS, faster scrolling on top sites, fixes for hangs when dealing with touch events, a WebGL backend on top of Metal

Some privacy initiatives are app-bound domains (allow apps to limit the set of domains they talk to), private click measurement with an added fraud prevention capability, storage access API interoperability

Some security initiatives with sandboxing are creating a GPU process for media, canvas, WebGL, and (eventually) all rendering (removes lots of capabilities from the web process sandbox), bring the macOS sandbox closer in parity to the iOS sandbox, further remove more system services from the sandbox

Some other security initiatives are complete GC IsoSubspaces (ensures that objects with different types are never allocated in the same space), JIT Cage (verify/validate JIT code), verifying and fuzzing (both JSC, WebCore, and IPC)

Some user experience improvements include iPad pointer improvements (e.g. scroll events when using a magic mouse/trackpad), fix all flashes of white

Some web compatibility goals include testing what we call the "top 1000" sites as well as a focus on education sites

CSS improvements include logical properties/values, CSS subgrid, scrolling features catchup (adding missing features or updating older implementation), individual transform properties

JavaScript improvements include private class fields, Intl catchup, BigInt performance improvements and spec completion, RegExp parity, modules in web workers, top-level await

WebAssembly goals include implementing streaming and threads

Graphics goals include finishing and shipping WebGL2, creating a way to embed 3D models (under active standards discussion), thinking about proposing a scene graph API (describe geometry/materials of 3D scene for it to be rendered)

Animation goals include filling in more features for Web Animations API, including animation of discrete properties

Media API goals include implementing audio worklets, improving web audio compliance (ideally to eventually remove the webkit prefixed variants), WebRTC media capture

Media format enhancements include new codec support like VP9 and Opus

Web API goals include web speech API, improved WebSocket compatibility, improved IndexedDB quality, date inputs on macOS, web share level 2 API

Developer tools goals include font inspection/tooling, inspected page overlay for CSS grid/flex, improved JavaScript framework debugging support

Modernization goals include WKWebView completeness compared to legacy web views, adding a way to create web views with SwiftUI, mac catalyst web view parity, more content blocker capabilities

Parity goals include WebAuthn for all WKWebViews, getUserMedia for all WKWebViews, improved JavaScriptCore public API performance

Architecture goals include adopting LFC (Layout Formatting Context) for all inlines (block will come later)

Policy goals include using inclusive terminology in code, more ways to prevent regressions (e.g. requiring EWS, requiring commit queue, etc.), more bug screening in bugzilla

Testing goals include getting all tests running in modern WebKit (WK2), automatically syncing WPT, improve API tests (e.g. make the test runner actually be an app on iOS), EWS improvements, analyzing (and improving) runtime of regression tests

Tools/services goals include finishing python3 migration, updating to Buildbot 2.0, adding CMake on Apple ports, migrating to GitHub (possibly a multi-year project)

Questions & Comments

basuke: what is it that you mentioned about the GigaCage?

othermaciej: JITCage is more about restricting what kind of instructions can be written to the JIT region such that you cant jump out of it to unexpected places, almost like sandboxing the list of instructions

pnormand: (question about codecs)

(mentioned thinking carefully about battery life and whether hardware acceleration is possible, as well as interest in AV1)

Noam Rosenthal: is it possible to make conversations about shipping features more transparent and easier to follow?

othermaciej: Can be challenging because considerations about technologies can be complicated and standards themselves can be complicated. we're thinking about different ways of doing this, such as more visible things in Slack (hober: there's a presentation later about this).

kbr: possible to make it easier for opensource to work on iOS simulator?

othermaciej: Don't know of any specific plan, but please let us know of any specific issues related to the opensource iOS simulator build