bug 1523104: remote: add a workaround in chrome-remote-interface to support server; r=ato
authorAlexandre Poirot <poirot.alex@gmail.com>
Thu, 14 Feb 2019 01:50:50 -0800
changeset 521083 ff4ff4765f3bbe2fd4c8ed29244a616562e6750d
parent 521082 c54bbccb690bca1222f86218e390634335e56700
child 521084 16812017daad5a86003e2a04694468a4aac337cf
push id10862
push userffxbld-merge
push dateMon, 11 Mar 2019 13:01:11 +0000
treeherdermozilla-beta@a2e7f5c935da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1523104
milestone67.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1523104: remote: add a workaround in chrome-remote-interface to support server; r=ato
remote/test/browser/chrome-remote-interface.js
--- a/remote/test/browser/chrome-remote-interface.js
+++ b/remote/test/browser/chrome-remote-interface.js
@@ -17417,19 +17417,21 @@ var CDP =
 	                                return this._fetchDebuggerURL(options);
 
 	                            case 4:
 	                                url = _context.sent;
 
 	                                this.webSocketUrl = url;
 	                                // update the connection parameters using the debugging URL
 	                                urlObject = parseUrl(url);
-
-	                                options.host = urlObject.hostname;
-	                                options.port = urlObject.port || options.port;
+ 
+                                  // !!! WORKAROUND for misbehaving server
+	                                // options.host = urlObject.hostname;
+	                                // options.port = urlObject.port || options.port;
+
 	                                // fetch the protocol and prepare the API
 	                                _context.next = 11;
 	                                return this._fetchProtocol(options);
 
 	                            case 11:
 	                                protocol = _context.sent;
 
 	                                api.prepare(this, protocol);
@@ -18437,9 +18439,9 @@ var CDP =
 	            addType(object, domainName, type);
 	        });
 	    });
 	}
 
 	module.exports.prepare = prepare;
 
 /***/ })
-/******/ ]);
\ No newline at end of file
+/******/ ]);