Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Shadow Realms] Add feature flag to enable Exposed=* web APIs in Shad…
…owRealms https://bugs.webkit.org/show_bug.cgi?id=241448 Reviewed by Yusuke Suzuki. No longer expose Web APIs to ShadowRealm by default. Instead, we enable this with a new setting WebAPIsInShadowRealmEnabled. Because the HTML integration aspect of the specification is still in the air, it's prudent to disable it by default, while still providing a feature flag for web-platform-tests. * Source/WTF/Scripts/Preferences/WebPreferencesExperimental.yaml: * Source/WebCore/bindings/js/WebCoreBuiltinNames.h: * Source/WebCore/bindings/scripts/preprocess-idls.pl: (GenerateConstructorAttributes): * Source/WebCore/bindings/scripts/test/JS/JSShadowRealmGlobalScope.cpp: (WebCore::JSShadowRealmGlobalScope::finishCreation): * Source/WebCore/bindings/scripts/test/ShadowRealmGlobalScopeConstructors.idl: Canonical link: https://commits.webkit.org/251465@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295459 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
5 changed files
with
47 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
partial interface ShadowRealmGlobalScope { | ||
attribute ExposedStarConstructor ExposedStar; | ||
[EnabledBySetting=WebAPIsInShadowRealmEnabled] attribute ExposedStarConstructor ExposedStar; | ||
attribute ShadowRealmGlobalScopeConstructor ShadowRealmGlobalScope; | ||
}; |