Closed
Bug 361240
Opened 19 years ago
Closed 19 years ago
Context menu in download manager is busted
Categories
(Core :: Widget: Cocoa, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Assigned: jaas)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
|
1.00 KB,
patch
|
enndeakin
:
review+
mconnor
:
superreview+
|
Details | Diff | Splinter Review |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20061119 Minefield/3.0a1
Steps to reproduce:
1. Download something (e.g. option+click a link)
2. Open download manager
3. Ctrl+click an item in the download manager to open a context menu
Result: the selected item in the download manager becomes unselected.
4. Select "show in finder" or "properties".
Result: the context menu goes away but nothing happens.
I'm guessing this is Mac-only and a regression from cocoa.
| Reporter | ||
Comment 1•19 years ago
|
||
Works fine in a non-Cocoa build, so I'm pretty sure this is a regression from Cocoa.
Comment 2•19 years ago
|
||
Cocoa indeed, and probably another instance of bug 355095
Assignee: nobody → joshmoz
Component: Download Manager → Widget: Cocoa
Product: Firefox → Core
QA Contact: download.manager → cocoa
Version: unspecified → Trunk
Comment 3•19 years ago
|
||
See also bug 357417.
Attachment #246066 -
Flags: review?(stuart.morgan)
Comment 5•19 years ago
|
||
*** Bug 355095 has been marked as a duplicate of this bug. ***
Comment 6•19 years ago
|
||
*** Bug 357417 has been marked as a duplicate of this bug. ***
Comment 7•19 years ago
|
||
Comment on attachment 246066 [details] [diff] [review]
fix v1.0
>Index: nsChildView.mm
>===================================================================
>RCS file: /cvsroot/mozilla/widget/src/cocoa/nsChildView.mm,v
>retrieving revision 1.192
>diff -U8 -r1.192 nsChildView.mm
>--- nsChildView.mm 20 Nov 2006 05:37:49 -0000 1.192
>+++ nsChildView.mm 20 Nov 2006 20:47:37 -0000
>@@ -2675,17 +2675,20 @@
> #if USE_CLICK_HOLD_CONTEXTMENU
> // fire off timer to check for click-hold after two seconds. retains |theEvent|
> [self performSelector:@selector(clickHoldCallback:) withObject:theEvent afterDelay:2.0];
> #endif
>
> nsMouseEvent geckoEvent(PR_TRUE, 0, nsnull, nsMouseEvent::eReal);
> [self convertEvent:theEvent message:NS_MOUSE_BUTTON_DOWN toGeckoEvent:&geckoEvent];
> geckoEvent.clickCount = [theEvent clickCount];
>- geckoEvent.button = nsMouseEvent::eLeftButton;
>+ if ([theEvent modifierFlags] & NSControlKeyMask)
>+ geckoEvent.button = nsMouseEvent::eRightButton;
>+ else
>+ geckoEvent.button = nsMouseEvent::eLeftButton;
What if some control wants to respond to proper right clicks but do not want ctrl-click associated with it? Can we pass down the NS_CONTEXTMENU event explicitly instead of faking a right-click?
Yeah, on second thought we should just fix the XUL widget which is using the wrong modifier key for row deselection on mac.
Attachment #246066 -
Attachment is obsolete: true
Attachment #246333 -
Flags: review?(enndeakin)
Attachment #246066 -
Flags: review?(stuart.morgan)
Comment 9•19 years ago
|
||
So should I reopen the bugs on SeaMonkey's link click, and the Firefox bookmarks toolbar, and whatever other things we can find that thought that it was up to another layer to associate Mac ctrl+click with right-click (as we apparently did before, since it used to work)?
| Assignee | ||
Comment 10•19 years ago
|
||
Lets wait and see how the approach in fix v2.0 does in review.
Comment 11•19 years ago
|
||
Comment on attachment 246333 [details] [diff] [review]
fix v2.0
Of course, it shouldn't actually be using any key to deselect, but this looks OK to fix the regression.
Attachment #246333 -
Flags: review?(enndeakin) → review+
Attachment #246333 -
Flags: superreview?(mconnor)
Updated•19 years ago
|
Attachment #246333 -
Flags: superreview?(mconnor) → superreview+
| Assignee | ||
Comment 12•19 years ago
|
||
landed on trunk
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•