Skip to content

webrtc scriptlets don't cover all cases #3744

@ambyjkl

Description

@ambyjkl

Prerequisites

  • I verified that this is not a filter list issue. Report any issues with filter lists or broken website functionality in the uAssets issue tracker.
  • This is NOT a YouTube, Facebook or Twitch report. These sites MUST be reported by clicking their respective links.
  • This is not a support issue or a question. For support, questions, or help, visit /r/uBlockOrigin.
  • I performed a cursory search of the issue tracker to avoid opening a duplicate issue.
  • The issue is not present after disabling uBO in the browser.
  • I checked the documentation to understand that the issue I am reporting is not normal behavior.

I tried to reproduce the issue when...

  • uBO is the only extension.
  • uBO uses default lists and settings.
  • using a new, unmodified browser profile.

Description

Scriptlets like nowebrtc and webrtc-if only cover RTCPeerConnection if present, leaving webkitRTCPeerConnection available for sites to use unmitigated

I have created a fix for this over here: gorhill/uBlock@0078419

However, I don't have permission to create a PR on the repo

A specific URL where the issue occurs.

It happens on every site, e.g. https://oceanoffgames.com/ from the default ublock filter list

Steps to Reproduce

Do new webkitRTCPeerConnection() in the console on a site where a webrtc scriptlet is active

Expected behavior

It is blocked by ublock origin

Actual behavior

It slips through

Image

uBO version

1.65.0

Browser name and version

Chromium 139.0.7258.66

Operating System and version

Arch Linux

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions