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

218
Views
Iframes in opened in new tab blocked from top level navigation

I'm confused about how the top-level browsing context works in chrome. As per this conversation, an opened window (C in the diagram from the link) has a top-level browsing context. I’ve been working on a similar setup. window-iframe-snadbox-diagram

I have an iframe(B) in window(A). Scripts in iframe(B) open a new window(C), which I assume to have a top-level browsing context.

If I am to include another iframe(D) in the opened window(C), which is not sandboxed at all, the content in the iframe should be able to perform top-level navigation in the opened page(C).

This behavior is in chrome, safari, and firefox and the top-level navigation requires the sandbox flags to be set on both iframes B and D. Can someone explain why these flags are required on iframe B even when B is not trying to do top-level navigation and top-level navigation done by D does not affect A?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Because it would require allow_top_navigation to be special cased, rather than being consistent with all the other sandbox permissions. There probably isn't a sufficiently good use case to justify such special casing.

about 4 years ago · Juan Pablo Isaza Report
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!