A webrtc shield extension is a tiny program with two decisions hidden inside it: which JavaScript world its code runs in, and which frames it is allowed to touch. Get either one wrong and the shield still installs, still shows an icon, still promises protection — while the page gathers exactly what it always did. We packaged four variants as real Manifest V3 extensions and ran each against the same harness.
The result is a two-line story. One pattern — the one most tutorials copy — changed nothing at all. One covered the top frame and missed the iframe beside it. Only the flag most extensions never set covered both frames, and its effect is the bluntest instrument available: the constructor is gone, in every frame, and the page can tell.
A shield is code running somewhere; the somewhere decides everything.
measured
An extension does not inject into the page by default. A content script lands in an isolated JavaScript world: same document, same DOM, but a separate set of page-visible globals. Deleting window.RTCPeerConnection from there removes the extension's own copy of the property, not the page's. To touch the page's globals the manifest must declare world: MAIN — a single line that most published snippets, and evidently a share of shipping extensions, omit.
The second decision is frame scope. Chrome runs content scripts in the top document unless the manifest sets all_frames: true. Modern pages embed players, paywalls and verification widgets in iframes, and any of them can open a peer connection of its own.
Both defaults are quiet. There is no console warning, no install-time prompt, nothing in the extension's UI that says this shield covers one world and one frame. The user reads the description, installs, and the browser records two booleans nobody reviewed.
To measure those booleans we built four extensions that differ only in them: the tutorial pattern (isolated world, top frame), the corrected world with default frames, and the corrected world with all frames, next to an unmodified browser. Search results for web rtc shield land on this same shelf — the variants differ by one line of manifest each, so we priced that line.
| Configuration | Top frame | Same-origin iframe | What changed vs stock |
|---|---|---|---|
| No extension | 2 candidates: host + reflexive | 2 candidates: host + reflexive | reference run |
| Isolated world, top frame | 2 candidates, identical | 2 candidates, identical | nothing, 3 of 3 rounds |
| MAIN world, top frame only | constructor gone, 0 candidates | 2 candidates, public address intact | half, 3 of 3 rounds |
| MAIN world, all frames | constructor gone, 0 candidates | constructor gone, 0 candidates | both frames, 3 of 3 rounds |
The reference rows: an unmodified Chromium 158 gathered two candidates per frame in every round — a host line carrying a .local label and a server-reflexive line naming 14.155.235.106, the same public address across all twelve gathers. The isolated-world extension ran (we confirmed its script executed), and its rounds were byte-identical to the reference. Zero removed, zero altered, three of three.
That is the pattern behind a large share of quick answers: delete the constructor, ship the extension, promise a shield. The measurement says the page keeps its constructor, its STUN queries and its address.
The MAIN-world rows are where the manifest line earns its keep. With default frame scope the top frame lost its constructor — the probe threw a ReferenceError instead of opening a connection — while the same-origin iframe, one level down in the same document, gathered the full pair including the public address in three of three rounds.
Adding all_frames closed the gap: both frames lost the constructor in three of three rounds, and neither could open a peer connection. Two booleans, four outcomes, and the safe combination is the one that requires both lines to be set correctly.
Deletion leaves a fingerprint of its own. An untouched constructor stringifies to 46 characters containing native code; a deleted one is absent, and calling it throws rather than returning an object. A page that wants to distinguish shielded visitors needs one line: typeof RTCPeerConnection followed by a source check. The all-frames variant is therefore the most effective and the most visible at the same time.
Wrapping, the alternative mechanism measured in the shield mechanism comparison, trades that absence for code visible in the source: our filtered wrapper stringified to 537 characters and a relay wrapper to 85, neither native, and a connection made through a wrapper reports the wrapper as its own constructor.
The isolation result deserves its own sentence: the most common pattern produces a browser that behaves, byte for byte, like no shield at all. The user believes the address is hidden because the icon says so; the page sees a stock browser and a normal gather. This is worse than a visible shield, because visible measures get tested and silent ones do not.
For completeness: browser-level policy is a third route, and the prevention comparison found both restrictive values of Chrome's handling policy changed nothing observable in the gathered set. If you arrived from a search for webrtc shield chrome, that page holds the numbers.
First, verify on the wire, not the icon. Open the WebRTC leak test with the shield installed and read the candidate list: if a reflexive line names your address, whatever the panel claims, the address left the machine. Run it a second time on a page that embeds the test in an iframe — the configuration the measurement says most shields miss.
Second, ask the page what it sees. In the console, check whether RTCPeerConnection exists and what its source stringifies to. Absent, wrapped or native is the whole diagnosis, and each outcome corresponds to one row of the table above.
Third, decide what failure you can live with. Nothing-removed is not a shield, whatever it is called. Half-coverage protects the tab you look at and abandons the frame you forgot. All-frames deletion protects every frame and is detectable by any page that checks. If the requirement is calls that work plus an address that disagrees with the page, no shield variant delivers it — the honest options are a relay you control, as the prevention page argues, or an antidetect browser built around per-profile consistency.
The line of manifest that separates these outcomes costs nothing to set. It costs a leak to forget.
Running multi-account profiles where every tab, frame and world behaves identically? Extension-level shields leave exactly the per-profile variance fingerprint reviews catch.
Download RoxyBrowserRoxyBrowser manages WebRTC behaviour at the profile level instead of trusting a content script's two booleans.
Most likely because its code never ran next to the page. A content script without a world field runs in an isolated JavaScript world, where deleting window.RTCPeerConnection removes only the extension's own copy. We packaged that tutorial pattern as a real extension and ran it against an unmodified browser: across three rounds the candidate sets were identical, two rows per frame, the same public address on both. The page never felt a thing.
Only if the manifest asks for it. Chrome runs content scripts in the top frame unless the extension sets all_frames to true, and the same-origin iframe keeps its own constructor. In our run the top-frame shield deleted the constructor above and the iframe still gathered two candidates in all three rounds, the second naming the same public address. Adding the flag covered both frames in three of three rounds.
The deletion kind announces itself by absence: calling the removed constructor throws a ReferenceError instead of returning an object, and an untouched one stringifies to 46 characters containing native code. The wrapping kind leaks through its own code: our filtered wrapper stringified to 537 characters and a relay wrapper to 85, neither native, and a connection made through a wrapper reports the wrapper as its constructor. Either way one line of JavaScript separates a shielded browser from a stock one.
Not one we could observe. Chrome documents a WebRTC IP handling policy with two restrictive values, and when we forced both on a 2026-10-27 build the gathered set was byte-identical to the default across three rounds, while a feature flag run through the same harness did take effect — so the harness was not the problem. If you searched for a webrtc shield chrome setting, the honest answer is that the browser-level levers we measured either changed nothing or removed the protocol's usability along with the address.