Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp (290802 => 290803)
--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp 2022-03-04 01:06:26 UTC (rev 290802)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestGlobalObject.cpp 2022-03-04 01:08:25 UTC (rev 290803)
@@ -260,16 +260,15 @@
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 55, -1 },
+ { 54, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 49, -1 },
{ -1, -1 },
- { 64, -1 },
{ -1, -1 },
+ { 63, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
@@ -282,6 +281,7 @@
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
+ { -1, -1 },
{ 35, -1 },
{ -1, -1 },
{ -1, -1 },
@@ -288,7 +288,7 @@
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 68, -1 },
+ { 67, -1 },
{ 13, 261 },
{ -1, -1 },
{ -1, -1 },
@@ -332,7 +332,7 @@
{ -1, -1 },
{ -1, -1 },
{ 30, -1 },
- { 57, -1 },
+ { 56, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
@@ -341,7 +341,7 @@
{ -1, -1 },
{ 9, 257 },
{ -1, -1 },
- { 59, -1 },
+ { 58, -1 },
{ 19, -1 },
{ -1, -1 },
{ -1, -1 },
@@ -387,7 +387,7 @@
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 54, -1 },
+ { 53, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
@@ -405,10 +405,10 @@
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
+ { 64, -1 },
+ { -1, -1 },
{ 65, -1 },
{ -1, -1 },
- { 66, -1 },
- { -1, -1 },
{ 27, -1 },
{ 32, -1 },
{ -1, -1 },
@@ -422,7 +422,7 @@
{ -1, -1 },
{ 15, 260 },
{ -1, -1 },
- { 60, -1 },
+ { 59, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
@@ -435,7 +435,7 @@
{ -1, -1 },
{ 16, 256 },
{ -1, -1 },
- { 63, -1 },
+ { 62, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
@@ -467,7 +467,7 @@
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 58, -1 },
+ { 57, -1 },
{ -1, -1 },
{ 1, -1 },
{ -1, -1 },
@@ -476,10 +476,10 @@
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { 50, 264 },
+ { 49, 264 },
{ 7, 263 },
{ -1, -1 },
- { 61, -1 },
+ { 60, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
@@ -496,13 +496,13 @@
{ -1, -1 },
{ -1, -1 },
{ 3, -1 },
+ { 51, -1 },
+ { -1, -1 },
{ 52, -1 },
{ -1, -1 },
- { 53, -1 },
{ -1, -1 },
{ -1, -1 },
{ -1, -1 },
- { -1, -1 },
{ 17, -1 },
{ 23, 259 },
{ 26, 265 },
@@ -511,10 +511,10 @@
{ 40, -1 },
{ 42, -1 },
{ 44, -1 },
- { 51, -1 },
- { 56, -1 },
- { 62, -1 },
- { 67, -1 },
+ { 50, -1 },
+ { 55, -1 },
+ { 61, -1 },
+ { 66, -1 },
};
@@ -577,7 +577,6 @@
{ "TestNamedSetterWithLegacyOverrideBuiltIns", static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestGlobalObject_TestNamedSetterWithLegacyOverrideBuiltInsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
{ "TestNamedSetterWithLegacyUnforgeableProperties", static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestGlobalObject_TestNamedSetterWithLegacyUnforgeablePropertiesConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
{ "TestNamedSetterWithLegacyUnforgeablePropertiesAndLegacyOverrideBuiltIns", static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestGlobalObject_TestNamedSetterWithLegacyUnforgeablePropertiesAndLegacyOverrideBuiltInsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
- { "TestInterfaceName", static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestGlobalObject_TestInterfaceNameConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
#if ENABLE(ConditionDerived)
{ "TestOperationConditional", static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsTestGlobalObject_TestOperationConditionalConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } },
#else
@@ -607,7 +606,7 @@
{ "regularOperation", static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsTestGlobalObjectInstanceFunction_regularOperation), (intptr_t) (1) } },
};
-static const HashTable JSTestGlobalObjectTable = { 69, 255, true, JSTestGlobalObject::info(), JSTestGlobalObjectTableValues, JSTestGlobalObjectTableIndex };
+static const HashTable JSTestGlobalObjectTable = { 68, 255, true, JSTestGlobalObject::info(), JSTestGlobalObjectTableValues, JSTestGlobalObjectTableIndex };
/* Hash table for constructor */
static const HashTableValue JSTestGlobalObjectConstructorTableValues[] =
@@ -677,6 +676,8 @@
if (RuntimeEnabledFeatures::sharedFeatures().testFeatureEnabled())
putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().enabledAtRuntimeAttributePublicName(), CustomGetterSetter::create(vm, jsTestGlobalObject_enabledAtRuntimeAttribute, setJSTestGlobalObject_enabledAtRuntimeAttribute), attributesForStructure(static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor)));
#endif
+ if (jsCast<JSDOMGlobalObject*>(globalObject())->scriptExecutionContext()->isSecureContext())
+ putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().TestInterfaceNamePublicName(), CustomGetterSetter::create(vm, jsTestGlobalObject_TestInterfaceNameConstructor, nullptr), attributesForStructure(static_cast<unsigned>(JSC::PropertyAttribute::DontEnum)));
putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().publicAndPrivateAttributePrivateName(), CustomGetterSetter::create(vm, jsTestGlobalObject_publicAndPrivateAttribute, nullptr), attributesForStructure(JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly));
#if ENABLE(TEST_FEATURE)
putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().publicAndPrivateConditionalAttributePrivateName(), CustomGetterSetter::create(vm, jsTestGlobalObject_publicAndPrivateConditionalAttribute, nullptr), attributesForStructure(JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly));