Bug 246827

Summary: [JSC] Enable Options::useShadowRealms when WebAPIsInShadowRealms feature is enabled
Product: WebKit Reporter: Caitlin Potter (:caitp) <caitp>
Component: JavaScriptCoreAssignee: Caitlin Potter (:caitp) <caitp>
Status: ASSIGNED ---    
Severity: Normal CC: mark.lam, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Caitlin Potter (:caitp) 2022-10-20 13:15:11 PDT
We have a WebCore-side experimental feature "WebAPIsInShadowRealms", which is automatically enabled for imported WPT tests.

However, we still fail those tests, because ShadowRealm is not exposed on the global object in JSC. Ideally, we'd have a way to enable all JSC experimental flags when WebCore experimental flags are enabled, but since this is (as far as I'm aware) the only case thus far where this is actually needed, it seems simpler to just temporarily come up with an easy way to make this happen and get tests passing.
Comment 1 Radar WebKit Bug Importer 2022-10-27 13:16:18 PDT
<rdar://problem/101647673>