Bug 1589446 - Add network id change event (Windows) r=kershaw
☠☠ backed out by 1fddd3943a07 ☠ ☠
authorValentin Gosu <valentin.gosu@gmail.com>
Tue, 12 Nov 2019 18:24:37 +0000
changeset 501828 8265027727efb5904ceb3efd7c20d07f28119f2b
parent 501827 5127c3b7168486c70e084bc45c324c9443cffc92
child 501829 fbab3b7be09261b604148655537ba0ff90d2a9fb
push id114172
push userdluca@mozilla.com
push dateTue, 19 Nov 2019 11:31:10 +0000
treeherdermozilla-inbound@b5c5ba07d3db [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskershaw
bugs1589446
milestone72.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 1589446 - Add network id change event (Windows) r=kershaw Differential Revision: https://phabricator.services.mozilla.com/D52689
netwerk/system/win32/nsNotifyAddrListener.cpp
--- a/netwerk/system/win32/nsNotifyAddrListener.cpp
+++ b/netwerk/system/win32/nsNotifyAddrListener.cpp
@@ -219,16 +219,17 @@ void nsNotifyAddrListener::calculateNetw
     return;
   }
 
   MutexAutoLock lock(mMutex);
   if (output != mNetworkId) {
     mNetworkId = output;
     Telemetry::Accumulate(Telemetry::NETWORK_ID2, 1);
     LOG(("calculateNetworkId: new NetworkID: %s", output.get()));
+    SendEvent(NS_NETWORK_LINK_DATA_NETWORKID_CHANGED);
   } else {
     Telemetry::Accumulate(Telemetry::NETWORK_ID2, 2);
     LOG(("calculateNetworkId: same NetworkID: %s", output.get()));
   }
 }
 
 // Static Callback function for NotifyIpInterfaceChange API.
 static void WINAPI OnInterfaceChange(PVOID callerContext,