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)
- "Web-based protocol handlers" should not be a subpage of `navigator.registerProtocolHandler` HOT 7
- Next/Subsequent Sibling Selectors should have examples of how to select Previous/Preceeding elements HOT 1
- feat: complete `events.Event` docs
- mention that `gl.clear(gl.DEPTH_BUFFER_BIT)` has no effect when `gl.depthMask()` has been set to `false`
- Ambiguous wording HOT 2
- colspan="2" attribute on the tfoot td dont match expected results as presented on the image of the table rendered. HOT 2
- Add prominent note to `FontFaceSet.check()` about non-existent fonts
- Update Angular guide for v18
- Event pages: claim (or imply) that onXYZ and addEventListener are equivalent but they are not HOT 1
- Spelling of color/colour doesn't match spelling in Webextensions Examples HOT 3
- {Element,Document}: securitypolicyviolation event: wrong claim about "you can't assign a handler to the property until the elements have been loaded"
- Misleading Explanation of Single-Value Syntax for `transform-origin` HOT 3
- Small mistake for value is not updated in code example HOT 2
- Typo in v129 release notes
- 415 response should use Accept-Post not Accept HOT 1
- [WebAPI]: Unship webgl.drawingBufferColorSpace behind pref HOT 1
- [CSS] css.properties.hyphens - language_czech and language_slovak HOT 1
- Link address error HOT 1
- `Content-type` -> `Content-Type` casing errata HOT 2
- Slightly misleading example in DOMTokenList: remove() method
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.