Index: third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js |
index 52f19551b75146bdc8f0109192b8b2b61363ea3a..ce65f5a583b8f49ec4031d6b6f15e76ddb590f63 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js |
@@ -422,8 +422,10 @@ SDK.TargetManager = class extends Common.Object { |
* @return {!Protocol.InspectorBackend.Connection} |
*/ |
_createMainConnection(params) { |
- if (Runtime.queryParam('ws')) { |
- var ws = 'ws://' + Runtime.queryParam('ws'); |
+ var wsParam = Runtime.queryParam('ws'); |
+ var wssParam = Runtime.queryParam('wss'); |
+ if (wsParam || wssParam) { |
+ var ws = wsParam ? `ws://${wsParam}` : `wss://${wssParam}`; |
dgozman
2017/03/05 06:08:13
Last time we checked wss was only allowed from sec
|
this._mainConnection = new SDK.WebSocketConnection(ws, this._webSocketConnectionLostCallback, params); |
} else if (InspectorFrontendHost.isHostedMode()) { |
this._mainConnection = new SDK.StubConnection(params); |