Closed Bug 632379 Opened 13 years ago Closed 13 years ago

Can't select some bookmarks

Categories

(Core :: XUL, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla2.0b12
Tracking Status
blocking2.0 --- final+

People

(Reporter: dauge, Assigned: smontagu)

References

(Blocks 1 open bug)

Details

(Keywords: regression, Whiteboard: [hardblocker][has patch])

Attachments

(4 files, 2 obsolete files)

User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:2.0b11) Gecko/20100101 Firefox/4.0b11
Build Identifier: Mozilla/5.0 (Windows NT 5.1; rv:2.0b11) Gecko/20100101 Firefox/4.0b12

bookmarks view scroll down to bottom folders.  can't get to links in these foldes.  links that are in these folders display improperly.

Reproducible: Always

Steps to Reproduce:
1.view
2.bookmarks
3.scroll towards bottom of folders
can't get mouse to links in these folders
This is a bug for the latest nightly of beta 12.  I had backed up to beta 11 because of the problem.

In steps to reproduce and the description of problem ignore the "view" part of it.  This is incorrect.
which nightly exactly, could you please past here the user agent string of that nightly from about:support?
What happens exactly? do those entries appear wrongly or they just don't react to clicks?
Confirmed.
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12pre) Gecko/20110208 Firefox/4.0b12pre ID:20110208030358

Regression window(cached m-c hourly):
Works;
http://hg.mozilla.org/mozilla-central/rev/16cc18d74a8c
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12pre) Gecko/20110205 Firefox/4.0b12pre ID:20110206175132
Fails:
http://hg.mozilla.org/mozilla-central/rev/4c62984f12d1
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b12pre) Gecko/20110207 Firefox/4.0b12pre ID:20110207030345
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=16cc18d74a8c&tochange=4c62984f12d1
Blocks: 508816
Status: UNCONFIRMED → NEW
blocking2.0: --- → ?
Component: Bookmarks & History → XUL
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
QA Contact: bookmarks → xptoolkit.widgets
interesting, LTR vertical scrollboxes should have not been changed by that fix... looks like they were
Attached file sample xul
Assignee: nobody → smontagu
Assignee: smontagu → ehsan
Assigning back to Simon, but I may get to look at it sooner that he does, in which case I'll reassign back to me.
Assignee: ehsan → smontagu
Blocks: 632938
No longer blocks: 632938
The fix to this bug should be tested to make sure that it also fixes bug 632938.
(In reply to comment #10)
> The fix to this bug should be tested to make sure that it also fixes bug
> 632938.

Good point.
Attached patch PatchSplinter Review
This was a consequence of not positioning the rect in LayoutScrollArea before calling Layout.

I'm having trouble writing a test for this. My idea was to open menupopups in a mochitest, with and without scrolling the parent menu, and compare the results of getBoundingClientRect for the submenu. The problem seems to be that getBoundingClientRect returns the place where the submenu should be, not the place where it actually is -- similarly to the way that the mouseover in the testcase responds to the place where the submenu should be and not where it actually is.
Attachment #511418 - Flags: review?(dbaron)
Keywords: checkin-needed
Blocks: 633152
Attached patch Test (obsolete) — Splinter Review
I am checking this out on tryserver: 
http://tbpl.mozilla.org/?tree=MozillaTry&rev=96c67c9edce9 (without the fix)
http://tbpl.mozilla.org/?tree=MozillaTry&rev=357ac3ad571b (with the fix)
Attachment #511479 - Flags: review?(ehsan)
Attachment #511479 - Flags: review?(ehsan) → review+
Whiteboard: [hardblocker] → [hardblocker][has patch]
I'm holding off in landing this until we get try server results.
The test seems to be failing with the fix:

ERROR TEST-UNEXPECTED-FAIL | /tests/layout/generic/test/test_bug632379.xul | Popup should open in the same place when the menu is scrolled - got 88, expected 91
Keywords: checkin-needed
All linux tryservers fail with "Popup should open in the same place when the menu is scrolled - got 88, expected 91"
All OSX tryservers timeout (presumably because |synthesizeKey("M", {altKey: true});| doesn't open the menu)
Windows tryservers pass except for Win XP Opt, which fails with "Popup should open in the same place when the menu is scrolled - got 77, expected 100"

Ehsan, do you have a better idea for a test?
Attached patch Test (obsolete) — Splinter Review
This version passes on linux and windows tryservers -- the difference is that I begin by opening the submenu on line 5, instead of line 3. This ensures that the toplevel menu scrolls down so that the opened menu item is exactly at the bottom of the scrollbox in both parts of the test. The test still fails without the patch, because it doesn't matter if the toplevel menu is scrolled both times that the submenu opens; as long as the amount of scrolling is different the bug still occurs.

I still need to find the right SynthesizeKey incantation to open the menu on Mac.
Attachment #511479 - Attachment is obsolete: true
(In reply to comment #20)
> I still need to find the right SynthesizeKey incantation to open the menu on
> Mac.

Can't you just open the menus with openPopup?  Getting accesskeys to work on Mac is tricky, if possible at all.
well, on Mac you are targeting Minimize Window...
According to this page (https://developer.mozilla.org/en/XUL_Accesskey_FAQ_and_Policies) "On Macintosh, accesskeys are available only in HTML not in XUL, and they are activated using CTRL+letter instead of ALT"
Maybe synthesizeMouseAtCenter?
I think we should land the fix while you work on the test.
Blocks: 632923
Fix landed http://hg.mozilla.org/mozilla-central/rev/51702867d932
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Attached patch testSplinter Review
KISS: $("mainMenu").open works on all platforms http://tbpl.mozilla.org/?tree=MozillaTry&rev=7d9c9b4f6651
Attachment #511721 - Attachment is obsolete: true
Attachment #512033 - Flags: review?(ehsan)
Attachment #512033 - Flags: review?(ehsan) → review+
Test landed http://hg.mozilla.org/mozilla-central/rev/26421a3b68f3
Flags: in-testsuite? → in-testsuite+
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: --- → mozilla2.0b12
Status: REOPENED → RESOLVED
Closed: 13 years ago13 years ago
Resolution: --- → FIXED
Depends on: 675201
Depends on: 816065
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: