Closed
Bug 80512
Opened 24 years ago
Closed 24 years ago
personal toolbar submenus double and steal focus [@ GetInsertionPoint][@ nsMenuPopupFrame::GetNextMenuItem]
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
VERIFIED
FIXED
mozilla0.9.1
People
(Reporter: dbaron, Assigned: hyatt)
References
Details
(Keywords: regression, topcrash, Whiteboard: critical for 0.9.1)
Crash Data
Attachments
(6 files)
(deleted),
image/png
|
Details | |
(deleted),
image/png
|
Details | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
patch
|
Details | Diff | Splinter Review |
DESCRIPTION: This problem seems to occur only in the first window that I open
and not in subsequent windows. It is a regression that started in the past day
or two.
If I open a submenu on the personal toolbar, I see its contents doubled and as I
mouse over the items in the upper part of the menu they are highlighted in the
lower part of the menu. If I then click on one of the items (rather than
closing the menu in some other way), the menu closes but the button that opened
the menu stays focused (red color in classic skin, indented border) and steals
all keyboard events until I click twice on the same button again or hit ESC.
STEPS TO REPRODUCE:
* create submenu on personal toolbar (is that sufficient? -- I"m not sure)
* open it
ACTUAL RESULTS:
* menu doubling
* when an item is selected, the new page doesn't have focus because the button
on the toolbar that opens the menu still has focus
I'm seeing this on my Linux opt build from this morning. :
Reporter | ||
Comment 1•24 years ago
|
||
Comment 2•24 years ago
|
||
Seeing this on 2001051220 on Windows 2000, changing OS to All
Updated•24 years ago
|
OS: Linux → All
happens on my xlib solaris build (edit menu). platform: all.
Comment 4•24 years ago
|
||
This is due to stylesheet scoping.
Comment 9•24 years ago
|
||
The problem does not occur solely on the personal toolbar but also in the Back
button menu, the newsgroup column menu, and others (as per bug 80736 which was
marked as a duplicate).
Comment 10•24 years ago
|
||
*** Bug 80893 has been marked as a duplicate of this bug. ***
Comment 11•24 years ago
|
||
*** Bug 80935 has been marked as a duplicate of this bug. ***
Comment 12•24 years ago
|
||
This only seems to happen with one Personal Toolbar menu at a time, and
sometimes switches to other menus in the toolbar. At least I'm seeing this on
Win98SE 2001051420. New windows don't seem to be affected.
Comment 13•24 years ago
|
||
This bug also happens on:
Edit menu (Alt+E),
Go menu (Alt+G),
Bookmarks menu (Alt+B), and
Tasks menu (Alt+T),
when the browser window is launched for the first time.
Pressing the keyboard shortcuts will trigger this bug.
Comment 14•24 years ago
|
||
*** Bug 81151 has been marked as a duplicate of this bug. ***
Comment 15•24 years ago
|
||
*** Bug 81284 has been marked as a duplicate of this bug. ***
Comment 16•24 years ago
|
||
For those who are frustrated by this bug, a simple work around that always works
for me is to open a new window and close the old one. New windows don't seem to
be affected by this bug.
Also, if Personal Toolbar folder looks depressed and is stealing focus away from
your text fields, just hit Esc on your keyboard.
Comment 17•24 years ago
|
||
A more simple workaround is to open one of the main menu first.
Comment 18•24 years ago
|
||
Gilles:
You mean one of the main menubar items, like File or Edit?
Opening those doesn't work for me as a workaround for this.
Comment 19•24 years ago
|
||
*** Bug 80956 has been marked as a duplicate of this bug. ***
Comment 20•24 years ago
|
||
*** Bug 81343 has been marked as a duplicate of this bug. ***
Comment 21•24 years ago
|
||
This is pretty jarring, can we get a fix in for beta?
Comment 22•24 years ago
|
||
I think we should consider backing out stylesheet scoping for .9.1. Hyatt has
already said he's too busy working on the style system rewrite to fix
regressions like these, and I don't think the benefits of the landing outweigh
the bugs it caused this close to the milestone.
Comment 23•24 years ago
|
||
On build 2001051621, using the main bookmarks menu first fixes the problem for
the bookmarks menu on the personal toolbar. Using the personal toolbar menu
first "sets" the problem. Whether this has any effects on the other personal
toolbar menus I don't yet know.
Comment 24•24 years ago
|
||
The Lookup menu works after initially using the Bookmarks the main menu. Build
2001051621
Comment 25•24 years ago
|
||
Alex : clicking on file or edit does work as a workaround on my linux and win98
machine.
Incidentally, while testing for this, I saw that just hovering on the main menu
is a workaround on 2001051721 linux.
Comment 26•24 years ago
|
||
*** Bug 81609 has been marked as a duplicate of this bug. ***
Comment 27•24 years ago
|
||
We have 10 dups, adding mostfreq keyword.
Gilles: yeah, your workaround does work. I keep going to the personal toolbar
first before trying the main meubar.
Keywords: mostfreq
Comment 28•24 years ago
|
||
*** Bug 81759 has been marked as a duplicate of this bug. ***
Comment 29•24 years ago
|
||
More information (for me, at least): if there are multiple personal
toolbar folders, only the _first_ one I select shows this behavior.
The first one will continue to show this as long as the window is
open. All other folders work normally.
Assignee | ||
Comment 30•24 years ago
|
||
I don't think scoping should be backed out. This is probably pretty easy to
fix, and it's the only known scoping bug.
Status: NEW → ASSIGNED
Comment 32•24 years ago
|
||
Er....it's the "only known scoping bug" now that about 7 other important ones
have been fixed. And you said a few days ago that someone else better step up
to fix these regressions, because you were busy. But whatever.
Comment 33•24 years ago
|
||
*** Bug 81875 has been marked as a duplicate of this bug. ***
Comment 34•24 years ago
|
||
On build 2001051821 (linux), moving the mouse on the main menu (without
opening the menu) seems to be a sufficient workaround.
So it isn't necessary to open a new window. The problem disapears as
soon as I touch the main menu with the mouse. In fact, using the
CTRL-N shortcut does not prevent the bug in the second window.
Comment 35•24 years ago
|
||
*** Bug 81252 has been marked as a duplicate of this bug. ***
Comment 36•24 years ago
|
||
*** Bug 82111 has been marked as a duplicate of this bug. ***
Comment 37•24 years ago
|
||
On linux, merely having the sidebar open on startup also works around this
bug.
It's amazing how quickly I have picked up the habit of visiting an
almost-never-used Personal Toolbar bookmark menu to make sure that I
don't get any of the bookmark menus I actually care about messed up. ;-)
Comment 38•24 years ago
|
||
Er, sorry, scratch that. I just tested the sidebar thing and it didn't
make a difference. Guess I was confusing the workaround that
Stephane Chauveau described with the sidebar issue.
Comment 39•24 years ago
|
||
*** Bug 82186 has been marked as a duplicate of this bug. ***
Comment 40•24 years ago
|
||
*** Bug 82292 has been marked as a duplicate of this bug. ***
Comment 41•24 years ago
|
||
*** Bug 81167 has been marked as a duplicate of this bug. ***
Comment 42•24 years ago
|
||
*** Bug 82550 has been marked as a duplicate of this bug. ***
Comment 43•24 years ago
|
||
*** Bug 82638 has been marked as a duplicate of this bug. ***
Comment 44•24 years ago
|
||
*** Bug 82681 has been marked as a duplicate of this bug. ***
Updated•24 years ago
|
Target Milestone: --- → mozilla0.9.1
Comment 45•24 years ago
|
||
*** Bug 82978 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•24 years ago
|
Target Milestone: mozilla0.9.1 → ---
Assignee | ||
Comment 46•24 years ago
|
||
Blake, don't target my bugs for me.
Assignee | ||
Updated•24 years ago
|
Whiteboard: critical for 0.9.1 → [helpwanted] critical for 0.9.1
Comment 47•24 years ago
|
||
Some of the drivers are using TM for tracking, and I was told to by one of
them...
Reporter | ||
Comment 48•24 years ago
|
||
Since you added [helpwanted], could you share the idea mentioned above:
| ------- Additional Comments From Joe Hewitt 2001-05-14 11:46 -------
|
| Hyatt claims to have an idea what causes this
Comment 49•24 years ago
|
||
Can comfirm. It also seems that is not dependent on what is inside the folder,
as, with out any changes to the contents of the bookmarks, it has shifted to a
folder with 8 bookmarks in it, and no longer effects the origional with 4. Weird...
Keywords: helpwanted
Comment 50•24 years ago
|
||
*** Bug 83073 has been marked as a duplicate of this bug. ***
Comment 51•24 years ago
|
||
*** Bug 83232 has been marked as a duplicate of this bug. ***
Comment 52•24 years ago
|
||
pchen may have a possible fix on this in similar bug
http://bugzilla.mozilla.org/show_bug.cgi?id=78409.
Comment 53•24 years ago
|
||
Another workaround: right-clicking into the html-area (context-menu opens)
Comment 54•24 years ago
|
||
Another workaround: right-clicking into the html-area (context-menu opens)
Comment 55•24 years ago
|
||
*** Bug 83402 has been marked as a duplicate of this bug. ***
Comment 56•24 years ago
|
||
Is this bug going to be fixed for 0.9.1? If not, this bug, and it's various
workarounds, needs to be mentioned in the release notes to save off a little bit
of headache (I'll leave the 'relnote' keyword to whoever says that this won't
make it into the 0.9.1). Although, fixing this for the milestone would be much
nicer :)
Comment 57•24 years ago
|
||
*** Bug 81819 has been marked as a duplicate of this bug. ***
Assignee | ||
Updated•24 years ago
|
Target Milestone: --- → mozilla0.9.2
Comment 58•24 years ago
|
||
Comment 59•24 years ago
|
||
This is still critical for 0.9.1. hyatt, any reason you pushed it out?
Comment 60•24 years ago
|
||
Alec's way of opening an additional window of Mozilla works for my bug 81819 in
a strange way. I open up Mozilla, open up a second window of Mozilla, and then
close the second window, for my first window has it's bookmarks back !!
Easier than my workaround, but still a little annoying :-((
Comment 61•24 years ago
|
||
*** Bug 83677 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 63•24 years ago
|
||
Assignee | ||
Comment 64•24 years ago
|
||
Assignee | ||
Comment 65•24 years ago
|
||
This patch is tricky, so I'd like to shake it out on the 0.9.2 trunk before
committing it to a 0.9.1 branch.
Looking for r and sr. This patch does 2 things. First, it reverses the
cascade order of scoped sheets to improve perf and decrease bloat. Second, it
prevents a ContentAPpended notification from building frames when the parent
has an insertion point with no frame.
I changed the API for GetInsertionPoint on the frame manager, since I
anticipate having to patch ContentInserted and ContentRemoved, and they'll need
to pass in the content child being inserted or removed. I can patch those
methods now if the person reviewing this decides I should.
waterson, wanna do the sr? pink, r?
Keywords: helpwanted
Whiteboard: [helpwanted] critical for 0.9.1 → critical for 0.9.1
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Comment 66•24 years ago
|
||
sr=waterson; careful, you've got random focus changes in your patch, too.
Assignee | ||
Comment 67•24 years ago
|
||
Ignore the patch to content. That patch is no good. I'm only looking for r/sr
on the layout patch.
Comment 68•24 years ago
|
||
*** Bug 83768 has been marked as a duplicate of this bug. ***
Comment 69•24 years ago
|
||
*** Bug 83782 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 70•24 years ago
|
||
Someone give me an r and a, and I'll get this into 0.9.2 now.
Comment 71•24 years ago
|
||
r=blake on the stuff for this bug
Comment 72•24 years ago
|
||
a= asa@mozilla.org for checkin to the trunk.
(on behalf of drivers)
Comment 73•24 years ago
|
||
*** Bug 83910 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 74•24 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 75•24 years ago
|
||
On Linux, this patch causes crash.
Steps to reproduce:
1. Pull down any menu.
2. Press arrow key to choose menu item.
3. You'll see "Segmentation fault".
I saw this problem on 2001060321-linux, on my own cvs build
(apply layout patch over MOZ_CO_DATE = 06/01/2001 20:50:00 PDT).
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 76•24 years ago
|
||
This causes crash on windows too:
1) start typing in the URL field so that the outliner drops down with candidates
for auto-completion (is there a snappy name for that?).
2) Alt-Tab to another app.
3) Alt-tab back to Mozilla
Crash is in |GetInsertionPoint| in nsMenuBar.cpp, on the line
aChild->GetContent(getter_AddRefs(child));
aChild is null because GetInsertionPoint was called like this from |GetNextMenuItem|
GetInsertionPoint(shell, this, nsnull, &immediateParent);
Comment 77•24 years ago
|
||
Filed bug 83974 on the crasher. This bug did get fixed.
Comment 78•24 years ago
|
||
I still see this on Mac 2001-06-04-04 with a new profile
Assignee | ||
Comment 79•24 years ago
|
||
Let's use 83974 to track the crasher.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 80•24 years ago
|
||
I think this slipped through the cracks. The original bug is in both trunk and
branch builds(for mac at least)
-create a new profile
-launch app
-click on tabs in the sidebar
the customize menu is doubled
reopening because the original bug still exists.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•24 years ago
|
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 81•24 years ago
|
||
*** Bug 83974 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 82•24 years ago
|
||
Comment 83•24 years ago
|
||
sr=hewitt
Comment 84•24 years ago
|
||
a= asa@mozilla.org for checkin to the trunk.
(on behalf of drivers)
Assignee | ||
Comment 85•24 years ago
|
||
Fixed (no, really!). :)
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 86•24 years ago
|
||
verified fixed in commercial builds
windows 2001-06-05-06-trunk
linux 2001-06-05-06-trunk
mac 2001-06-05-04-trunk
Status: RESOLVED → VERIFIED
Comment 87•24 years ago
|
||
um, why wasn't this fixed on the branch as well? it's pretty important that we
get this fixed for beta.
anybody?
Comment 88•24 years ago
|
||
I've tried applying the patches to my local trunk build minus the focus changes
but it causes problems with the url grabbing the keyboard on linux when it
shouldn't. I sent mail to hyatt asking for guidance about how this should be
merged but I haven't heard anything back from him yet.
Comment 89•24 years ago
|
||
I am seeing this on mac branch build 2001-06-05-03-0.9.1
It didn't on branch for linux yesterday or today
it was on branch fro windows yesterday
should this be reopened or a branch bug opened?
Comment 90•24 years ago
|
||
It's definitely still on the branch.
Comment 91•24 years ago
|
||
Adding topcrash keyword and [@ GetInsertionPoint]
[@nsMenuPopupFrame::GetNextMenuItem] to summary, since this crash has been
reported under both of those stack signatures.
Keywords: topcrash
Summary: personal toolbar submenus double and steal focus → personal toolbar submenus double and steal focus [@ GetInsertionPoint][@ nsMenuPopupFrame::GetNextMenuItem]
Comment 92•24 years ago
|
||
*** Bug 83801 has been marked as a duplicate of this bug. ***
Comment 93•24 years ago
|
||
Reopening so it will stay on the 0.9.1 radar.
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Target Milestone: mozilla0.9.2 → mozilla0.9.1
Comment 94•24 years ago
|
||
Will this make it into the branch? Thanks for any update.
Assignee | ||
Comment 95•24 years ago
|
||
I don't have a Linux box for testing, so I'm hesitant to check this in to the
branch if it's going to cause a major regression there. If someone wants to
test on Linux, the correct patch to merge is the "Patch to layout DLL" minus
the changes to nsPresShell.cpp, followed by the patch for ContentInserted. Do
NOT apply the patch to the content DLL. That was a bad patch.
Anyway I'm still feeling really sick, so I'm going home for the day. I could
really use some help here from someone willing to test this on Linux and then
check it in if it works ok.
Status: REOPENED → ASSIGNED
Comment 96•24 years ago
|
||
The patch works fine for me in the trunk (tip). I don't have a branch build, so
I can't check in for you, but it does work just fine for me.
Comment 97•24 years ago
|
||
I applied the patch (as noted above) to a fresh branch build (5pm pull), and
with the patch applied, the "doubling" is fixed. I then spent 20 odd minutes
in both skins, in composer, mail, browser, prefs, profilemanager, exercising
various menus and popups, with no (unknown) problems noted. [Is there a
particular "thing" that you can name that is at more risk than another].
Comment 98•24 years ago
|
||
Thank you, John.
I wonder if we would feel comfortable now to take this on the branch since the
John has completed the testing which Dave Hyatt was inquiring about.
This change has gotten some "bake" time on the trunk already for Win32 and Mac.
Comment 99•24 years ago
|
||
What about blizzard's comment of 2001-06-05 11:17? Is this really ready to go?
Comment 100•24 years ago
|
||
I'm not exactly sure what Chris meant by "the url grabbing the keyboard".
blizzard?
Comment 101•24 years ago
|
||
When I applied the patches several days ago just as hyatt has just described
here I had problems with the autocomplete window / url bar grabbing the keyboard
even though the autocomplete window wasn't visible.
I can go back and try it again. Maybe it was something else in my build. I
doubt that it was but I'll give it a go anyway.
Comment 102•24 years ago
|
||
I've re-applied the patches and I'm not seeing any of the bad effects that I was
seeing before so I think we're OK.
Comment 103•24 years ago
|
||
Comment 104•24 years ago
|
||
Attached is a patch for 0.9.1 that doesn't include the preshell.cpp changes and
includes the ContentInserted patch.
Comment 105•24 years ago
|
||
This is in the 0.9.1 branch now.
Comment 106•24 years ago
|
||
This looks good using 0.9.1 2001060712/Linux.
Assignee | ||
Comment 107•24 years ago
|
||
--> fixed. Thanks blizzard!
Status: ASSIGNED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → FIXED
Comment 108•24 years ago
|
||
Fix looks good from what I see in mail/news windows with:
2001-06-07-13-0.9.1 commercial branch win98
2001-06-07-11-0.9.1 commercial branch mac OS 9.0
Comment 109•24 years ago
|
||
Mail windows also look okay with commercial branch 2001-06-07-13-0.9.1 on linux
rh6.2.
I've asked others in the mailnews QA group to keep an eye out and comment here
if they see the problem in the branch builds.
Comment 110•24 years ago
|
||
i don't encounter this using 2001.06.07.13-branch comm bits on winnt.
Comment 111•24 years ago
|
||
verified on 06/07 linux/mac/win32 branch comm. builds
Status: RESOLVED → VERIFIED
Keywords: vtrunk
Updated•13 years ago
|
Crash Signature: [@ GetInsertionPoint]
[@ nsMenuPopupFrame::GetNextMenuItem]
You need to log in
before you can comment on or make changes to this bug.
Description
•