Comments (2)
@Ashish-CodeJourney i thank you. i added a "review".
from content.
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
What specific section or headline is this issue about?
multiple
What information was incorrect, unhelpful, or incomplete?
targetOrigin Optional
Specifies what the origin of this window must be for the event to be dispatched,"this"
Any window (including, for example, http://evil.example.com) can send a message to any other window
"window"
What did you expect to see?
depending on what is really meant, I expected to see "this" replaced by "the intended recipient" and "window" replaced by "contentWindow within the iframe hierarchy from top to every iframe below of the current document"
Do you have any supporting links, references, or citations?
no
Do you have anything more you want to share?
"window": can a post occur to another tab? another users PC's tab? a server? any browser's having the same document open?
how is targetOrigin safety? If the iframe src can be changed away while posting to its contentWindow or the to-be-sender's page is copied and run on a malicious host, that host can simply replace the text inside the JavaScript code of postMessage.
postMessage operates on a contentWindow already obtained. It is not BroadcastChannel.
MDN metadata
Page report details
Raised a PR related to the same Please check
#34114
Check Preview here
https://pr34114.content.dev.mdn.mozit.cloud/en-US/docs/Web/API/Window/postMessage
from content.
Related Issues (20)
- Mdn/content
- ByteLengthQueuingStrategy constructor syntax should match guidelines HOT 3
- Missing `view-transition-class` content HOT 1
- Setting body element color doesn't override the default anchor tag color HOT 2
- [Web API] Implement Declarative ShadowDOM serialization HOT 1
- Ambiguous explanation of how a Block Formatting Context is created in the given example.
- webRequest.BlockingResponse has an old reference to a resolved bug
- Remove 2 links to yari-demos.prod.mdn.mozit.cloud HOT 1
- tspan example does not display correctly in Safari Version 16.3 (18614.4.6.1.6) on MacOS Ventura 13.2.1 (22D68) HOT 2
- font-stretch renamed to font-weight
- calc-constant renamed to calc-keyword HOT 1
- Additional device on use of incognito key HOT 1
- Live examples using window.open are broken HOT 4
- [css] `color-mix()` doesn't explain what the purpose is of the `color space` argument HOT 3
- Website develop trainig
- Incorrect explanation of what `this` is HOT 1
- Availability of _execute_page_action in Safari
- wrong output HOT 1
- HTTP Spec was updated in 2022: RFC 9110+
- developer.mozilla.org/en-US/blog/rss.xml
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from content.