Bug 246827 - [JSC] Enable Options::useShadowRealms when WebAPIsInShadowRealms feature is enabled
Summary: [JSC] Enable Options::useShadowRealms when WebAPIsInShadowRealms feature is e...
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Caitlin Potter (:caitp)
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-10-20 13:15 PDT by Caitlin Potter (:caitp)
Modified: 2022-11-03 15:49 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>