Skip to content

Commit

Permalink
Float integrity bugfix (facebook#27224)
Browse files Browse the repository at this point in the history
Stacked on facebook#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.
  • Loading branch information
gnoff committed Aug 14, 2023
1 parent 5ea1397 commit 0fb5b61
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>>;
Expand Down

0 comments on commit 0fb5b61

Please sign in to comment.