Skip to content

Commit 48b687f

Browse files
authored
[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 ```
1 parent 9b1423c commit 48b687f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/shared/forks/ReactFeatureFlags.www-dynamic.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export const replayFailedUnitOfWorkWithInvokeGuardedCallback = __DEV__;
5151
// TODO: These flags are hard-coded to the default values used in open source.
5252
// Update the tests so that they pass in either mode, then set these
5353
// to __VARIANT__.
54+
export const enableTrustedTypesIntegration = false;
5455
export const disableSchedulerTimeoutBasedOnReactExpirationTime = false;
5556
export const disableNativeComponentFrames = false;
5657
// You probably *don't* want to add more hardcoded ones.

packages/shared/forks/ReactFeatureFlags.www.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ const dynamicFeatureFlags: DynamicFeatureFlags = require('ReactFeatureFlags');
1616

1717
export const {
1818
disableInputAttributeSyncing,
19+
enableTrustedTypesIntegration,
1920
disableSchedulerTimeoutBasedOnReactExpirationTime,
2021
warnAboutSpreadingKeyToJSX,
2122
replayFailedUnitOfWorkWithInvokeGuardedCallback,
@@ -55,7 +56,6 @@ export const enableUseMemoCacheHook = true;
5556
export const enableUseEffectEventHook = true;
5657
export const enableHostSingletons = true;
5758
export const enableClientRenderFallbackOnTextMismatch = false;
58-
export const enableTrustedTypesIntegration = false;
5959

6060
// Logs additional User Timing API marks for use with an experimental profiling tool.
6161
export const enableSchedulingProfiler: boolean =

0 commit comments

Comments
 (0)