Closed
Bug 1062748
Opened 11 years ago
Closed 11 years ago
Allow connection-manager to use a custom transport
Categories
(DevTools :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 35
People
(Reporter: paul, Assigned: paul)
Details
Attachments
(1 file, 2 obsolete files)
|
7.45 KB,
patch
|
jryans
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•11 years ago
|
||
Assignee: nobody → paul
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•11 years ago
|
||
Ryan, 90% of this patch is re-indenting the comments and replacing utf8 dots with normal dots (it always bugged me to see garbage in my diffs).
Also, I thought I could drop the magic pipe behavior (not setting a host creates a pipe transport) and just use this new transport argument and create the pipe transport by doing: connection.connect(DebuggerServer.connectPipe()), but for some reason, creating the pipe transport too early would break tests. I didn't figure out why (it doesn't look trivial (to me)).
Anyway, this is required for feverdream.
Attachment #8484014 -
Attachment is obsolete: true
Attachment #8484021 -
Flags: review?(jryans)
Comment on attachment 8484021 [details] [diff] [review]
v1.1
Review of attachment 8484021 [details] [diff] [review]:
-----------------------------------------------------------------
I'm surprised that creating the pipe early like you say breaks tests... but this approach seems fines, so I am not worried about it.
::: toolkit/devtools/client/connection-manager.js
@@ +22,5 @@
> *
> * # ConnectionManager
> *
> * Methods:
> + * . Connection createConnection(host, port)
Huh, I've never noticed this issue in the past... Guess I've never tried non-ASCII chars before. Some searching suggests the combo of git & less is to blame, since git without a pager does the right thing, but I couldn't find a way to get it working.
I guess I would have used an asterisk, but periods are fine too. :)
@@ +187,5 @@
> this._client.close();
> }
> },
>
> + connect: function(transport=null) {
This default value seems unnecessary... It will just end up undefined if it's not passed in, which works the same for your various if checks.
Attachment #8484021 -
Flags: review?(jryans) → review+
Updated to remove the default value.
Try: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=5fe374b65f97
Attachment #8484021 -
Attachment is obsolete: true
Attachment #8484977 -
Flags: review+
Whiteboard: [fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 35
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•