Float integrity bugfix (#27224)

Stacked on #27223

When a script resource adopts certain props from a preload for that
resource the integrity prop was incorrectly getting assinged to the
referrerPolicy prop instead. This is now fixed.
This commit is contained in:
Josh Story
2023-08-14 10:10:24 -07:00
committed by GitHub
parent 2b8c5e28bd
commit fdbdea8db2
@@ -2872,7 +2872,7 @@ function adoptPreloadPropsForScript(
if (scriptProps.referrerPolicy == null)
scriptProps.referrerPolicy = preloadProps.referrerPolicy;
if (scriptProps.integrity == null)
scriptProps.referrerPolicy = preloadProps.integrity;
scriptProps.integrity = preloadProps.integrity;
}
type KeyedTagCache = Map<string, Array<Element>>;