mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1047294 - Fix potential Javascript Error. r=vchang
This commit is contained in:
parent
b8e95616ff
commit
8855b9da2d
@ -670,7 +670,7 @@ var WifiManager = (function() {
|
||||
// 2. current network if no SSID is provided, it's not guaranteed that
|
||||
// current network matches requested SSID.
|
||||
if ((!ssid && network.status === "CURRENT") ||
|
||||
(ssid && ssid === dequote(network.ssid))) {
|
||||
(ssid && network.ssid && ssid === dequote(network.ssid))) {
|
||||
return callback(net);
|
||||
}
|
||||
}
|
||||
@ -2029,8 +2029,8 @@ function WifiWorker() {
|
||||
WifiManager.getNetworkId(connectionInfo.ssid, function(netId) {
|
||||
// Trying to get netId from current network.
|
||||
if (!netId &&
|
||||
self.currentNetwork &&
|
||||
self.currentNetwork.ssid == dequote(connectionInfo.ssid) &&
|
||||
self.currentNetwork && self.currentNetwork.ssid &&
|
||||
dequote(self.currentNetwork.ssid) == connectionInfo.ssid &&
|
||||
typeof self.currentNetwork.netId !== "undefined") {
|
||||
netId = self.currentNetwork.netId;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user