diff --git a/dom/push/PushService.jsm b/dom/push/PushService.jsm index 70e7a525b64d..439d9290cbff 100644 --- a/dom/push/PushService.jsm +++ b/dom/push/PushService.jsm @@ -819,6 +819,12 @@ this.PushService = { if (uri.scheme === "wss") { this._ws = Cc["@mozilla.org/network/protocol;1?name=wss"] .createInstance(Ci.nsIWebSocketChannel); + + this._ws.initLoadInfo(null, // aLoadingNode + Services.scriptSecurityManager.getSystemPrincipal(), + null, // aTriggeringPrincipal + Ci.nsILoadInfo.SEC_NORMAL, + Ci.nsIContentPolicy.TYPE_WEBSOCKET); } else if (uri.scheme === "ws") { debug("Push over an insecure connection (ws://) is not allowed!");