Closed
Bug 957072
Opened 12 years ago
Closed 12 years ago
Add Pretty Print to Scratchpad Menu
Categories
(DevTools Graveyard :: Scratchpad, defect)
DevTools Graveyard
Scratchpad
Tracking
(Not tracked)
VERIFIED
FIXED
Firefox 30
People
(Reporter: darkowlzz, Assigned: lviknesh)
Details
(Whiteboard: [good-first-bug][mentor=fitzgen@mozilla.com][lang=js][engineering-friend])
Attachments
(1 file, 3 obsolete files)
|
2.83 KB,
patch
|
Details | Diff | Splinter Review |
Pretty Print is available only by clicking the button in Scratchpad.
It should also be available as a menu item under some menu with shortkey visible.
Updated•12 years ago
|
Hardware: x86 → All
Whiteboard: [chrome-debug] [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js]
Version: unspecified → Trunk
Updated•12 years ago
|
Whiteboard: [chrome-debug] [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js] → [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js]
| Assignee | ||
Comment 1•12 years ago
|
||
I am newbie i would like to work on this Bug
Comment 2•12 years ago
|
||
To learn about building firefox and hacking on devtools, go here: https://wiki.mozilla.org/DevTools/Hacking
Benvie can give you more of the specifics for this bug.
Assignee: nobody → lviknesh
Comment 3•12 years ago
|
||
(In reply to Sunny [:darkowlzz] from comment #0)
> Pretty Print is available only by clicking the button in Scratchpad
and Ctrl+P (Windows/Linux) or Command+P (Mac)
@benvie Shouldn't be [lang=xul]?
Comment 4•12 years ago
|
||
You'r(In reply to Zulkarnain K. [:LouCypher] from comment #3)
> @benvie Shouldn't be [lang=xul]?
It's half and half. Adding the menu is a XUL change, but updating the test is JS.
vikneshwar, you'll need modify a couple files [1][2]. In the .xul file there's already a <command> and <key> for pretty print (search "pprint"), you'll need to add a new menuitem. In the .js file (the test) you just need to add a new item to `methodsAndItems`.
[1] http://mxr.mozilla.org/mozilla-central/source/browser/devtools/scratchpad/scratchpad.xul
[2] http://mxr.mozilla.org/mozilla-central/source/browser/devtools/scratchpad/test/browser_scratchpad_ui.js
Comment 5•12 years ago
|
||
Can I have this bug assigned to me? I am willing to work on this bug.
Comment 6•12 years ago
|
||
what is the menu item are we supposed to add in the xul file?
Comment 7•12 years ago
|
||
what is the menu item are we supposed to add in the xul file?
Comment 8•12 years ago
|
||
hi Anup!
Nick should be able to help you out.
have fun!
Whiteboard: [good-first-bug] [mentor=bbenvie@mozilla.com] [lang=js] → [good-first-bug] [mentor=fitzgen@mozilla.com] [lang=js]
Comment 9•12 years ago
|
||
Congratulations Nick on becoming a mentor for this bug!
| Assignee | ||
Comment 10•12 years ago
|
||
"Bug 957072 Changes made--> http://pastebin.com/EcUCW9CN.
I added Pretty Print to the menu but got this error http://pastebin.com/tWpjgm2q when i click it .
Please check the patch and help me fix the error .
Flags: needinfo?
Comment 11•12 years ago
|
||
Comment on attachment 8363054 [details] [diff] [review]
patch1.patch
Review of attachment 8363054 [details] [diff] [review]:
-----------------------------------------------------------------
just a couple of minor nits.
::: browser/devtools/scratchpad/scratchpad.xul
@@ +116,5 @@
> <key id="sp-key-errorConsole"
> key="&errorConsoleCmd.commandkey;"
> command="sp-cmd-errorConsole"
> modifiers="accel,shift"/>
> + <key id="sp-key-hideSidebar" keycode="VK_ESCAPE"
no need to move this.
::: browser/locales/en-US/chrome/browser/devtools/scratchpad.dtd
@@ +66,5 @@
> <!ENTITY display.key "l">
>
> <!ENTITY pprint.label "Pretty Print">
> <!ENTITY pprint.key "p">
> +<!ENTITY pprint.accesskey "P">
should have a blank line between this line and the next.
Updated•12 years ago
|
Attachment #8363054 -
Flags: feedback+
Flags: needinfo?
| Assignee | ||
Comment 12•12 years ago
|
||
I have uploaded the second patch . It works fine now .Please review it
Flags: needinfo?
| Assignee | ||
Comment 13•12 years ago
|
||
Updated the white space in 3rd patch .Please review it
| Assignee | ||
Updated•12 years ago
|
Attachment #8363150 -
Flags: review?(rcampbell)
Comment 14•12 years ago
|
||
Comment on attachment 8363150 [details] [diff] [review]
patch3.patch
Review of attachment 8363150 [details] [diff] [review]:
-----------------------------------------------------------------
looks good!
Attachment #8363150 -
Flags: review?(rcampbell)
Attachment #8363150 -
Flags: review+
Attachment #8363150 -
Flags: checkin?
Comment 15•12 years ago
|
||
just a note about patch formatting, typically we'll set the status message to include the Bug # and the description of what the patch does. Ultimately, with the name of the reviewer. makes it easier to checkin.
e.g., hg qref -m "Bug 957072 - Add Pretty Print to Scratchpad Menu; r=robcee"
Status: NEW → ASSIGNED
Flags: needinfo?
Updated•12 years ago
|
Whiteboard: [good-first-bug] [mentor=fitzgen@mozilla.com] [lang=js] → [good-first-bug] [mentor=fitzgen@mozilla.com] [lang=js][land-in-fx-team]
Updated•12 years ago
|
Attachment #8363081 -
Attachment is obsolete: true
Updated•12 years ago
|
Attachment #8363054 -
Attachment is obsolete: true
Comment 16•12 years ago
|
||
Comment on attachment 8363150 [details] [diff] [review]
patch3.patch
Doesn't apply cleanly to fx-team. Please rebase. Also, please just use the checkin-needed bug keyword. It's easier to use with our automated tools.
Attachment #8363150 -
Flags: checkin?
Comment 17•12 years ago
|
||
Hi! Can you please rebase this so we can land it? Thank you ;)
Flags: needinfo?(lviknesh)
Updated•12 years ago
|
Flags: needinfo?(lviknesh)
| Assignee | ||
Comment 18•12 years ago
|
||
Rebased. :)
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Updated•12 years ago
|
Attachment #8363150 -
Attachment is obsolete: true
Comment 19•12 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/cd69b4b6d544
You really don't need the {land-in-fx-team] on the whiteboard. Also, please note that your commit message should be saying what your patch is doing overall, not what you changed since the last time around.
https://developer.mozilla.org/en-US/docs/Mercurial_FAQ#How_can_I_generate_a_patch_for_somebody_else_to_check-in_for_me.3F
Keywords: checkin-needed
Whiteboard: [good-first-bug] [mentor=fitzgen@mozilla.com] [lang=js][land-in-fx-team] → [good-first-bug][mentor=fitzgen@mozilla.com][lang=js][fixed-in-fx-team]
Comment 20•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [good-first-bug][mentor=fitzgen@mozilla.com][lang=js][fixed-in-fx-team] → [good-first-bug][mentor=fitzgen@mozilla.com][lang=js]
Target Milestone: --- → Firefox 30
| Reporter | ||
Updated•12 years ago
|
Whiteboard: [good-first-bug][mentor=fitzgen@mozilla.com][lang=js] → [good-first-bug][mentor=fitzgen@mozilla.com][lang=js][engineering-friend]
Updated•12 years ago
|
Status: RESOLVED → VERIFIED
Updated•8 years ago
|
Product: Firefox → DevTools
Updated•6 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•