[WebRTC] ICE candidates should be filtered according a policy
[WebKit-https.git] / Source / WebKit2 / WebProcess / WebPage / WebPage.cpp
index 87feb40..18f62e7 100644 (file)
@@ -551,6 +551,15 @@ WebPage::WebPage(uint64_t pageID, WebPageCreationParameters&& parameters)
     m_page->settings().setContentDispositionAttachmentSandboxEnabled(true);
     setSmartInsertDeleteEnabled(parameters.smartInsertDeleteEnabled);
 #endif
+
+#if ENABLE(WEB_RTC)
+    if (parameters.disableICECandidateFiltering)
+        disableICECandidateFiltering();
+#if USE(LIBWEBRTC)
+    if (parameters.enableEnumeratingAllNetworkInterfaces)
+        enableEnumeratingAllNetworkInterfaces();
+#endif
+#endif
 }
 
 void WebPage::reinitializeWebPage(WebPageCreationParameters&& parameters)