Closed Bug 1350235 Opened 8 years ago Closed 8 years ago

Support Copy submenu in the Context menu

Categories

(DevTools :: Netmonitor, enhancement, P1)

enhancement

Tracking

(firefox55 verified)

VERIFIED FIXED
Firefox 55
Iteration:
55.3 - Apr 17
Tracking Status
firefox55 --- verified

People

(Reporter: gasolin, Assigned: brennan.brisad, Mentored)

References

Details

(Keywords: dev-doc-needed, Whiteboard: [netmonitor-reserve])

Attachments

(2 files, 3 obsolete files)

We'd like moving all copy related menus into a `Copy` sub-menu
Mentor: gasolin
Priority: -- → P3
Whiteboard: [netmonitor]
Hi, I'd like to work on this bug
Flags: qe-verify?
Priority: P3 → P2
Flags: qe-verify? → qe-verify+
QA Contact: ciprian.georgiu
(In reply to Michael Brennan from comment #1) > Hi, I'd like to work on this bug Sounds great, assigning to you ;-) Fred is mentor for this bug, so don't hesitate to ask questions! Honza
Assignee: nobody → brennan.brisad
Michael, welcome! If its the first time you try gecko, you could check https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_build to build a workable firefox. When you look at request-list-context-menu, you will see all right click menu items when you right click above the netmonitor's entry http://searchfox.org/mozilla-central/source/devtools/client/netmonitor/request-list-context-menu.js You can take a look how framework/menu and framework/menu-item works with submenu. Put copy related menu-item into the submenu and append back to the menu in the right place. We'd like to put `har` related items into a submenu as well, but its fine to do it in a separate bug. If you have any question, you can need info me in bugzilla, ping me on irc #devtools channel, or via devtools-html slack #netmonitor channel https://devtools-html.slack.com
Attached patch bug1350235.patch (obsolete) — Splinter Review
Thanks Fred for the info! I'm attaching a patch for feedback. I put the `copyAllAsHar` menu item into the new sub-menu but also left it on the main menu. I'm thinking that that menu item might belong to both the copy and HAR sub-menus.
Attachment #8852424 - Flags: feedback?(gasolin)
Status: NEW → ASSIGNED
Priority: P2 → P3
Whiteboard: [netmonitor] → [netmonitor-reserve]
Comment on attachment 8852424 [details] [diff] [review] bug1350235.patch Thanks Michael! The patch looks good to me, here are some nits need to be addressed before send the review: * current netmonitor sources are restructured, so you need rebase (or better create a new branch to port your change into there) * You can just put `Copy All as HAR` into the submenu and remove the one outside. At the end it will looks like Copy URL Copy URL Parameters Copy as cURL --- Copy Request Headers Copy Response Headers Copy Response --- Copy All as HAR
Attachment #8852424 - Flags: feedback?(gasolin) → feedback+
Attached image no arrow in submenu
Honza, I also saw the submenu doesn't have any visual difference from the normal menu item. (see as attachment) I think we should not ship this issue until we fix the submenu visual issue.
Flags: needinfo?(odvarko)
Ooh I found even in normal page's right click menu, their submenu doesn't have any visual hint as well. So never mind, we can land this :)
Flags: needinfo?(odvarko)
Attached patch bug1350235.patch (obsolete) — Splinter Review
Thanks for the feedback! Here's an updated patch. Btw, I do have a small arrow on my system. I'm on Linux running Xfce.
Attachment #8852424 - Attachment is obsolete: true
Attachment #8852818 - Flags: review?(gasolin)
(In reply to Michael Brennan from comment #8) > Created attachment 8852818 [details] [diff] [review] > bug1350235.patch > > Thanks for the feedback! > > Here's an updated patch. Btw, I do have a small arrow on my system. I'm on > Linux running Xfce. Oops, I see I actually missed to commit the `Copy All as HAR` change. I'll put up a new patch in a bit.
Attachment #8852818 - Attachment is obsolete: true
Attachment #8852818 - Flags: review?(gasolin)
Attached patch bug1350235.patchSplinter Review
Attachment #8852866 - Flags: review?(gasolin)
Comment on attachment 8852866 [details] [diff] [review] bug1350235.patch Looks good to me, thanks!
Attachment #8852866 - Flags: review?(odvarko)
Attachment #8852866 - Flags: review?(gasolin)
Attachment #8852866 - Flags: review+
Comment on attachment 8852866 [details] [diff] [review] bug1350235.patch Review of attachment 8852866 [details] [diff] [review]: ----------------------------------------------------------------- Nice work here! Looks good and works as expected, R+ Honza
Attachment #8852866 - Flags: review?(odvarko) → review+
Thanks Michael, I create a PR to do the auto test on our try server, if tests all passed, we can land your patch
Keywords: checkin-needed
This doesn't have sufficient reviews set in MozReview for autoland to push it.
Keywords: checkin-needed
Attachment #8854710 - Attachment is obsolete: true
Ooh, land the .patch is sufficient
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/27dcd50df857 Move copy related menus into a sub-menu in netmonitor. r=gasolin, r=Honza
Keywords: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 55
Iteration: --- → 55.3 - Apr 17
Priority: P3 → P1
I’ve reproduced the issue described in comment 0 using old Firefox 55.0a1 (Build Id:20170324030205) and verified that the issue is not reproducible anymore using Firefox 55.0a1 (Build Id:20170409123541) on Windows 10 64bit.
Status: RESOLVED → VERIFIED
Flags: qe-verify+
all copy menu is now live within submenu, we should update MDN accordingly https://developer.mozilla.org/en-US/docs/Tools/Network_Monitor#Context_menu
Keywords: dev-doc-needed
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: