X
Tap here to go to the mobile version of the site.

Support Forum

Where can I disable WebRTC and PeerConnection?

Posted

I had read that in FF v22 Web RTC (Real Time Connections, PeerConnection and DataChannels) are enabled by default. This is a big no-no for me.

Where can I turn them off, is it possible to do this in one click (as for JavaScript or images)?

Will they bypass disabled in Windows Remote Access service?

Anything else I can do to block peer-to-peer and any remote access to my computer, while reading the Web will remain possible?

Thank you.

I had read that in FF v22 Web RTC (Real Time Connections, PeerConnection and DataChannels) are enabled by default. This is a big no-no for me. Where can I turn them off, is it possible to do this in one click (as for JavaScript or images)? Will they bypass disabled in Windows Remote Access service? Anything else I can do to block peer-to-peer and any remote access to my computer, while reading the Web will remain possible? Thank you.

Chosen solution

Set media.peerconnection.enabled to false in about:config.

Read this answer in context 6

Additional System Details

Installed Plug-ins

  • Next Generation Java Plug-in 10.25.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0 IceDragon/21.0.1.15

More Information

I'm posting this this from another FF-based browser.

philipp
  • Top 25 Contributor
  • Moderator
4599 solutions 20579 answers

hello, of course there's no automatic peer-to-peer access to your computer while you're surfing the web. in case a website is making use of those capabilities to offer their service, you will presented with a panel which asks if access should be allowed (similar to how the access to geolocation is handled today).

https://hacks.mozilla.org/2013/06/webrtc-comes-to-firefox/

hello, of course there's no automatic peer-to-peer access to your computer while you're surfing the web. in case a website is making use of those capabilities to offer their service, you will presented with a panel which asks if access should be allowed (similar to how the access to geolocation is handled today). https://hacks.mozilla.org/2013/06/webrtc-comes-to-firefox/
Gingerbread Man 403 solutions 1537 answers

Chosen Solution

Set media.peerconnection.enabled to false in about:config.

Set ''media.peerconnection.enabled'' to '''false''' in [http://kb.mozillazine.org/About:config about:config].
John99
  • Moderator
971 solutions 13138 answers

Helpful Reply

Try this demo page http://mozilla.github.io/webrtc-landing/gum_test.html

Although enabled it will still warn you before sharing. I will try to work out how to disable it,I imagine there will be a pref.

Try this demo page http://mozilla.github.io/webrtc-landing/gum_test.html Although enabled it will still warn you before sharing. I will try to work out how to disable it,I imagine there will be a pref.
John99
  • Moderator
971 solutions 13138 answers

I did find two prefs that I thought were related to disabling WebRTC but they do not seem to work for me even after a restart.

  • media.navigator.enabled
  • media.navigator.permission.disabled

You could try them and see if they work for you

  1. go to about:config
    see http://kb.mozillazine.org/About:config
  2. accept any warning
  3. use the search (my take a few seconds) filter for media.navigator
  4. right clicking gives you options to reset or toggle values.
    In most cases the effect is immediate.
I did find two prefs that I thought were related to disabling WebRTC but they do not seem to work for me even after a restart. *media.navigator.enabled *media.navigator.permission.disabled You could try them and see if they work for you #go to about:config <br /> see http://kb.mozillazine.org/About:config #accept any warning #use the search (my take a few seconds) filter for ''media.navigator'' #right clicking gives you options to reset or toggle values. <br /> In most cases the effect is immediate.
John99
  • Moderator
971 solutions 13138 answers

Thanks Gingerbread_Man
but I have tried that myself just now and it is not preventing me using WebRTC video, although the value is remaining as false in about.config before and after I try.

  • media.peerconnection.enabled;false

Have you tried it yourself does it work for you ?

Thanks'' Gingerbread_Man'' <br /> but I have tried that myself just now and it is not preventing me using WebRTC video, although the value is remaining as false in about.config before and after I try. *media.peerconnection.enabled;false Have you tried it yourself does it work for you ?
cor-el
  • Top 10 Contributor
  • Moderator
15339 solutions 139030 answers

Be careful with media.navigator.permission.disabled:

// Developer preference for turning off permission check.
if (Preferences::GetBool("media.navigator.permission.disabled", false)) {
aPrivileged = true;
}
// Make enabling peerconnection enable getUserMedia() as well
if (!(Preferences::GetBool("media.navigator.enabled", false) ||
      Preferences::GetBool("media.peerconnection.enabled", false))) {
  return NS_OK;
}
Be careful with media.navigator.permission.disabled: *http://mxr.mozilla.org/mozilla-central/source/dom/media/MediaManager.cpp <pre><nowiki>// Developer preference for turning off permission check. if (Preferences::GetBool("media.navigator.permission.disabled", false)) { aPrivileged = true; } </nowiki></pre> *http://mxr.mozilla.org/mozilla-central/source/dom/base/Navigator.cpp#1095 <pre><nowiki>// Make enabling peerconnection enable getUserMedia() as well if (!(Preferences::GetBool("media.navigator.enabled", false) || Preferences::GetBool("media.peerconnection.enabled", false))) { return NS_OK; }</nowiki></pre>
John99
  • Moderator
971 solutions 13138 answers

Hi Cor-el,

I do not understand c++ but I see

Presumably it should not ordinarily be used.

  • media.navigator.permission.disabled

has a default value of False.

What is the correct answer to the op question please. Is it not possible to totally disable this feature now ?

As I mentioned above Setting media.peerconnection.enabled;false is not disabling the feature for me.

Hi Cor-el, I do not understand c++ but I see *http://mxr.mozilla.org/mozilla-central/source/dom/media/MediaManager.cpp#1061 *''media.navigator.permission.disabled'' relates to a developer pref. Presumably it should not ordinarily be used. *''media.navigator.permission.disabled'' has a default value of False. What is the correct answer to the op question please. Is it not possible to totally disable this feature now ? As I mentioned above Setting ''media.peerconnection.enabled;false'' is not disabling the feature for me.

Question owner

Thank you all! It was very helpful.

Thank you all! It was very helpful.
MatsSvensson 0 solutions 9 answers

"you will presented with a panel which asks if access should be allowed"

This site seems to be able to use it without any permission popup: http://www.sharefest.me/

"you will presented with a panel which asks if access should be allowed" This site seems to be able to use it without any permission popup: http://www.sharefest.me/
philipp
  • Top 25 Contributor
  • Moderator
4599 solutions 20579 answers

on the page you have to actively drag content into the page for an action to be triggered - i don't think this is anything new in particular, since drag & drop file uploading (in gmail, google image search, dropbox, etc.) is working for quite a while before firefox 22 was released already...

on the page you have to actively drag content into the page for an action to be triggered - i don't think this is anything new in particular, since drag & drop file uploading (in gmail, google image search, dropbox, etc.) is working for quite a while before firefox 22 was released already...