Opened 3 years ago

Last modified 12 months ago

#6030 closed defect

Exceptions thrown by content script if WebRTC is disabled in Firefox — at Version 5

Reported by: MarkyMark Assignee: kzar
Priority: P2 Milestone: Adblock-Plus-3.0.2-for-Firefox
Module: Platform Keywords:
Cc: trev, sebastian, mapx, kzar Blocked By:
Blocking: Platform: Firefox
Ready: yes Confidential: no
Tester: Ross Verified working: yes
Review URL(s):

Description (last modified by kzar)


OS: OS X 10.11.6
Firefox 56.0.2 64-Bit
ABP Version: 3.0.1
Filter Lists:

  • Adblock Warning Removal List
  • EasyList Germany+EasyList
  • EasyPrivacy
  • Fanboy's Social Blocking List

How to reproduce

  1. Disable WebRTC (about:config and set media.peerconnection.enabled to false)
  2. Open a website e.g.
  3. open the web-console
  4. The console is showing an exception "TypeError: RealRTCPeerConnection is undefined" that comes from an APB Function:

Observed behaviour

Exception in browser-console coming from Adblock Plus:

TypeError: RealRTCPeerConnection is undefined search:190:1
<anonym>            inject.preload.js:402
__webpack_require__ bootstrap%20ce37bec0cc7a6c7f06cd:19
<anonym>            moz-extension://718b0eb7-e1fe-5549-be5d-08a92e61d826/include.preload.js:169:18
__webpack_require__ bootstrap%20ce37bec0cc7a6c7f06cd:19
<anonym>            bootstrap%20ce37bec0cc7a6c7f06cd:62
<anonym>            moz-extension://718b0eb7-e1fe-5549-be5d-08a92e61d826/include.preload.js:1:11
inject              resource://gre/modules/ExtensionContent.jsm:339:18
next                self-hosted:1183:9

Expected behaviour

No exception

Hints for testers

  • Ensure that WebRTC blocking still works as before.
  • Check that the above exception is no longer shown in the page console with Firefox when the media.peerconnection.enabled option is set to false.

Change History (5)

comment:1 Changed 3 years ago by mapx

  • Cc trev sebastian mapx kzar added

comment:2 Changed 3 years ago by MarkyMark

Step 3 is a little bit different: open web-console, not browser-console.

comment:3 Changed 3 years ago by mapx

  • Description modified (diff)

comment:4 Changed 3 years ago by kzar

  • Component changed from Unknown to Platform
  • Description modified (diff)
  • Owner set to kzar
  • Priority changed from Unknown to P2
  • Ready set
  • Summary changed from ABP does not check/work if WebRTC is disabled to Exceptions thrown by content script if WebRTC is disabled in Firefox

comment:5 Changed 3 years ago by kzar

  • Description modified (diff)
  • Review URL(s) modified (diff)
  • Status changed from new to reviewing
Note: See TracTickets for help on using tickets.