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
rather than window.postMessage page. Sorry for that.
new URL(dataurl).origin returns string "null".
But postMessage doesn't allow string "null" as origin.
Real null or undefined value will be considered as empty origin argument, then postMessage will use current origin, and dataurl will never receive any.
I see, I would not be opposed to a single line addition that says "note that data URLs have opaque origins, so to send data to a context with a data URL, you cannot specify the target origin."
Josh-Cena
removed
the
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
label
Sep 26, 2024
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
What specific section or headline is this issue about?
Security concerns
What information was incorrect, unhelpful, or incomplete?
What did you expect to see?
Add
data:
, I guess?I tried with iframe.src=dataurl, and I realized I need
"*"
.Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/api/window/postmessage
The text was updated successfully, but these errors were encountered: