Diff
Modified: trunk/Source/WebCore/ChangeLog (270841 => 270842)
--- trunk/Source/WebCore/ChangeLog 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/ChangeLog 2020-12-15 16:45:34 UTC (rev 270842)
@@ -1,3 +1,50 @@
+2020-12-15 Youenn Fablet <[email protected]>
+
+ Make worker RTC insertable streams constructs controlled by webrtc insertable streams feature setting
+ https://bugs.webkit.org/show_bug.cgi?id=219252
+ <rdar://problem/71798249>
+
+ Reviewed by Eric Carlson.
+
+ Update binding generator to use the new ScriptExecutionContext::settingsValues getter.
+ Enable use of EnabledBySettings outside window context.
+ Make use of it in RTCRtpScriptTransformer.
+
+ Covered by existing tests and rebased binding tests.
+
+ * Modules/mediastream/RTCRtpScriptTransformer.idl:
+ * bindings/js/WebCoreBuiltinNames.h:
+ * bindings/scripts/CodeGeneratorJS.pm:
+ (GenerateRuntimeEnableConditionalString):
+ * bindings/scripts/test/JS/JSTestConditionalIncludes.cpp:
+ (WebCore::JSTestConditionalIncludesDOMConstructor::initializeProperties):
+ (WebCore::JSTestConditionalIncludesPrototype::finishCreation):
+ * bindings/scripts/test/JS/JSTestConditionallyReadWrite.cpp:
+ (WebCore::JSTestConditionallyReadWritePrototype::finishCreation):
+ * bindings/scripts/test/JS/JSTestDefaultToJSON.cpp:
+ (WebCore::JSTestDefaultToJSONPrototype::finishCreation):
+ (WebCore::jsTestDefaultToJSONPrototypeFunction_toJSONBody):
+ * bindings/scripts/test/JS/JSTestDefaultToJSONInherit.cpp:
+ (WebCore::jsTestDefaultToJSONInheritPrototypeFunction_toJSONBody):
+ * bindings/scripts/test/JS/JSTestDefaultToJSONInheritFinal.cpp:
+ (WebCore::jsTestDefaultToJSONInheritFinalPrototypeFunction_toJSONBody):
+ * bindings/scripts/test/JS/JSTestDerivedDictionary.cpp:
+ (WebCore::convertDictionaryToJS):
+ * bindings/scripts/test/JS/JSTestDerivedDictionary2.cpp:
+ (WebCore::convertDictionaryToJS):
+ * bindings/scripts/test/JS/JSTestEnabledBySetting.cpp:
+ (WebCore::JSTestEnabledBySettingDOMConstructor::initializeProperties):
+ (WebCore::JSTestEnabledBySettingPrototype::finishCreation):
+ (WebCore::JSTestEnabledBySetting::finishCreation):
+ * bindings/scripts/test/JS/JSTestEnabledForContext.cpp:
+ (WebCore::JSTestEnabledForContext::finishCreation):
+ * bindings/scripts/test/JS/JSTestInheritedDictionary.cpp:
+ (WebCore::convertDictionaryToJS):
+ * bindings/scripts/test/JS/JSTestInterface.cpp:
+ (WebCore::JSTestInterfacePrototype::finishCreation):
+ * bindings/scripts/test/JS/JSTestStandaloneDictionary.cpp:
+ (WebCore::convertDictionaryToJS):
+
2020-12-15 Andy Estes <[email protected]>
[Mac] Numerous webgl tests time out with WebM format reader enabled
Modified: trunk/Source/WebCore/Modules/mediastream/RTCEncodedAudioFrame.idl (270841 => 270842)
--- trunk/Source/WebCore/Modules/mediastream/RTCEncodedAudioFrame.idl 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/Modules/mediastream/RTCEncodedAudioFrame.idl 2020-12-15 16:45:34 UTC (rev 270842)
@@ -25,6 +25,7 @@
[
Conditional=WEB_RTC,
+ EnabledBySetting=WebRTCInsertableStreams,
Exposed=DedicatedWorker,
ImplementationLacksVTable,
] interface RTCEncodedAudioFrame {
Modified: trunk/Source/WebCore/Modules/mediastream/RTCEncodedVideoFrame.idl (270841 => 270842)
--- trunk/Source/WebCore/Modules/mediastream/RTCEncodedVideoFrame.idl 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/Modules/mediastream/RTCEncodedVideoFrame.idl 2020-12-15 16:45:34 UTC (rev 270842)
@@ -27,6 +27,7 @@
[
Conditional=WEB_RTC,
+ EnabledBySetting=WebRTCInsertableStreams,
Exposed=DedicatedWorker,
ImplementationLacksVTable,
] interface RTCEncodedVideoFrame {
Modified: trunk/Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.idl (270841 => 270842)
--- trunk/Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.idl 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.idl 2020-12-15 16:45:34 UTC (rev 270842)
@@ -23,10 +23,10 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/
-// FIXME: Add EnabledBySetting=WebRTCInsertableStreams,
[
ActiveDOMObject,
Conditional=WEB_RTC,
+ EnabledBySetting=WebRTCInsertableStreams,
Exposed=DedicatedWorker,
JSGenerateToNativeObject,
] interface RTCRtpScriptTransformer {
Modified: trunk/Source/WebCore/Modules/mediastream/RTCRtpScriptTransformerContext.idl (270841 => 270842)
--- trunk/Source/WebCore/Modules/mediastream/RTCRtpScriptTransformerContext.idl 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/Modules/mediastream/RTCRtpScriptTransformerContext.idl 2020-12-15 16:45:34 UTC (rev 270842)
@@ -28,6 +28,7 @@
[
Conditional=WEB_RTC,
+ EnabledBySetting=WebRTCInsertableStreams,
Exposed=DedicatedWorker,
ImplementationLacksVTable,
] interface RTCRtpScriptTransformerContext {
Modified: trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h (270841 => 270842)
--- trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/js/WebCoreBuiltinNames.h 2020-12-15 16:45:34 UTC (rev 270842)
@@ -215,6 +215,8 @@
macro(RTCDTMFToneChangeEvent) \
macro(RTCDataChannel) \
macro(RTCDataChannelEvent) \
+ macro(RTCEncodedAudioFrame) \
+ macro(RTCEncodedVideoFrame) \
macro(RTCIceCandidate) \
macro(RTCIceTransport) \
macro(RTCPeerConnection) \
@@ -222,6 +224,8 @@
macro(RTCPeerConnectionIceErrorEvent) \
macro(RTCRtpReceiver) \
macro(RTCRtpScriptTransform) \
+ macro(RTCRtpScriptTransformer) \
+ macro(RTCRtpScriptTransformerContext) \
macro(RTCRtpSender) \
macro(RTCRtpTransceiver) \
macro(RTCRtpTransform) \
Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm 2020-12-15 16:45:34 UTC (rev 270842)
@@ -4070,14 +4070,11 @@
if ($context->extendedAttributes->{EnabledBySetting}) {
assert("Must specify value for EnabledBySetting.") if $context->extendedAttributes->{EnabledBySetting} eq "VALUE_IS_MISSING";
- AddToImplIncludes("Document.h");
- AddToImplIncludes("Settings.h");
+ AddToImplIncludes("ScriptExecutionContext.h");
- assert("EnabledBySetting can only be used by interfaces only exposed to the Window") if $interface->extendedAttributes->{Exposed} && $interface->extendedAttributes->{Exposed} ne "Window";
-
my @flags = split(/&/, $context->extendedAttributes->{EnabledBySetting});
foreach my $flag (@flags) {
- push(@conjuncts, "downcast<Document>(jsCast<JSDOMGlobalObject*>(" . $globalObjectPtr . ")->scriptExecutionContext())->settings()." . ToMethodName($flag) . "Enabled()");
+ push(@conjuncts, "jsCast<JSDOMGlobalObject*>(" . $globalObjectPtr . ")->scriptExecutionContext()->settingsValues()." . ToMethodName($flag) . "Enabled");
}
}
@@ -4085,13 +4082,12 @@
assert("Must specify value for SettingsConditionallyReadWrite.") if $context->extendedAttributes->{SettingsConditionallyReadWrite} eq "VALUE_IS_MISSING";
AddToImplIncludes("Document.h");
- AddToImplIncludes("Settings.h");
assert("SettingsConditionallyReadWrite can only be used by interfaces only exposed to the Window") if $interface->extendedAttributes->{Exposed} && $interface->extendedAttributes->{Exposed} ne "Window";
my @flags = split(/&/, $context->extendedAttributes->{SettingsConditionallyReadWrite});
foreach my $flag (@flags) {
- push(@conjuncts, "downcast<Document>(jsCast<JSDOMGlobalObject*>(" . $globalObjectPtr . ")->scriptExecutionContext())->settings()." . ToMethodName($flag) . "Enabled()");
+ push(@conjuncts, "downcast<Document>(jsCast<JSDOMGlobalObject*>(" . $globalObjectPtr . ")->scriptExecutionContext())->settingsValues()." . ToMethodName($flag) . "Enabled");
}
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestConditionalIncludes.cpp (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestConditionalIncludes.cpp 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestConditionalIncludes.cpp 2020-12-15 16:45:34 UTC (rev 270842)
@@ -23,7 +23,6 @@
#include "ActiveDOMObject.h"
#include "DOMIsoSubspaces.h"
-#include "Document.h"
#include "JSDOMAttribute.h"
#include "JSDOMBinding.h"
#include "JSDOMConstructorNotConstructable.h"
@@ -32,7 +31,6 @@
#include "JSDOMOperation.h"
#include "JSDOMWrapperCache.h"
#include "ScriptExecutionContext.h"
-#include "Settings.h"
#include "WebCoreJSClientData.h"
#include <_javascript_Core/FunctionPrototype.h>
#include <_javascript_Core/HeapAnalyzer.h>
@@ -185,7 +183,7 @@
putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
reifyStaticProperties(vm, JSTestConditionalIncludes::info(), JSTestConditionalIncludesConstructorTableValues, *this);
#if ENABLE(Condition22) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("MIXIN_CONSTANT"), strlen("MIXIN_CONSTANT"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
DeletePropertySlot slot;
@@ -193,7 +191,7 @@
}
#endif
#if ENABLE(Condition22) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("MIXIN_REFLECTED_CONSTANT"), strlen("MIXIN_REFLECTED_CONSTANT"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
DeletePropertySlot slot;
@@ -201,7 +199,7 @@
}
#endif
#if ENABLE(Condition22) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("PARTIAL_MIXIN_CONSTANT_FROM_PARTIAL"), strlen("PARTIAL_MIXIN_CONSTANT_FROM_PARTIAL"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
DeletePropertySlot slot;
@@ -303,7 +301,7 @@
reifyStaticProperties(vm, JSTestConditionalIncludes::info(), JSTestConditionalIncludesPrototypeTableValues, *this);
bool hasDisabledRuntimeProperties = false;
#if (ENABLE(Condition12) && ENABLE(Condition22)) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("mixinOperation"), strlen("mixinOperation"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -312,7 +310,7 @@
}
#endif
#if (ENABLE(Condition12) && ENABLE(Condition22)) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("mixinComplexOperation"), strlen("mixinComplexOperation"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -321,7 +319,7 @@
}
#endif
#if (ENABLE(Condition12) && ENABLE(Condition22)) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("mixinCustomOperation"), strlen("mixinCustomOperation"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -330,7 +328,7 @@
}
#endif
#if (ENABLE(Condition11) && ENABLE(Condition12) && ENABLE(Condition22)) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("mixinConditionalOperation"), strlen("mixinConditionalOperation"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -339,7 +337,7 @@
}
#endif
#if (ENABLE(Condition12) && ENABLE(Condition22)) || ENABLE(Condition23)
- if (!(downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingEnabled() && downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled())) {
+ if (!(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled && jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled)) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("mixinSettingsConditionalOperation"), strlen("mixinSettingsConditionalOperation"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -348,7 +346,7 @@
}
#endif
#if (ENABLE(Condition12) && ENABLE(Condition22)) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("mixinResultFieldOperation"), strlen("mixinResultFieldOperation"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -357,7 +355,7 @@
}
#endif
#if (ENABLE(Condition12) && ENABLE(Condition22) && ENABLE(Condition33)) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("partialMixinOperationFromPartial"), strlen("partialMixinOperationFromPartial"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -366,7 +364,7 @@
}
#endif
#if ENABLE(Condition22) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("mixinReadOnlyAttribute"), strlen("mixinReadOnlyAttribute"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -375,7 +373,7 @@
}
#endif
#if ENABLE(Condition22) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("mixinAttribute"), strlen("mixinAttribute"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -384,7 +382,7 @@
}
#endif
#if ENABLE(Condition22) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("mixinCustomAttribute"), strlen("mixinCustomAttribute"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -393,7 +391,7 @@
}
#endif
#if ENABLE(Condition22) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("mixinNodeAttribute"), strlen("mixinNodeAttribute"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -402,7 +400,7 @@
}
#endif
#if ENABLE(Condition22) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("partialMixinAttributeFromPartial"), strlen("partialMixinAttributeFromPartial"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -411,7 +409,7 @@
}
#endif
#if ENABLE(Condition22) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("MIXIN_CONSTANT"), strlen("MIXIN_CONSTANT"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -420,7 +418,7 @@
}
#endif
#if ENABLE(Condition22) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("MIXIN_REFLECTED_CONSTANT"), strlen("MIXIN_REFLECTED_CONSTANT"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -429,7 +427,7 @@
}
#endif
#if ENABLE(Condition22) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSetting2Enabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSetting2Enabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("PARTIAL_MIXIN_CONSTANT_FROM_PARTIAL"), strlen("PARTIAL_MIXIN_CONSTANT_FROM_PARTIAL"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestConditionallyReadWrite.cpp (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestConditionallyReadWrite.cpp 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestConditionallyReadWrite.cpp 2020-12-15 16:45:34 UTC (rev 270842)
@@ -37,7 +37,6 @@
#include "JSNode.h"
#include "RuntimeEnabledFeatures.h"
#include "ScriptExecutionContext.h"
-#include "Settings.h"
#include "WebCoreJSClientData.h"
#include <_javascript_Core/FunctionPrototype.h>
#include <_javascript_Core/HeapAnalyzer.h>
@@ -198,7 +197,7 @@
DeletePropertySlot slot;
JSObject::deleteProperty(this, globalObject(), propertyName, slot);
}
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testFeatureEnabled()) {
+ if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settingsValues().testFeatureEnabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("settingsConditionallyReadWriteAttribute"), strlen("settingsConditionallyReadWriteAttribute"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -205,7 +204,7 @@
DeletePropertySlot slot;
JSObject::deleteProperty(this, globalObject(), propertyName, slot);
}
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testFeatureEnabled()) {
+ if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settingsValues().testFeatureEnabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("settingsConditionallyReadWriteAttributePromise"), strlen("settingsConditionallyReadWriteAttributePromise"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -219,10 +218,10 @@
if (!RuntimeEnabledFeatures::sharedFeatures().testFeatureEnabled())
putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().runtimeConditionallyReadWriteAttributePromisePublicName(), CustomGetterSetter::create(vm, jsTestConditionallyReadWrite_runtimeConditionallyReadWriteAttributePromise, nullptr), attributesForStructure(static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor)));
// Adding back attribute, but as readonly, after removing the read-write variant above.
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testFeatureEnabled())
+ if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settingsValues().testFeatureEnabled)
putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().settingsConditionallyReadWriteAttributePublicName(), JSC::DOMAttributeGetterSetter::create(vm, jsTestConditionallyReadWrite_settingsConditionallyReadWriteAttribute, nullptr, JSC::DOMAttributeAnnotation { JSTestConditionallyReadWrite::info(), nullptr }), attributesForStructure(static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute)));
// Adding back attribute, but as readonly, after removing the read-write variant above.
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testFeatureEnabled())
+ if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settingsValues().testFeatureEnabled)
putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().settingsConditionallyReadWriteAttributePromisePublicName(), CustomGetterSetter::create(vm, jsTestConditionallyReadWrite_settingsConditionallyReadWriteAttributePromise, nullptr), attributesForStructure(static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor)));
if (hasDisabledRuntimeProperties && structure()->isDictionary())
flattenDictionaryObject(vm);
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSON.cpp (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSON.cpp 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSON.cpp 2020-12-15 16:45:34 UTC (rev 270842)
@@ -23,7 +23,6 @@
#include "ActiveDOMObject.h"
#include "DOMIsoSubspaces.h"
-#include "Document.h"
#include "EventNames.h"
#include "JSDOMAttribute.h"
#include "JSDOMBinding.h"
@@ -45,7 +44,6 @@
#include "JSTestException.h"
#include "RuntimeEnabledFeatures.h"
#include "ScriptExecutionContext.h"
-#include "Settings.h"
#include "WebCoreJSClientData.h"
#include <_javascript_Core/FunctionPrototype.h>
#include <_javascript_Core/HeapAnalyzer.h>
@@ -201,7 +199,7 @@
DeletePropertySlot slot;
JSObject::deleteProperty(this, globalObject(), propertyName, slot);
}
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("enabledBySettingsAttribute"), strlen("enabledBySettingsAttribute"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -751,7 +749,7 @@
if (RuntimeEnabledFeatures::sharedFeatures().testRuntimeEnabledEnabled()) {
result->putDirect(vm, Identifier::fromString(vm, "longAttribute"), toJS<IDLLong>(*lexicalGlobalObject, throwScope, impl.longAttribute()));
}
- if (downcast<Document>(jsCast<JSDOMGlobalObject*>(castedThis->globalObject())->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (jsCast<JSDOMGlobalObject*>(castedThis->globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled) {
result->putDirect(vm, Identifier::fromString(vm, "enabledBySettingsAttribute"), toJS<IDLUnsignedShort>(*lexicalGlobalObject, throwScope, impl.enabledBySettingsAttribute()));
}
#if ENABLE(TEST_CONDITIONAL)
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSONInherit.cpp (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSONInherit.cpp 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSONInherit.cpp 2020-12-15 16:45:34 UTC (rev 270842)
@@ -23,7 +23,6 @@
#include "ActiveDOMObject.h"
#include "DOMIsoSubspaces.h"
-#include "Document.h"
#include "JSDOMAttribute.h"
#include "JSDOMBinding.h"
#include "JSDOMConstructorNotConstructable.h"
@@ -42,7 +41,6 @@
#include "JSTestDefaultToJSONInheritFinal.h"
#include "RuntimeEnabledFeatures.h"
#include "ScriptExecutionContext.h"
-#include "Settings.h"
#include "WebCoreJSClientData.h"
#include <_javascript_Core/HeapAnalyzer.h>
#include <_javascript_Core/JSArray.h>
@@ -232,7 +230,7 @@
if (RuntimeEnabledFeatures::sharedFeatures().testRuntimeEnabledEnabled()) {
result->putDirect(vm, Identifier::fromString(vm, "longAttribute"), toJS<IDLLong>(*lexicalGlobalObject, throwScope, impl.longAttribute()));
}
- if (downcast<Document>(jsCast<JSDOMGlobalObject*>(castedThis->globalObject())->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (jsCast<JSDOMGlobalObject*>(castedThis->globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled) {
result->putDirect(vm, Identifier::fromString(vm, "enabledBySettingsAttribute"), toJS<IDLUnsignedShort>(*lexicalGlobalObject, throwScope, impl.enabledBySettingsAttribute()));
}
#if ENABLE(TEST_CONDITIONAL)
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSONInheritFinal.cpp (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSONInheritFinal.cpp 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDefaultToJSONInheritFinal.cpp 2020-12-15 16:45:34 UTC (rev 270842)
@@ -23,7 +23,6 @@
#include "ActiveDOMObject.h"
#include "DOMIsoSubspaces.h"
-#include "Document.h"
#include "JSDOMAttribute.h"
#include "JSDOMBinding.h"
#include "JSDOMConstructorNotConstructable.h"
@@ -42,7 +41,6 @@
#include "JSTestDefaultToJSONInheritFinal.h"
#include "RuntimeEnabledFeatures.h"
#include "ScriptExecutionContext.h"
-#include "Settings.h"
#include "WebCoreJSClientData.h"
#include <_javascript_Core/HeapAnalyzer.h>
#include <_javascript_Core/JSArray.h>
@@ -266,7 +264,7 @@
if (RuntimeEnabledFeatures::sharedFeatures().testRuntimeEnabledEnabled()) {
result->putDirect(vm, Identifier::fromString(vm, "longAttribute"), toJS<IDLLong>(*lexicalGlobalObject, throwScope, impl.longAttribute()));
}
- if (downcast<Document>(jsCast<JSDOMGlobalObject*>(castedThis->globalObject())->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (jsCast<JSDOMGlobalObject*>(castedThis->globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled) {
result->putDirect(vm, Identifier::fromString(vm, "enabledBySettingsAttribute"), toJS<IDLUnsignedShort>(*lexicalGlobalObject, throwScope, impl.enabledBySettingsAttribute()));
}
#if ENABLE(TEST_CONDITIONAL)
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDerivedDictionary.cpp (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDerivedDictionary.cpp 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDerivedDictionary.cpp 2020-12-15 16:45:34 UTC (rev 270842)
@@ -21,7 +21,6 @@
#include "config.h"
#include "JSTestDerivedDictionary.h"
-#include "Document.h"
#include "JSDOMConvertBoolean.h"
#include "JSDOMConvertCallbacks.h"
#include "JSDOMConvertNumbers.h"
@@ -28,7 +27,7 @@
#include "JSDOMConvertStrings.h"
#include "JSDOMGlobalObject.h"
#include "JSVoidCallback.h"
-#include "Settings.h"
+#include "ScriptExecutionContext.h"
#include <_javascript_Core/JSCInlines.h>
#include <_javascript_Core/ObjectConstructor.h>
@@ -210,7 +209,7 @@
auto partialStringMemberValue = toJS<IDLDOMString>(lexicalGlobalObject, IDLDOMString::extractValueFromNullable(dictionary.partialStringMember));
result->putDirect(vm, JSC::Identifier::fromString(vm, "partialStringMember"), partialStringMemberValue);
}
- if (downcast<Document>(jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext()->settingsValues().testSettingEnabled) {
if (!IDLDOMString::isNullValue(dictionary.partialStringMemberWithEnabledBySetting)) {
auto partialStringMemberWithEnabledBySettingValue = toJS<IDLDOMString>(lexicalGlobalObject, IDLDOMString::extractValueFromNullable(dictionary.partialStringMemberWithEnabledBySetting));
result->putDirect(vm, JSC::Identifier::fromString(vm, "partialStringMemberWithEnabledBySetting"), partialStringMemberWithEnabledBySettingValue);
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDerivedDictionary2.cpp (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDerivedDictionary2.cpp 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestDerivedDictionary2.cpp 2020-12-15 16:45:34 UTC (rev 270842)
@@ -21,7 +21,6 @@
#include "config.h"
#include "JSTestDerivedDictionary2.h"
-#include "Document.h"
#include "JSDOMConvertBoolean.h"
#include "JSDOMConvertCallbacks.h"
#include "JSDOMConvertNumbers.h"
@@ -28,7 +27,7 @@
#include "JSDOMConvertStrings.h"
#include "JSDOMGlobalObject.h"
#include "JSVoidCallback.h"
-#include "Settings.h"
+#include "ScriptExecutionContext.h"
#include <_javascript_Core/JSCInlines.h>
#include <_javascript_Core/ObjectConstructor.h>
@@ -293,7 +292,7 @@
auto partialStringMemberValue = toJS<IDLDOMString>(lexicalGlobalObject, IDLDOMString::extractValueFromNullable(dictionary.partialStringMember));
result->putDirect(vm, JSC::Identifier::fromString(vm, "partialStringMember"), partialStringMemberValue);
}
- if (downcast<Document>(jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext()->settingsValues().testSettingEnabled) {
if (!IDLDOMString::isNullValue(dictionary.partialStringMemberWithEnabledBySetting)) {
auto partialStringMemberWithEnabledBySettingValue = toJS<IDLDOMString>(lexicalGlobalObject, IDLDOMString::extractValueFromNullable(dictionary.partialStringMemberWithEnabledBySetting));
result->putDirect(vm, JSC::Identifier::fromString(vm, "partialStringMemberWithEnabledBySetting"), partialStringMemberWithEnabledBySettingValue);
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEnabledBySetting.cpp (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEnabledBySetting.cpp 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEnabledBySetting.cpp 2020-12-15 16:45:34 UTC (rev 270842)
@@ -23,7 +23,6 @@
#include "ActiveDOMObject.h"
#include "DOMIsoSubspaces.h"
-#include "Document.h"
#include "JSDOMAttribute.h"
#include "JSDOMBinding.h"
#include "JSDOMConstructorNotConstructable.h"
@@ -33,7 +32,6 @@
#include "JSDOMWrapperCache.h"
#include "JSTestSubObj.h"
#include "ScriptExecutionContext.h"
-#include "Settings.h"
#include "TestEnabledBySettingSupplemental.h"
#include "WebCoreJSClientData.h"
#include <_javascript_Core/FunctionPrototype.h>
@@ -144,7 +142,7 @@
putDirect(vm, vm.propertyNames->name, jsNontrivialString(vm, "TestEnabledBySetting"_s), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum);
reifyStaticProperties(vm, JSTestEnabledBySetting::info(), JSTestEnabledBySettingConstructorTableValues, *this);
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext()->settingsValues().testSettingEnabled) {
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("enabledBySettingConstant"), strlen("enabledBySettingConstant"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
DeletePropertySlot slot;
@@ -186,7 +184,7 @@
reifyStaticProperties(vm, JSTestEnabledBySetting::info(), JSTestEnabledBySettingPrototypeTableValues, *this);
bool hasDisabledRuntimeProperties = false;
#if ENABLE(TEST_FEATURE)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("enabledBySettingOperation"), strlen("enabledBySettingOperation"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -195,7 +193,7 @@
}
#endif
#if ENABLE(TEST_FEATURE)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("enabledBySettingAttribute"), strlen("enabledBySettingAttribute"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -204,7 +202,7 @@
}
#endif
#if ENABLE(TEST_FEATURE)
- if (!(downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingEnabled() && downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().otherTestSettingEnabled())) {
+ if (!(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled && jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().otherTestSettingEnabled)) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("enabledByTwoSettingsAttribute"), strlen("enabledByTwoSettingsAttribute"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -212,7 +210,7 @@
JSObject::deleteProperty(this, globalObject(), propertyName, slot);
}
#endif
- if (!(downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingFromPartialInterfaceAttributeEnabled() && downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingFromPartialInterfaceEnabled())) {
+ if (!(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingFromPartialInterfaceAttributeEnabled && jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingFromPartialInterfaceEnabled)) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("supplementalAttribute"), strlen("supplementalAttribute"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -219,7 +217,7 @@
DeletePropertySlot slot;
JSObject::deleteProperty(this, globalObject(), propertyName, slot);
}
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("enabledBySettingConstant"), strlen("enabledBySettingConstant"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
@@ -245,11 +243,11 @@
static_assert(!std::is_base_of<ActiveDOMObject, TestEnabledBySetting>::value, "Interface is not marked as [ActiveDOMObject] even though implementation class subclasses ActiveDOMObject.");
- if (downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingEnabled())
+ if (jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled)
putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().TestSubObjEnabledBySettingPublicName(), CustomGetterSetter::create(vm, jsTestEnabledBySetting_TestSubObjEnabledBySettingConstructor, setJSTestEnabledBySetting_TestSubObjEnabledBySettingConstructor), attributesForStructure(static_cast<unsigned>(JSC::PropertyAttribute::DontEnum)));
- if (downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingEnabled())
+ if (jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled)
putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().TestSubObjEnabledBySettingPrivatePrivateName(), CustomGetterSetter::create(vm, jsTestEnabledBySetting_TestSubObjEnabledBySettingPrivateConstructor, setJSTestEnabledBySetting_TestSubObjEnabledBySettingPrivateConstructor), attributesForStructure(static_cast<unsigned>(JSC::PropertyAttribute::DontEnum)));
- if (downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled) {
putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().TestSubObjEnabledBySettingPrivatePublicPublicName(), CustomGetterSetter::create(vm, jsTestEnabledBySetting_TestSubObjEnabledBySettingPrivatePublicConstructor, setJSTestEnabledBySetting_TestSubObjEnabledBySettingPrivatePublicConstructor), attributesForStructure(static_cast<unsigned>(JSC::PropertyAttribute::DontEnum)));
putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().TestSubObjEnabledBySettingPrivatePublicPrivateName(), CustomGetterSetter::create(vm, jsTestEnabledBySetting_TestSubObjEnabledBySettingPrivatePublicConstructor, setJSTestEnabledBySetting_TestSubObjEnabledBySettingPrivatePublicConstructor), attributesForStructure(static_cast<unsigned>(JSC::PropertyAttribute::DontEnum)));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEnabledForContext.cpp (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEnabledForContext.cpp 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestEnabledForContext.cpp 2020-12-15 16:45:34 UTC (rev 270842)
@@ -23,7 +23,6 @@
#include "ActiveDOMObject.h"
#include "DOMIsoSubspaces.h"
-#include "Document.h"
#include "JSDOMAttribute.h"
#include "JSDOMBinding.h"
#include "JSDOMConstructorNotConstructable.h"
@@ -31,7 +30,6 @@
#include "JSDOMWrapperCache.h"
#include "JSTestSubObj.h"
#include "ScriptExecutionContext.h"
-#include "Settings.h"
#include "WebCoreJSClientData.h"
#include <_javascript_Core/FunctionPrototype.h>
#include <_javascript_Core/HeapAnalyzer.h>
@@ -131,7 +129,7 @@
static_assert(!std::is_base_of<ActiveDOMObject, TestEnabledForContext>::value, "Interface is not marked as [ActiveDOMObject] even though implementation class subclasses ActiveDOMObject.");
- if ((downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingEnabled() && TestSubObjEnabledForContext::enabledForContext(*jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())))
+ if ((jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled && TestSubObjEnabledForContext::enabledForContext(*jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())))
putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().TestSubObjEnabledForContextPublicName(), CustomGetterSetter::create(vm, jsTestEnabledForContext_TestSubObjEnabledForContextConstructor, setJSTestEnabledForContext_TestSubObjEnabledForContextConstructor), attributesForStructure(static_cast<unsigned>(JSC::PropertyAttribute::DontEnum)));
}
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInheritedDictionary.cpp (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInheritedDictionary.cpp 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInheritedDictionary.cpp 2020-12-15 16:45:34 UTC (rev 270842)
@@ -21,7 +21,6 @@
#include "config.h"
#include "JSTestInheritedDictionary.h"
-#include "Document.h"
#include "JSDOMConvertBoolean.h"
#include "JSDOMConvertCallbacks.h"
#include "JSDOMConvertNumbers.h"
@@ -28,7 +27,7 @@
#include "JSDOMConvertStrings.h"
#include "JSDOMGlobalObject.h"
#include "JSVoidCallback.h"
-#include "Settings.h"
+#include "ScriptExecutionContext.h"
#include <_javascript_Core/JSCInlines.h>
#include <_javascript_Core/ObjectConstructor.h>
@@ -199,7 +198,7 @@
auto partialStringMemberValue = toJS<IDLDOMString>(lexicalGlobalObject, IDLDOMString::extractValueFromNullable(dictionary.partialStringMember));
result->putDirect(vm, JSC::Identifier::fromString(vm, "partialStringMember"), partialStringMemberValue);
}
- if (downcast<Document>(jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext()->settingsValues().testSettingEnabled) {
if (!IDLDOMString::isNullValue(dictionary.partialStringMemberWithEnabledBySetting)) {
auto partialStringMemberWithEnabledBySettingValue = toJS<IDLDOMString>(lexicalGlobalObject, IDLDOMString::extractValueFromNullable(dictionary.partialStringMemberWithEnabledBySetting));
result->putDirect(vm, JSC::Identifier::fromString(vm, "partialStringMemberWithEnabledBySetting"), partialStringMemberWithEnabledBySettingValue);
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp 2020-12-15 16:45:34 UTC (rev 270842)
@@ -26,7 +26,6 @@
#include "ActiveDOMObject.h"
#include "DOMIsoSubspaces.h"
-#include "Document.h"
#include "HTMLNames.h"
#include "JSDOMAttribute.h"
#include "JSDOMBinding.h"
@@ -40,7 +39,6 @@
#include "JSTestNode.h"
#include "JSTestObj.h"
#include "ScriptExecutionContext.h"
-#include "Settings.h"
#include "TestSupplemental.h"
#include "WebCoreJSClientData.h"
#include <_javascript_Core/BuiltinNames.h>
@@ -454,7 +452,7 @@
reifyStaticProperties(vm, JSTestInterface::info(), JSTestInterfacePrototypeTableValues, *this);
bool hasDisabledRuntimeProperties = false;
#if ENABLE(Condition22) || ENABLE(Condition23)
- if (!downcast<Document>(jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (!jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->settingsValues().testSettingEnabled) {
hasDisabledRuntimeProperties = true;
auto propertyName = Identifier::fromString(vm, reinterpret_cast<const LChar*>("mixinSettingsConditionalOperation"), strlen("mixinSettingsConditionalOperation"));
VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable);
Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestStandaloneDictionary.cpp (270841 => 270842)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestStandaloneDictionary.cpp 2020-12-15 16:40:41 UTC (rev 270841)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestStandaloneDictionary.cpp 2020-12-15 16:45:34 UTC (rev 270842)
@@ -24,7 +24,6 @@
#include "JSTestStandaloneDictionary.h"
-#include "Document.h"
#include "JSDOMConvertBoolean.h"
#include "JSDOMConvertCallbacks.h"
#include "JSDOMConvertNullable.h"
@@ -33,7 +32,7 @@
#include "JSDOMConvertUnion.h"
#include "JSDOMGlobalObject.h"
#include "JSVoidCallback.h"
-#include "Settings.h"
+#include "ScriptExecutionContext.h"
#include <_javascript_Core/JSCInlines.h>
#include <_javascript_Core/JSString.h>
#include <_javascript_Core/ObjectConstructor.h>
@@ -290,7 +289,7 @@
}
#endif
#if ENABLE(Conditional13) || ENABLE(Conditional14)
- if (downcast<Document>(jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext())->settings().testSettingEnabled()) {
+ if (jsCast<JSDOMGlobalObject*>(&globalObject)->scriptExecutionContext()->settingsValues().testSettingEnabled) {
if (!IDLDOMString::isNullValue(dictionary.partialStringMemberWithEnabledBySetting)) {
auto partialStringMemberWithEnabledBySettingValue = toJS<IDLDOMString>(lexicalGlobalObject, IDLDOMString::extractValueFromNullable(dictionary.partialStringMemberWithEnabledBySetting));
result->putDirect(vm, JSC::Identifier::fromString(vm, "partialStringMemberWithEnabledBySetting"), partialStringMemberWithEnabledBySettingValue);