[trusted types][www] Add enableTrustedTypesIntegration flag back in (#26016)
## Summary The flag was first added in #16157 and was rolled out to employees in D17430095. #25997 removed this flag because it wasn't dynamically set to a value in www. The www side was mistakenly removed in D41851685 due to deprecation of a TypedJSModule but we still want to keep this flag, so let's add it back in + add a GK on the www side to match the previous rollout. See D42574435 for the dynamic value change in www ## How did you test this change? ``` yarn test yarn test --prod ```
an onion committed
Jan 30, 2023 at 10:26 UTC
48b687fc95a172cec8f305312a27d105e5719581
2 files changed
+2
-1
packages/shared/forks/ReactFeatureFlags.www-dynamic.js
+1
@@ -51,6 +51,7 @@ export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
51
// TODO: These flags are hard-coded to the default values used in open source.
52
// Update the tests so that they pass in either mode, then set these
53
// to __VARIANT__.
54
+export const enableTrustedTypesIntegration = false;
55
export const disableSchedulerTimeoutBasedOnReactExpirationTime = false;
56
export const disableNativeComponentFrames = false;
57
// You probably *don't* want to add more hardcoded ones.
packages/shared/forks/ReactFeatureFlags.www.js
+1
-1
@@ -16,6 +16,7 @@ const dynamicFeatureFlags: DynamicFeatureFlags = require('ReactFeatureFlags');
16
17
export const {
18
disableInputAttributeSyncing,
19
+ enableTrustedTypesIntegration,
20
disableSchedulerTimeoutBasedOnReactExpirationTime,
21
warnAboutSpreadingKeyToJSX,
22
replayFailedUnitOfWorkWithInvokeGuardedCallback,
@@ -55,7 +56,6 @@ export const enableUseMemoCacheHook = true;
56
export const enableUseEffectEventHook = true;
57
export const enableHostSingletons = true;
58
export const enableClientRenderFallbackOnTextMismatch = false;
58
-export const enableTrustedTypesIntegration = false;
59
60
// Logs additional User Timing API marks for use with an experimental profiling tool.
61
export const enableSchedulingProfiler: boolean =