Bug 1370148 - Stop using the missing system-info.getProperty(host); r=jryans
MozReview-Commit-ID: 9vfGIXqIDk9
--- a/devtools/shared/discovery/discovery.js
+++ b/devtools/shared/discovery/discovery.js
@@ -171,17 +171,18 @@ LocalDevice.prototype = {
// To hex and zero pad
randomID = ("00000000" + randomID.toString(16)).slice(-8);
this.name = name + "-" + randomID;
} else if (Services.appinfo.widgetToolkit == "android") {
// For Firefox for Android, use the device's model name.
// TODO: Bug 1180997: Find the right way to expose an editable name
this.name = sysInfo.get("device");
} else {
- this.name = sysInfo.get("host");
+ this.name = Cc["@mozilla.org/network/dns-service;1"].getService(Ci.nsIDNSService)
+ .myHostName;
}
},
get name() {
return this._name;
},
set name(name) {