Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(702)

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/TargetManager.js

Issue 2729623006: DevTools: Support wss:// endpoints (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698