You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 7, 2022. It is now read-only.
In packages/editor/src/components/blockViews/EmbedView/embedViews/PreviewView/useWebsiteDocumentStatus.ts, We use the following code to determine whether the iframe has loaded successfully:
For sites like figma, which are based on canvas rather than dom, this can be a misjudgement.
But the fact is that the contentWindow is not available for cross-origin frames.
To Reproduce
Create a Embed Block in Preview mode, and set url to https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Ffile%2FRyaabEPkCD9l72OwwcNeSl%2FWeb-UI---C-Page%3Fnode-id%3D2876%253A189515
Describe the bug
In
packages/editor/src/components/blockViews/EmbedView/embedViews/PreviewView/useWebsiteDocumentStatus.ts
, We use the following code to determine whether the iframe has loaded successfully:For sites like figma, which are based on canvas rather than dom, this can be a misjudgement.But the fact is that the contentWindow is not available for cross-origin frames.
To Reproduce
https://www.figma.com/embed?embed_host=share&url=https%3A%2F%2Fwww.figma.com%2Ffile%2FRyaabEPkCD9l72OwwcNeSl%2FWeb-UI---C-Page%3Fnode-id%3D2876%253A189515
Expected behavior
No response
Additional context
No response
https://stackoverflow.com/questions/375710/detect-failure-to-load-contents-of-an-iframe
Logs/tracebacks
No response
The text was updated successfully, but these errors were encountered: