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

143
Views
Does Firefox say we can capture iframe with Screen Capture API?

After reading https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capture_API/Using_Screen_Capture I came across this statement

In order to function when Feature Policy is enabled, you will need the display-capture permission. This can be done using the Feature-Policy HTTP header or—if you're using the Screen Capture API in an , the element's allow attribute.

For example, this line in the HTTP headers will enable Screen Capture API for the document and any embedded elements that are loaded from the same origin:

Feature-Policy: display-capture 'self' If you're performing screen capture within an , you can request permission just for that frame, which is clearly more secure than requesting a more general permission:

<iframe src="https://google.net" allow="display-capture">
</iframe>

Does this mean that we can capture a video/audio stream of a given iframe on a page if we are able to modify the allow attribute? will it work for even cross origin?

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!