1 of 7

ShadowRealm

HTML Integration and Stage 2 Updates

Leo Balter, Sr. Product Manager�@leobalter | leobalter@salesforce.com�He/Him

2 of 7

WIP with Igalia

A huge thanks to everyone involved!

Work is in progress — Salesforce continues sponsoring work being done with Igalia to eventually meet requirements for Stage 3.

  • Overview of the V8 Implementation
  • Small improvements to the ES proposal spec
  • HTML Integration
  • Implementation in WebKit

3 of 7

Overview of the V8 Implementation

Feedback from the V8 team:

  • ShadowRealm is code-complete as far as V8 goes
  • Waiting on the Blink integration/WHATWG to determine which APIs should be included.
  • exposed=* usage for now
  • Blink has made some progress in creating a snapshot for shadow-realm.

4 of 7

HTML Integration

  • (Evergreen) HTML integration PR rebase.
    • New PR: WhatWG/html#9893
  • Spec Refactor to align with the new Modules integration.
  • Discussed approach to module loading with Nicolò Ribaudo and Dan Ehrenberg, and started drafting improved spec text.
  • Landed some preliminary editorial changes to the HTML specification (PR #9872).
  • SES Discussions: Host integration changes for CSP unsafe-eval protection
  • Discussed CSP HostEnsureCanCompileStrings change with ECMA-262 editors
    • Submitted rebased HostEnsureCanCompileStrings PR #3222 (separate item/discussion) in the plenary agenda)

5 of 7

WebKit Implementation

  • Updates on WPT
  • Testing current implementation against (updated) WPT and Test262
  • Coverage Review for APIs exposed in a ShadowRealm
  • Continue work on previous related WebKit pull requests
  • Continued QA on rebased branches for the WebKit implementation

6 of 7

Moving forward

  • HTML Integration
    • End goal: list of APIs exposed in a ShadowRealm
    • Global object setup rewrite
    • HostEnsureCanCompileStrings follow ups: ECMA-262 and CSP.
  • WebKit Implementation
    • Address review comments on open WebKit PRs
    • Continued rebasing for branch QA
    • Continued coverage reviews for WPT+Test262

Any questions or comments?

7 of 7

  • Thank you