Giter VIP home page Giter VIP logo

Comments (2)

u-an-i avatar u-an-i commented on July 20, 2024 1

@Ashish-CodeJourney i thank you. i added a "review".

from content.

Ashish-CodeJourney avatar Ashish-CodeJourney commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.