Bug 1605419 - Use GetDocumentURI instead of GetDocBaseURI for hostname obfuscation whitelist; r=jib
authorDan Minor <dminor@mozilla.com>
Mon, 23 Dec 2019 11:10:16 +0000
changeset 508167 acff67865a1e03fef83b983486dc3dc31c659147
parent 508166 021d07025dade2778cb56cd6eac49f0e95842294
child 508168 5aa4fe1c9a6a5d86f9e8b1450100672e69570085
push id36943
push useropoprus@mozilla.com
push dateMon, 23 Dec 2019 16:27:52 +0000
treeherdermozilla-central@6d2e33d632e7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjib
bugs1605419
milestone73.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1605419 - Use GetDocumentURI instead of GetDocBaseURI for hostname obfuscation whitelist; r=jib 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);