A WebRTC leak prevent extension can be built three ways, and the three are not variations on one idea. One changes a browser policy that sits below the page. One edits the JavaScript objects the page uses. One edits the candidate stream on its way to a handler. On a leak test all three can look identical, because the test only prints what the page hands it, and the page is the thing being edited.
This page runs the three archetypes plus a control through one probe panel: sixteen Chromium launches, one STUN server, the same gather each time, and a readback that asks the browser twice, once through the candidate event and once through getStats. It also loads two kinds of subframe, because the manifest setting that decides which frames receive a content script decided more than the extension's own description implies.
Filtering events hides a candidate from the page's handler and not from the browser's own report, and the frame setting decides whether the filter runs at all.
measured
The policy archetype uses the privacy permission to set the IP handling policy, and the browser then decides for itself which candidates it may gather. It never touches JavaScript. The filter archetype injects a content script at document start, wraps the property and the listener route that deliver candidates, and drops the reflexive ones before a handler runs. The block archetype removes the constructor entirely, which stops the leak and breaks every site that needs a call.
A page cannot see the policy directly, and it can see the other two immediately. After a filter, the function that used to be native reports a different source length: 267 characters in our build against the 46 of the untouched original. After a block, the constructor type is undefined and the first touch throws. The third signal is quieter and more useful, and it is the readback this page turns on: whether the browser's own statistics still contain the address the filter just removed from the event.
| Configuration | Main frame events | Main frame readback | Subframe |
|---|---|---|---|
| No extension | host plus one reflexive | real address, 14.155.235.106 | same, unfiltered |
| Policy extension | none, 3 of 3 rounds | no reflexive entry | none, same as main |
| Filter, top frame only | host only, reflexive dropped | real address still returned | untouched script, full leak |
| Filter, all frames | host only, reflexive dropped | real address still returned | http covered, srcdoc not |
The control row sets the reference: two candidate events, one of them carrying the public address, and one matching reflexive entry in the statistics. The policy row is the only one that changes the count rather than the content, and it changes it in the main frame and the subframe together, because the decision is taken below both of them.
The two filter rows agree on the numbers that a typical leak test prints and disagree with the browser on the number it does not. Across every launch where a filter had applied to a frame, twelve frames in total, the statistics call still returned the reflexive candidate with the real address. Twelve out of twelve is not a race or an edge case; it is what an event-level filter can do by construction, because the statistics table is assembled by the ICE agent and the filter lives one layer above it.
It is also the archetype most extensions pick, for reasons that have nothing to do with effectiveness. A content script needs no permission beyond the host match, it works in any Chromium fork, and it produces a visible change in the settings panel. The policy route asks for the privacy permission, which reads as intrusive in a store listing, and the result is invisible by design. The incentive therefore points at the shape that any page can audit in one call.
| Where the page measures | Filter, top frame only | Filter, all frames on |
|---|---|---|
| Main frame | filtered, 5 of 5 runs | filtered, 5 of 5 runs |
| Subframe from an http URL | unprotected, 2 of 2 | covered, 2 of 2 |
| Subframe from srcdoc | unprotected, 5 of 5 | unprotected, 5 of 5 |
Top-frame-only injection is the manifest default, and it means what it says: a page that builds a frame and gathers inside it gets a script the extension never touched. In the five runs with that configuration, the subframe reported the untouched function and delivered the reflexive candidate in full, while the main frame looked clean. A leak test that only measures the top document would score that setup as protected.
Turning the setting on closes the ordinary case and not the special one. An http subframe received the injected script in both rounds once all frames was enabled, and the srcdoc frame did not, in any of the five tests that followed. The likely reason is that injection matches on a document URL, and a srcdoc frame has none of its own to match. Whatever the mechanism, the practical consequence is simple: a page needs one such frame, and the address is back.
The limit of this section is that it describes one browser build and one frame construction. Other frame types exist, and a vendor may inject through a different route that reaches more of them. What the numbers do support is the general rule, which is that the frame setting is part of the protection and should be verified rather than assumed.
For a profile that has to look like an ordinary browser behind a proxy, the policy archetype is the one that held in every frame we measured, and it is also the one that leaves the API intact, so a site that uses the API still runs. It can still lose a race: on this site's Chrome lever page the same policy leaked in one launch out of three when the extension installed after the page had started. Install it, restart the browser, then measure.
The filter archetype is worth running only with a readback check attached, and the check is two lines of script rather than a second extension. The block archetype trades the leak for a broken page, and a profile that cannot open a site which requires the API has a different problem than the one it started with.
To verify any of them, measure four things in order. Count the candidate events in the top document and confirm whether a reflexive one appears. Ask getStats for a reflexive entry and compare its address with what the events said. Create a srcdoc frame, gather inside it, and repeat both questions. Then read the source length of the listener function and confirm whether it still reports native. A setup that passes all four is doing what it claims; one that fails the second or third is hiding the candidate from the report and not from the browser.
An extension that filters events does not change what the profile is, and the profile is what a page reads when it asks the browser directly.
Download RoxyBrowserRoxyBrowser applies the WebRTC setting at the profile level and pairs it with the proxy that profile routes through, rather than editing objects inside the page. Windows, macOS and Linux builds from roxybrowser.com.
The archetype that changes the browser policy below the page, not the one that edits script events. In three launches the policy extension left zero candidates in the main frame and in its subframe, while every frame where a script filter applied still answered the getStats question with the real address.
Two reasons showed up here. The filter edits the candidate events and getStats still reports the address, and top-frame-only injection, which is the manifest default, left every subframe unprotected in our runs.
It helps for ordinary subframes, which were covered in both rounds once it was on, but srcdoc frames stayed unprotected in all five tests with the setting enabled. The option narrows the gap without closing it.
It removes the address, not the setup problem. The policy decides which candidates the browser may gather, so with no proxy in the path you get a browser with zero candidates, which is its own unusual signature rather than a normal looking one.