Closed
Bug 771466
Opened 13 years ago
Closed 13 years ago
GCLI devtools.command.dir option should accept ~ for home directory
Categories
(DevTools Graveyard :: Graphic Commandline and Toolbar, defect, P3)
DevTools Graveyard
Graphic Commandline and Toolbar
Tracking
(Not tracked)
RESOLVED
FIXED
Future
People
(Reporter: jwalker, Assigned: ravicat2013)
Details
Attachments
(1 file, 2 obsolete files)
1.38 KB,
patch
|
Details | Diff | Splinter Review |
No description provided.
Reporter | ||
Comment 1•13 years ago
|
||
Triage: Filter on the TRIAGE keyword.
Target Milestone: Firefox 17 → Future
Reporter | ||
Updated•13 years ago
|
Priority: P2 → P3
Whiteboard: [good first bug][mentor=jwalker]
![]() |
Assignee | |
Comment 2•13 years ago
|
||
like to work on this bug....
![]() |
Assignee | |
Comment 3•13 years ago
|
||
can u suggest me where to start ??
Reporter | ||
Comment 4•13 years ago
|
||
The code that processes the command dir is in browser/devtools/commandline/CmdCmd.jsm see refreshAutoCommands().
We need to check for an initial ~/ and replace with the users home directory, which we can probably get as using the docs here:
https://developer.mozilla.org/en-US/docs/Code_snippets/File_I_O#Getting_special_files
Hope that helps.
Updated•13 years ago
|
Assignee: nobody → ravicat2013
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 5•13 years ago
|
||
now it works as expected
Attachment #656520 -
Flags: review?(jwalker)
Reporter | ||
Comment 6•13 years ago
|
||
Comment on attachment 656520 [details] [diff] [review]
it resolves ~/file /home/path/file and simillarly in windows
Review of attachment 656520 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/devtools/commandline/CmdCmd.jsm
@@ +67,5 @@
> + let homeDirFile = dirService.get("Home", Ci.nsIFile); // returns an nsIFile object
> + let homeDir = homeDirFile.path;
> + dirName = dirName.substr(2);
> + dirName = homeDir + "\\" + dirName;
> + }
Thanks for this.
I think there is some tidying up that we can do. We generally use 2 space tabs in mozilla, and we remove spaces at the end of lines.
Also the first 4 lines of these if statements are the same. How about checking for an initial '~', then calculating the homeDir and removing the first character of the dirName before prefixing with the homeDir?
![]() |
Assignee | |
Comment 7•13 years ago
|
||
ya you are right .... i will make the changes.....
![]() |
Assignee | |
Comment 8•13 years ago
|
||
Attachment #656520 -
Attachment is obsolete: true
Attachment #656520 -
Flags: review?(jwalker)
Attachment #656589 -
Flags: review?(jwalker)
Reporter | ||
Comment 9•13 years ago
|
||
Comment on attachment 656589 [details] [diff] [review]
made the required changes
Review of attachment 656589 [details] [diff] [review]:
-----------------------------------------------------------------
There are still a few spaces out, but I can tweak that as I land.
Thanks.
Attachment #656589 -
Flags: review?(jwalker) → review+
![]() |
||
Comment 10•13 years ago
|
||
Found this during a bug search, appears to be a reviewed patch that needs landing.
Reporter | ||
Comment 11•13 years ago
|
||
Thanks Rob. Added to my landing list.
Reporter | ||
Comment 12•13 years ago
|
||
New component triage. Filter on "Lobster Thermidor aux crevettes with a Mornay sauce"
Component: Developer Tools: Console → Developer Tools: Graphic Commandline and Toolbar
Reporter | ||
Comment 13•13 years ago
|
||
Rebased.
Pushed to try: https://tbpl.mozilla.org/?tree=Try&rev=3425b0ead8cb
Attachment #656589 -
Attachment is obsolete: true
Reporter | ||
Comment 14•13 years ago
|
||
And sorry for the delay in getting this landed!
Reporter | ||
Comment 15•13 years ago
|
||
https://tbpl.mozilla.org/?tree=Fx-Team&rev=f952eebd4cbd
https://hg.mozilla.org/integration/fx-team/rev/6a1a959b8a2c
Whiteboard: [good first bug][mentor=jwalker] → [fixed-in-fx-team]
![]() |
||
Comment 16•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Updated•7 years ago
|
Product: Firefox → DevTools
Updated•7 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•