clicking on an item in a context menu causes the window to de-activate for a split second (title bar)




18 years ago
9 years ago


(Reporter: Dean Tessman, Assigned: saari (gone))


Windows NT

Firefox Tracking Flags

(Not tracked)


(Whiteboard: [nsbeta3-], URL)


(3 attachments)



18 years ago
Right-click to open a context menu.  Either left-click or right-click a context
menu.  The easiest one to click is a disabled item, such as Copy.  You can click
it repeated times without the menu dismissing.

Expected Results:
- action (if applicable) is performed
- browser window owning context menu retains active state through duration of
the click

Actual Results:
- action (if applicable) is performed
- browser window owning context menu flashes inactive for a split second

This only seems to happen with context menus.  Popup menus off the main menu
don't do this and neither do popups off the toolbar (eg. Bookmarks menu).

Note: this is unrelated to the fix for bug 17159 as I could duplicate it with an
M14 release, which is before that fix was implemented.

ps. Mike, sorry about giving you another bug.
adding to saari's stress...
Assignee: pinkerton → saari

Comment 2

18 years ago
This isn't an overly important bug, so I'm changing the severity to trivial.
Severity: normal → trivial

Comment 3

18 years ago
Confirmed with the 2000-03-01-08-M15 nightly binary on WinNT 4.0,
exactly as reported. The titlebar greys out momentarily as if a modal dialog 
had been activated for a split-second.
Ever confirmed: true
Summary: clicking on an item in a context menu causes the window to de-activate for a split second → clicking on an item in a context menu causes the window to de-activate for a split second (title bar)

Comment 4

18 years ago
Sounds like popup windows are being created with the wrong OS flags.
Target Milestone: M16

Comment 5

18 years ago
I think it has to do with the WS_POPUP for eWindowType_popup in 
StandardWindowCreate().  Popup windows can receive focus, and take it away from 
the parent when this happens.  Not sure how to get around this... yet...

Comment 6

18 years ago
Shouldn't this solve this problem?  Guess it's not working quite right.

Comment 7

18 years ago
Created attachment 6191 [details] [diff] [review]
Fix attached.  Wrong return value for WM_MOUSEACTIVATE.

Comment 8

18 years ago
Mass-moving all M16 non-feature bugs to M17, which we still consider to be 
part of beta2
Target Milestone: M16 → M17

Comment 9

18 years ago
Adding 'patch' keyword, something that I should have done back in March.
Keywords: patch

Comment 10

18 years ago
Doh, sorry, this got lost on the radar!
Target Milestone: M17 → M16

Comment 11

18 years ago
Cool.  I'm kinda greedy to get my patches in!

Comment 12

18 years ago
Please get patch in by 5/16, doubt PDT will take it after.


18 years ago
Priority: P3 → P1

Comment 13

18 years ago
Moving all bugs that are not dogfood+, nsbeta2+,features, or nsbeta2- to M21
Target Milestone: M16 → M21
*spam*: transferring current XP Menu bugs over to jrgm, the new component owner.
feel free to add me to the cc list (unless am the Reporter) of any of these, if
you have any questions/etc.
QA Contact: sairuh → jrgm

Comment 15

18 years ago
nsbeta3 since we have a patch...
Keywords: nsbeta3

Comment 16

18 years ago
won't hold nsbeta3 for this, but you can still take the external patch.
Whiteboard: [nsbeta3-]

Comment 17

18 years ago
It's a quick and painless patch that won't affect anything else.

Comment 18

18 years ago
Created attachment 12401 [details] [diff] [review]
Updated the patch with the latest source.  Confirmed that it works as expected.

Comment 19

18 years ago
Created attachment 12402 [details] [diff] [review]
Whoops!  Forgot to add myself as a contributor.  Can't have that!

Comment 20

18 years ago
I'm not seeing this in the 2000081404 build.  Looked at lxr and my patch isn't
in.  Perhaps it was fixed as a result of a change to something else...?

Comment 21

18 years ago
Definitely works for me with builds of the past coupla weeks.  Something else 
musta fixed it.
Last Resolved: 18 years ago
Resolution: --- → WORKSFORME

Comment 22

17 years ago
Platform: PC
OS: Windows 98
Mozilla Build: 2000101020 M18 Trunk Build


9 years ago
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.