зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1099296 - Attach LoadInfo to remaining callers of ioService and ProtocolHandlers - websocket changes in dom/push/ (r=nikhil)
This commit is contained in:
Родитель
925b32b2c9
Коммит
4441dedb34
|
@ -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!");
|
||||
|
|
Загрузка…
Ссылка в новой задаче