In the same spirit of improving how a Web #app can share the content of another, the #WebRTC Working Groups recently released the Viewport Capture #API. It provides a secured approach to sharing the content of a browser tab #timetogiveinput
This tweet is unavailable

Jun 1, 2022 · 12:48 PM UTC

1
1
2
By default, sharing the content of a browser tab (as already allowed via the generic screen sharing capabilities provided by 'getDisplayMedia') can be risky...
1
... since it potentially weakens the cross-origin protections that prevent a #Website to read the user-customized version of another Web site (think evil.example reading bank.example) w3c.github.io/mediacapture-s…
2
This can be mitigated by browsers discouraging tab capture (but that goes against the goal of making the Web as widely useful as possible). Viewport Capture proposes an alt approach where a browser tab can only be captured if it respects well-defined cross-origin characteristics
1