Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

98
Views
postMessage has different behavior in browsers

I have the following files:

a.html

<p id="p1">a.html</p>
<iframe src="b.html"></iframe> <!-- we have a realm here -->
<script>
  frames[0].postMessage("some data", "*");
</script>

b.html

<p id="p1">b.html</p>
<script>
  window.addEventListener("message", (event) => {
    console.log("event:", event);
  });
</script>

In the google chrome I don't see console.log message from b.html (I know what I should switch console tab for that), in the same moment in the firefox I see message. What's the matter?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!