Skip to content

Commit

Permalink
Float integrity bugfix (#27224)
Browse files Browse the repository at this point in the history
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.

DiffTrain build for [0fb5b61](0fb5b61)
  • Loading branch information
gnoff committed Aug 14, 2023
1 parent 9f4e34b commit d03f8fb
Show file tree
Hide file tree
Showing 15 changed files with 38 additions and 38 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5ea1397b2b62875dfb521cf8de0efcc15d0df797
0fb5b61ac6951a492242618e4ace6c1826335efc
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

var ReactVersion = "18.3.0-www-modern-2f3a20a9";
var ReactVersion = "18.3.0-www-modern-1d530573";

// ATTENTION
// When adding new symbols to this file,
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}

var ReactVersion = "18.3.0-www-modern-806e9de8";
var ReactVersion = "18.3.0-www-modern-3e4bb1ea";

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactART-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -9759,7 +9759,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "18.3.0-www-modern-30fe9e24",
version: "18.3.0-www-modern-c25ea5bc",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1283 = {
Expand Down Expand Up @@ -9790,7 +9790,7 @@ var internals$jscomp$inline_1283 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-modern-30fe9e24"
reconcilerVersion: "18.3.0-www-modern-c25ea5bc"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1284 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -33940,7 +33940,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-classic-71823fba";
var ReactVersion = "18.3.0-www-classic-e1c2495a";

function createPortal$1(
children,
Expand Down Expand Up @@ -44162,7 +44162,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
if (scriptProps.referrerPolicy == null)
scriptProps.referrerPolicy = preloadProps.referrerPolicy;
if (scriptProps.integrity == null)
scriptProps.referrerPolicy = preloadProps.integrity;
scriptProps.integrity = preloadProps.integrity;
}

var tagCaches = null;
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactDOM-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -33785,7 +33785,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-modern-806e9de8";
var ReactVersion = "18.3.0-www-modern-3e4bb1ea";

function createPortal$1(
children,
Expand Down Expand Up @@ -44672,7 +44672,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
if (scriptProps.referrerPolicy == null)
scriptProps.referrerPolicy = preloadProps.referrerPolicy;
if (scriptProps.integrity == null)
scriptProps.referrerPolicy = preloadProps.integrity;
scriptProps.integrity = preloadProps.integrity;
}

var tagCaches = null;
Expand Down
8 changes: 4 additions & 4 deletions compiled/facebook-www/ReactDOM-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15562,7 +15562,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
null == scriptProps.referrerPolicy &&
(scriptProps.referrerPolicy = preloadProps.referrerPolicy);
null == scriptProps.integrity &&
(scriptProps.referrerPolicy = preloadProps.integrity);
(scriptProps.integrity = preloadProps.integrity);
}
var tagCaches = null;
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
Expand Down Expand Up @@ -16574,7 +16574,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1800 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-8e3efe62",
version: "18.3.0-www-classic-ac0b40a5",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2159 = {
Expand Down Expand Up @@ -16604,7 +16604,7 @@ var internals$jscomp$inline_2159 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-classic-8e3efe62"
reconcilerVersion: "18.3.0-www-classic-ac0b40a5"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2160 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -16832,4 +16832,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-classic-8e3efe62";
exports.version = "18.3.0-www-classic-ac0b40a5";
8 changes: 4 additions & 4 deletions compiled/facebook-www/ReactDOM-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -15793,7 +15793,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
null == scriptProps.referrerPolicy &&
(scriptProps.referrerPolicy = preloadProps.referrerPolicy);
null == scriptProps.integrity &&
(scriptProps.referrerPolicy = preloadProps.integrity);
(scriptProps.integrity = preloadProps.integrity);
}
var tagCaches = null;
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
Expand Down Expand Up @@ -16104,7 +16104,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1759 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-30fe9e24",
version: "18.3.0-www-modern-c25ea5bc",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2123 = {
Expand Down Expand Up @@ -16135,7 +16135,7 @@ var internals$jscomp$inline_2123 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-modern-30fe9e24"
reconcilerVersion: "18.3.0-www-modern-c25ea5bc"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2124 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -16291,4 +16291,4 @@ exports.unstable_createEventHandle = function (type, options) {
return eventHandle;
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-modern-30fe9e24";
exports.version = "18.3.0-www-modern-c25ea5bc";
8 changes: 4 additions & 4 deletions compiled/facebook-www/ReactDOM-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -16336,7 +16336,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
null == scriptProps.referrerPolicy &&
(scriptProps.referrerPolicy = preloadProps.referrerPolicy);
null == scriptProps.integrity &&
(scriptProps.referrerPolicy = preloadProps.integrity);
(scriptProps.integrity = preloadProps.integrity);
}
var tagCaches = null;
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
Expand Down Expand Up @@ -17348,7 +17348,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1885 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-726d746c",
version: "18.3.0-www-classic-dfca71a7",
rendererPackageName: "react-dom"
};
(function (internals) {
Expand Down Expand Up @@ -17392,7 +17392,7 @@ var devToolsConfig$jscomp$inline_1885 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-classic-726d746c"
reconcilerVersion: "18.3.0-www-classic-dfca71a7"
});
assign(Internals, {
ReactBrowserEventEmitter: {
Expand Down Expand Up @@ -17607,7 +17607,7 @@ exports.unstable_renderSubtreeIntoContainer = function (
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-classic-726d746c";
exports.version = "18.3.0-www-classic-dfca71a7";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
8 changes: 4 additions & 4 deletions compiled/facebook-www/ReactDOM-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -16561,7 +16561,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
null == scriptProps.referrerPolicy &&
(scriptProps.referrerPolicy = preloadProps.referrerPolicy);
null == scriptProps.integrity &&
(scriptProps.referrerPolicy = preloadProps.integrity);
(scriptProps.integrity = preloadProps.integrity);
}
var tagCaches = null;
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
Expand Down Expand Up @@ -16872,7 +16872,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1844 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-ef47cb47",
version: "18.3.0-www-modern-1ea20273",
rendererPackageName: "react-dom"
};
(function (internals) {
Expand Down Expand Up @@ -16917,7 +16917,7 @@ var devToolsConfig$jscomp$inline_1844 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-modern-ef47cb47"
reconcilerVersion: "18.3.0-www-modern-1ea20273"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = function (children, container) {
Expand Down Expand Up @@ -17060,7 +17060,7 @@ exports.unstable_createEventHandle = function (type, options) {
return eventHandle;
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-modern-ef47cb47";
exports.version = "18.3.0-www-modern-1ea20273";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactDOMTesting-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -34557,7 +34557,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-classic-40f533c2";
var ReactVersion = "18.3.0-www-classic-f1396fc3";

function createPortal$1(
children,
Expand Down Expand Up @@ -44911,7 +44911,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
if (scriptProps.referrerPolicy == null)
scriptProps.referrerPolicy = preloadProps.referrerPolicy;
if (scriptProps.integrity == null)
scriptProps.referrerPolicy = preloadProps.integrity;
scriptProps.integrity = preloadProps.integrity;
}

var tagCaches = null;
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactDOMTesting-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -34402,7 +34402,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-modern-9b29b239";
var ReactVersion = "18.3.0-www-modern-abaab246";

function createPortal$1(
children,
Expand Down Expand Up @@ -45421,7 +45421,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
if (scriptProps.referrerPolicy == null)
scriptProps.referrerPolicy = preloadProps.referrerPolicy;
if (scriptProps.integrity == null)
scriptProps.referrerPolicy = preloadProps.integrity;
scriptProps.integrity = preloadProps.integrity;
}

var tagCaches = null;
Expand Down
8 changes: 4 additions & 4 deletions compiled/facebook-www/ReactDOMTesting-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15891,7 +15891,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
null == scriptProps.referrerPolicy &&
(scriptProps.referrerPolicy = preloadProps.referrerPolicy);
null == scriptProps.integrity &&
(scriptProps.referrerPolicy = preloadProps.integrity);
(scriptProps.integrity = preloadProps.integrity);
}
var tagCaches = null;
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
Expand Down Expand Up @@ -16903,7 +16903,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1829 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-1ae2a944",
version: "18.3.0-www-classic-72ab259a",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2193 = {
Expand Down Expand Up @@ -16933,7 +16933,7 @@ var internals$jscomp$inline_2193 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-classic-1ae2a944"
reconcilerVersion: "18.3.0-www-classic-72ab259a"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2194 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -17312,4 +17312,4 @@ exports.unstable_renderSubtreeIntoContainer = function (
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-classic-1ae2a944";
exports.version = "18.3.0-www-classic-72ab259a";
8 changes: 4 additions & 4 deletions compiled/facebook-www/ReactDOMTesting-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -16177,7 +16177,7 @@ function adoptPreloadPropsForScript(scriptProps, preloadProps) {
null == scriptProps.referrerPolicy &&
(scriptProps.referrerPolicy = preloadProps.referrerPolicy);
null == scriptProps.integrity &&
(scriptProps.referrerPolicy = preloadProps.integrity);
(scriptProps.integrity = preloadProps.integrity);
}
var tagCaches = null;
function getHydratableHoistableCache(type, keyAttribute, ownerDocument) {
Expand Down Expand Up @@ -16488,7 +16488,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1788 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-2f3a20a9",
version: "18.3.0-www-modern-1d530573",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2157 = {
Expand Down Expand Up @@ -16519,7 +16519,7 @@ var internals$jscomp$inline_2157 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-www-modern-2f3a20a9"
reconcilerVersion: "18.3.0-www-modern-1d530573"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2158 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -16826,4 +16826,4 @@ exports.unstable_createEventHandle = function (type, options) {
return eventHandle;
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-www-modern-2f3a20a9";
exports.version = "18.3.0-www-modern-1d530573";
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactTestRenderer-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -24323,7 +24323,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-classic-40f533c2";
var ReactVersion = "18.3.0-www-classic-f1396fc3";

// Might add PROFILE later.

Expand Down

0 comments on commit d03f8fb

Please sign in to comment.