Closed Bug 926561 Opened 11 years ago Closed 11 years ago

Middle click on the tab bar does not close the tab

Categories

(Firefox for Metro Graveyard :: General, defect)

27 Branch
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
Firefox 29

People

(Reporter: niravaga, Assigned: nl)

References

Details

(Keywords: platform-parity, Whiteboard: p=0 r=ff29)

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release) Build ID: 20131013030202 Steps to reproduce: 1) Open firefox metro. 2) Open 2 websites in 2 separate tabs. 3) Right click on a page to display the tab bar. 4) Middle click on the image of the tab. Actual results: The tab does not close but it gets selected. Expected results: The tab should close.
Summary: Middle click on the tab bar does not close the tab. → Defect - Middle click on the tab bar does not close the tab.
Whiteboard: [triage] feature=defect c=tbd u=tbd p=0
Blocks: metrobacklog
No longer blocks: metrov1backlog
Whiteboard: [triage] feature=defect c=tbd u=tbd p=0 → feature=defect c=tbd u=tbd p=0
Summary: Defect - Middle click on the tab bar does not close the tab. → Middle click on the tab bar does not close the tab
Whiteboard: feature=defect c=tbd u=tbd p=0 → [defect] p=0
Need info on expected behaviour of a middle button (when it's available).
Desktop Firefox uses middle-click to close tabs, and it seems reasonable to extend that to Metro too. It's handy for people who are used to it, and won't cause any problems for those who aren't. If anyone wants to add this feature to Metro, the code is in the "click" handler here: http://dxr.mozilla.org/mozilla-central/source/browser/metro/base/content/bindings/tabs.xml You can add an additional "click" handler and use "button" attributes to distinguish the two handlers: https://developer.mozilla.org/en-US/docs/XUL/Tutorial/Adding_Event_Handlers_to_XBL-defined_Elements
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: pp
Whiteboard: [defect] p=0 → [defect] p=0 [mentor=mbrubeck@mozilla][lang=js][good first bug]
I would like to take this bug. Could you please assign it to me?
Done, thanks for helping out!
Assignee: nobody → nicklebedev37
Comment on attachment 8355866 [details] [diff] [review] Separated click handlers for different mouse buttons. Added logic that closes selected tab on middle click. Review of attachment 8355866 [details] [diff] [review]: ----------------------------------------------------------------- Thanks! r=mbrubeck with a minor change: ::: browser/metro/base/content/bindings/tabs.xml @@ +31,5 @@ > > <handlers> > + <handler event="click" button="0" clickcount="1" action="this._onClick()"/> > + <handler event="click" button="1" clickcount="1" action="event.stopPropagation(); this._onClose()"/> > + <handler event="click" button="2" clickcount="1" action="this._onClick()"/> Please remove the button="2" handler. We can add a contextual menu on right-click in the future, but for now it should do nothing.
Attachment #8355866 - Flags: review?(mbrubeck) → review+
Removed right click handler according to the mbrubeck request.
Attachment #8355866 - Attachment is obsolete: true
Attachment #8356002 - Flags: review?(mbrubeck)
Attachment #8356002 - Flags: review?(mbrubeck) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
No longer blocks: metrobacklog
Keywords: verifyme
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 Mozilla/5.0 (Windows NT 6.2; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0 Verified as fixed on Windows 8 and Windows 8.1 64 bit architecture using latest Aurora (build ID: 20140304004003).
Status: RESOLVED → VERIFIED
Keywords: verifyme
Blocks: metrobacklog
Whiteboard: [defect] p=0 [mentor=mbrubeck@mozilla][lang=js][good first bug] → p=0 r=ff29
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: