feat(container): gate WebRTC on a decision resolved before the product realm - #444
Merged
Conversation
…t realm An async permission request inside the product's own realm is forgeable, so the host bakes the decision in as a literal and a fresh grant only applies on the next load.
ERussel
reviewed
Aug 18, 2026
…very frame A main-frame-only container leaves any subframe with pristine fetch/WebSocket/RTCPeerConnection, and a product reaches one through an iframe in its own HTML, so the frame scope has to be API rather than documentation.
TarikGul
reviewed
Aug 18, 2026
TarikGul
reviewed
Aug 18, 2026
TarikGul
reviewed
Aug 18, 2026
TarikGul
reviewed
Aug 18, 2026
filvecchiato
enabled auto-merge
August 19, 2026 10:26
TarikGul
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Restores enforcement for
RemotePermission::WebRtc, which #399 left advertised but unenforced. ICE reaches an arbitrary host over UDP, so no rule list,shouldInterceptRequest, or CSP directive sees it — this is the one egress path with no out-of-realm enforcement point.RTCPeerConnectionunless it is an explicittrue. An async request from inside the product realm is forgeable (WebRTC gating #379), and removing the constructor leaves no reachable prototype to escape from. A fresh grant applies on the next load.forMainFrameOnly: false). A subframe had no container at all, soinnerHTML/document.write/srcdocreached a realm with pristinefetch/WebSocket/RTCPeerConnection. The bootstrap stays main-frame-only, so subframes fail closed.