Skip to content

mockWebRTC leakage over `rebrowser-puppeteer #470

@Mahkhmood8

Description

@Mahkhmood8

Hello , mockWebRTC is leaking over
https://github.com/rebrowser/rebrowser-puppeteer-core?

Sometimes, it could be very useful to access a CDP session at a browser level. For example, when you want to implement some custom CDP command. There is a method page._client() that returns CDP session for the current page instance, but there is no such method for browser instance. This patch adds a new method _connection() to Browser class, so you can use it like this:

browser._connection().on('Rebrowser.addRunEvent', (params) => { ... })
Note: it's not detectable by external website scripts, it's just for your convenience.

Change default utility world name
The default utility world name is 'puppeteer_utility_world' + packageVersion. Sometimes you might want to change it to something else. This patch changes it to util and allows you to customize it via env variable:

REBROWSER_PATCHES_UTILITY_WORLD_NAME=customUtilityWorld

use 0 to completely disable this patch

REBROWSER_PATCHES_UTILITY_WORLD_NAME=0

Activity

added
t-toolingIssues with this label are in the ownership of the tooling team.
on Oct 9, 2025
barjin

barjin commented on Oct 10, 2025

@barjin
Collaborator

Hello, and thank you for your interest in this project.

I do not understand your question here. fingerprint-suite doesn't depend on rebrowser-puppeteer (nor does rebrowser-puppeteer depend on fingerprint-suite packages).

It's possible that using those two projects together will result in unexpected behavior, as both may be interacting with similar parts of the browser API. Note that we don't test fingerprint-suite packages with any other anonymization solutions.

I'll close this issue now, but feel free to ask additional questions if you have any. Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @barjin@Mahkhmood8

        Issue actions

          `mockWebRTC` leakage over ``rebrowser-puppeteer` · Issue #470 · apify/fingerprint-suite