Hi,

Electron web-view is leaking original IP through webRTC even though we are in VPN/Proxy

Do we have option to disable that in electron, brave is already doing this
https://github.com/brave/browser-laptop/commit/653e4db649c1e96e55f5b2c80a60f5db49b10cb3#diff-b95013a7d2996f174fdafb3bb3cfd7cb

Third party Add-ons are blocking webrtc  by accessing this API
chrome.privacy.network.webRTCIPHandlingPolicy.set({value: 'default_public_interface_only'});

It will be helpful if  we  expose this API in electron too.

How to replicate this:
_________________________
create a simple webview
Set proxy for that session/webview
visit https://browserleaks.com/webrtc
You can see your original IP even though you are in proxy

Thanks
Jk


atom/browser/api/atom_api_web_contents.h
content::NavigationHandle* navigation_handle) override;
  void DidFinishNavigation(
      content::NavigationHandle* navigation_handle) override;
  bool OnMessageReceived(const IPC::Message& message) override;
  void WebContentsDestroyed() override;
  void NavigationEntryCommitted(
      const content::LoadCommittedDetails& load_details) override;
  void TitleWasSet(content::NavigationEntry* entry, bool explicit_set) override;
  void DidUpdateFaviconURL(
      const std::vector<content::FaviconURL>& urls) override;
  void PluginCrashed(const base::FilePath& plugin_path,
                     base::ProcessId plugin_pid) override;
  void MediaStartedPlaying(const MediaPlayerInfo& video_type,
                           const MediaPlayerId& id) override;
  void MediaStoppedPlaying(const MediaPlayerInfo& video_type,
                           const MediaPlayerId& id) override;
  void DidChangeThemeColor(SkColor theme_color) override;
  
  void Observe(int type,
               const content::NotificationSource& source,
               const content::NotificationDetails& details) override;
  
  void DevToolsReloadPage() override;
  
  void DevToolsFocused() override;
  void DevToolsOpened() override;
  void DevToolsClosed() override;
 private:
  struct LoadURLParams {
    LoadURLParams() : params(GURL()), id(0) {}