Bug 1174422 - Add system principal for UDPSocket init r=kitcambridge

This commit is contained in:
Alexandre Lissy 2015-06-13 10:30:25 -07:00
parent d1befbb6f8
commit e4dd9d22b8

View File

@ -1733,7 +1733,7 @@ this.PushService = {
this._udpServer = Cc["@mozilla.org/network/udp-socket;1"]
.createInstance(Ci.nsIUDPSocket);
this._udpServer.init(-1, false);
this._udpServer.init(-1, false, Services.scriptSecurityManager.getSystemPrincipal());
this._udpServer.asyncListen(this);
debug("listenForUDPWakeup listening on " + this._udpServer.port);