Closed
Bug 262031
Opened 20 years ago
Closed 20 years ago
[FIXr]contextmenu of about:config does not close when create a new preference name
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Core
DOM: UI Events & Focus Handling
Tracking
()
RESOLVED
FIXED
mozilla1.8beta2
People
(Reporter: sekundes, Assigned: bzbarsky)
References
()
Details
(Keywords: regression)
Attachments
(3 files)
(deleted),
patch
|
Details | Diff | Splinter Review | |
(deleted),
application/vnd.mozilla.xul+xml
|
Details | |
(deleted),
patch
|
roc
:
review+
roc
:
superreview+
asa
:
approval1.8b2+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a4) Gecko/20040927
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a4) Gecko/20040927
.
Reproducible: Always
Steps to Reproduce:
1. Right click on about:config.
2. New -> String / Integer / Boolean.
3. A prompted box is shown, and the contextmenu doesn't disappear until the
prompted box closed.
Comment 1•20 years ago
|
||
Confirmed using Mozilla 1.8a4 on Windows XP SP 1. No loss of function, just a
cosmetic problem. Severity -> trivial.
Severity: minor → trivial
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•20 years ago
|
Product: Browser → Seamonkey
Comment 2•20 years ago
|
||
Adding regression keyword since this works with 1.7.5.
This bug also happens on Linux.
Moving to Core/Event Handling (could be wrong...)
Assignee: general → events
Component: General → Event Handling
Keywords: regression
OS: Windows 2000 → All
Product: Mozilla Application Suite → Core
QA Contact: general → ian
Hardware: PC → All
Comment 3•20 years ago
|
||
*** Bug 285820 has been marked as a duplicate of this bug. ***
Comment 4•20 years ago
|
||
I'm not sure of all of the ramifications with doing what I suggest in this
patch to popup.xml are so I am not asking for review. So far my tests have been
favorable in that this works in this instance where the context menu only has
one menupopup as well as when it has additional menupopup elements below that
one and I have not found any side affects as of yet.
Comment 5•20 years ago
|
||
Note (sorry for the spam) - the function that is called by the menuitem uses
nsIPromptService so it doesn't return immediately. I am pretty sure this is why
the context menu continues to display. The odd thing is that it does not
continue to display if the menuitem is a child of the root popup. I suspect that
popupHide is called somewhere else for this instance and I will try to find the
code that closes the popup when it is a child of the root. I suspect that this
may be a toolkit widget bug and that there is code that only fixes this in the
more likely scenario where the menuitem is a child of the root.
Comment 6•20 years ago
|
||
Testcase that demonstrates this behavior. I'm not sure if the patch in progress
is the right way to go since I would expect the popup to not be destroyed when
the function the menuitem calls doesn't immediately return yet the current
behavior is for popuphiding on all menupopup parents and not for the first
popup in the context menu.
Comment 7•20 years ago
|
||
This did regress between 2004-08-09 and 2004-08-10. Maybe a regression from
fixing bug 230170?
Assignee | ||
Comment 8•20 years ago
|
||
Yes, this almost certainly regressed with bug 230170. There were tons of
assumptions in the menu code about things always happening synchronously, and
those assumptions are no longer correct.
Does anyone know exactly which style change is involved here? Or rather, which
attribute is being changed to take down the popup?
Comment 9•20 years ago
|
||
Not sure if this helps but it seems to disappear and then reappear... there is
also bug 71219 that had essentially the same issue.
Assignee | ||
Comment 10•20 years ago
|
||
Hmmm... Probably the "_moz_menuactive" attribute is the issue here (there's
actually style depending on that one). I suppose I could hack that restyle to
be sync too, if we know it only applies to a limited set of content nodes...
I wonder what today's equivalent of DestroyChain is.
Comment 11•20 years ago
|
||
I doubt this is any help but doing a Flush_Layout here instead of a
Flush_OnlyReflow appears to fixe this issue.
http://lxr.mozilla.org/seamonkey/source/layout/xul/base/src/nsPopupSetFrame.cpp#556
Assignee | ||
Comment 12•20 years ago
|
||
Right. Flush_Layout flushes out style reresolves.... but that's a good way to
trigger crashes, when done from frame code.
Assignee | ||
Comment 13•20 years ago
|
||
Robert, are you actively working on this? Or should I try to sort it out?
Comment 14•20 years ago
|
||
bz - please do. I'm not familiar with this code and don't have the time right
now to get up to speed.
Comment 15•20 years ago
|
||
*** Bug 293016 has been marked as a duplicate of this bug. ***
Comment 16•20 years ago
|
||
*** Bug 293551 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 17•20 years ago
|
||
This is the best I can do without rewriting menus to do all this from content
instead of from frames (and to trigger the menu command off an event or
something). It'll do for now, and maybe for 1.9 we can actually rewrite menus
a tad....
Attachment #183698 -
Flags: superreview?(roc)
Attachment #183698 -
Flags: review?(roc)
Attachment #183698 -
Flags: superreview?(roc)
Attachment #183698 -
Flags: superreview+
Attachment #183698 -
Flags: review?(roc)
Attachment #183698 -
Flags: review+
Assignee | ||
Comment 18•20 years ago
|
||
Comment on attachment 183698 [details] [diff] [review]
Wallpaper....
Requesting 1.8b2 approval -- this is a very safe wallpaper for some menu issues
that we can't really address in the 1.8 timeframe...
Attachment #183698 -
Flags: approval1.8b2?
Assignee | ||
Updated•20 years ago
|
Assignee: events → bzbarsky
Summary: contextmenu of about:config does not close when create a new preference name → [FIXr]contextmenu of about:config does not close when create a new preference name
Comment 19•20 years ago
|
||
Comment on attachment 183698 [details] [diff] [review]
Wallpaper....
a=asa
Attachment #183698 -
Flags: approval1.8b2? → approval1.8b2+
Assignee | ||
Comment 20•20 years ago
|
||
Fixed
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.8beta2
Assignee | ||
Comment 21•20 years ago
|
||
*** Bug 265208 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 22•20 years ago
|
||
*** Bug 286775 has been marked as a duplicate of this bug. ***
Updated•6 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•