Closed Bug 958686 Opened 11 years ago Closed 11 years ago

Open in new tab context menu available in NetMonitor, even when the table is empty

Categories

(DevTools :: Netmonitor, defect)

29 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 29

People

(Reporter: ntim, Assigned: sterlingrgraham)

Details

(Whiteboard: [good first bug][mentor=past][lang=js])

Attachments

(1 file)

When you right click the network monitor when there are no requests, it shows a context menu with "open in new tab". This is useless and confusing.
RequestsMenuView.prototype._onContextShowing() only filters out the "Resend" and "Copy URL" items. It should do the same with "Open in a new Tab".
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [good first bug][mentor=past][lang=js]
Thanks for mentoring this Past! :)
Hi there, I'd like to be assigned this as a first bug. So far I have compiled a debug build, and am having a look inside the RequestsMenuView.prototype._onContextShowing() function. As I understand it what I should do is find the ID for the "Open in a New Tab" menu item, then hide it if this.selected item is null in the same way the "Copy URL" menu item is done.
Patch implementing what I described in my previous comment.
Attachment #8359581 - Flags: review?(past)
Assignee: nobody → sterlingrgraham
Status: NEW → ASSIGNED
Comment on attachment 8359581 [details] [diff] [review] bug-958686-fix.patch Review of attachment 8359581 [details] [diff] [review]: ----------------------------------------------------------------- This looks good and works as expected. Thanks for the patch!
Attachment #8359581 - Flags: review?(past) → review+
Changed the commit message to better describe what the change was and landed in fx-team: https://hg.mozilla.org/integration/fx-team/rev/eff6ff4dd6d2
Whiteboard: [good first bug][mentor=past][lang=js] → [good first bug][mentor=past][lang=js][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [good first bug][mentor=past][lang=js][fixed-in-fx-team] → [good first bug][mentor=past][lang=js]
Target Milestone: --- → Firefox 29
Removing the good first bug tags as this bug is fixed.
Whiteboard: [good first bug][mentor=past][lang=js]
The good first bug tags can remain. Bugs are filtered out of the dashboard by status. The tags are used after bug closing to update Mentor Watch[1]. [1]: http://www.joshmatthews.net/mentorwatch/
Whiteboard: [good first bug][mentor=past][lang=js]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: