Bug 1605419 - Use GetDocumentURI instead of GetDocBaseURI for hostname obfuscation whitelist; r=jib a=jcristau
authorDan Minor <dminor@mozilla.com>
Mon, 23 Dec 2019 11:10:16 +0000
changeset 566945 b6b8f8fabfffef439ddfde19249c64930394d732
parent 566944 d68034e4b542897d131d39e1d681349ed498718a
child 566946 1236547c641c14b9d204becde68c7670ec3822d9
push id12476
push userccoroiu@mozilla.com
push dateTue, 24 Dec 2019 17:09:56 +0000
treeherdermozilla-beta@b6b8f8fabfff [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib, jcristau
bugs1605419
milestone72.0
Bug 1605419 - Use GetDocumentURI instead of GetDocBaseURI for hostname obfuscation whitelist; r=jib a=jcristau Differential Revision: https://phabricator.services.mozilla.com/D58040
media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp
--- a/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp
+++ b/media/webrtc/signaling/src/peerconnection/PeerConnectionMedia.cpp
@@ -400,17 +400,17 @@ bool PeerConnectionMedia::GetPrefObfusca
 
   uint64_t winId = mParent->GetWindow()->WindowID();
 
   bool obfuscate_host_addresses = Preferences::GetBool(
       "media.peerconnection.ice.obfuscate_host_addresses", false);
   obfuscate_host_addresses &=
       !MediaManager::Get()->IsActivelyCapturingOrHasAPermission(winId);
   obfuscate_host_addresses &=
-      !HostInObfuscationWhitelist(mParent->GetWindow()->GetDocBaseURI());
+      !HostInObfuscationWhitelist(mParent->GetWindow()->GetDocumentURI());
   obfuscate_host_addresses &= XRE_IsContentProcess();
 
   return obfuscate_host_addresses;
 }
 
 void PeerConnectionMedia::ConnectSignals() {
   mTransportHandler->SignalGatheringStateChange.connect(
       this, &PeerConnectionMedia::IceGatheringStateChange_s);