Closed Bug 291390 Opened 19 years ago Closed 19 years ago

Failure opening bookmarks menuitem

Categories

(Core :: XUL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: ShareBird, Assigned: roc)

References

Details

(Keywords: regression, testcase)

Attachments

(4 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050410 Firefox/1.0+
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050420 Firefox/1.0+

If you have a long list of bookmarks (around 80) and a folder at the end of this
list, its contents will not be accessible through bookmarks menu at main menu,
a menuitem will not popup if you scroll down until this folder. I guess this
menuitem will popup in a wrong position like the testcase demonstrate.

This issue started with Build 20050405. Build 20050404 works as expected.

Reproducible: Always

Steps to Reproduce:
1.Use "Bookmarks -> Manage Bookmarks..." to import the attached bookmark file
2.Go to Bookmarks menu at main menu
3.Open the "Test Case" folder
4.Point the mouse over the "Folder 00". A menuitem will normally popup.
5.Scroll down to "Folder 01", "Folder 02", "Folder 03" and "Folder 04". "Folder
04 will not popup its contents...
6.Scroll up to "Folder 03", "Folder 02" and "Folder 01". 
Actual Results:  
Abnormal behaviour from menuitem popup.

Expected Results:  
Mouse pointing folders at bookmarks menu should popup menuitem with its contents
normally.
Attached file testcase
This testcase shows that this is not specific to bookmarks. I suspect the
product and component should be updated accordingly but I am unsure exactly
what they should be.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Attached file another testcase
check this test
Comment on attachment 181507 [details]
another testcase

maybe this bug related to the showPopup position bug, look at User Contributed
Notes in xulplanet Popup about this issue
Depends on: 291083
Keywords: testcase
Bonsai for that range shows bug 256505 as a possible cause.
Assignee: vladimir+bm → nobody
Severity: major → normal
Component: Bookmarks → XP Toolkit/Widgets: Menus
Keywords: regression
Product: Firefox → Core
QA Contact: mconnor
Version: unspecified → Trunk
Bug 291083 is 1.9-era work, so it's not really a blocker for fixing this regression.

I don't know what the hours on the builds in comment 0 were (you really want to
include those, not just the date), but build 2005-04-05-06 works fine.  Build
2005-04-06-06 is broken.

Tried backing out bug 256505, and  that fixed the issue here...
Assignee: nobody → roc
Blocks: 256505
Flags: blocking1.8b2?
OS: Windows XP → All
Hardware: PC → All
No longer depends on: 291083
Attached patch fixSplinter Review
nsMenuPopupFrame does all this work to calculate view offsets that I think is
entirely unnecessary. I don't know why it wants to ignore the offsets of some
scrolled views. If I replace this with the obvious simple code, things seem to
work (nested menus, menus near screen boundaries, etc) and in particular this
bug is fixed. In particular, context menus in scrolled documents work. Anything
else I might have forgotten to test?
Attachment #181818 - Flags: superreview?(bzbarsky)
Attachment #181818 - Flags: review?(bzbarsky)
Comment on attachment 181818 [details] [diff] [review]
fix

r+sr=bzbarsky, but one thing you should test is a XUL menu inside a scrolled
document.  That should exercise that second chunk of code (where we're aligning
to a frame); context menus do not exercise it.
Attachment #181818 - Flags: superreview?(bzbarsky)
Attachment #181818 - Flags: superreview+
Attachment #181818 - Flags: review?(bzbarsky)
Attachment #181818 - Flags: review+
Comment on attachment 181818 [details] [diff] [review]
fix

fixes menu regression and simplifies the menu code a lot.
Attachment #181818 - Flags: approval1.8b2?
Comment on attachment 181818 [details] [diff] [review]
fix

a=asa
Attachment #181818 - Flags: approval1.8b2? → approval1.8b2+
checked in
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Flags: blocking1.8b2?
*** Bug 293213 has been marked as a duplicate of this bug. ***
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: