Skip to content

Add the iframe credentialless prop#35967

Open
jamesbvaughan wants to merge 1 commit intofacebook:mainfrom
jamesbvaughan:james/iframe-credentialless
Open

Add the iframe credentialless prop#35967
jamesbvaughan wants to merge 1 commit intofacebook:mainfrom
jamesbvaughan:james/iframe-credentialless

Conversation

@jamesbvaughan
Copy link
Contributor

Summary

This adds support for the iframe credentialless attribute. This is a (currently experimental) attribute that is useful for running iframes in pages using cross-origin isolation.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/IFrame_credentialless

The current workaround in React projects is to use credentialless="" (plus a // @ts-expect-error comment if you're using TypeScript).

How did you test this change?

I updated the automated tests and ran them. I'm having trouble with my local React build so I haven't yet been able to test this with my project, but I'll update this PR description once I have.

@react-sizebot
Copy link

Comparing: 4610359...5901780

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB +0.05% 1.88 kB 1.88 kB
oss-stable/react-dom/cjs/react-dom-client.production.js = 611.79 kB 611.81 kB +0.01% 108.12 kB 108.13 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB = 1.88 kB 1.88 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js = 677.72 kB 677.75 kB = 119.08 kB 119.09 kB
facebook-www/ReactDOM-prod.classic.js = 697.67 kB 697.70 kB = 122.58 kB 122.59 kB
facebook-www/ReactDOM-prod.modern.js = 687.98 kB 688.01 kB = 120.96 kB 120.97 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 5901780

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants