Closed Bug 345141 Opened 18 years ago Closed 18 years ago

arrows on scrollbars do nothing

Categories

(Core :: XUL, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

VERIFIED FIXED

People

(Reporter: aja+bugzilla, Assigned: ispiked)

References

Details

(Keywords: regression)

Attachments

(1 file, 2 obsolete files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060718 Minefield/3.0a1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060718 Minefield/3.0a1 Up/down arrows on vertical scrollbars are nonfunctional Reproducible: Always Steps to Reproduce: 1. Left click up or down arrow on vertical scrollbar 2. 3. Actual Results: no scrolling Expected Results: scrolling Since checkin of bug 303048 perhaps?
Using: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060718 Minefield/3.0a1 ID:2006071817 [cairo]
I backed out bug 303048 locally and I'm not seeing this. Looks like this is regression from it.
Confirming with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060719 Minefield/3.0a1 ID:2006071903 [cairo]
Blocks: 303048
Severity: normal → major
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: blocking1.9a1?
Keywords: regression
Product: Firefox → Core
Version: unspecified → Trunk
Assignee: nobody → jag
Component: General → XP Toolkit/Widgets
QA Contact: general → xptoolkit.widgets
Assignee: jag → ispiked
Attached patch patch to try (obsolete) (deleted) — Splinter Review
mwu pointed out that I wasn't returning anything most of the time in this function. Not sure if this is the root cause of the problem, though...
When I change this code (in nsscrollbarbuttonframe.cpp) from instead to returning false: if (NS_FAILED(aPresContext->LookAndFeel()->GetMetric(tmpAction, pressedButtonAction))) from: return PR_FALSE; to: pressedButtonAction = 0; I get the scrolling working again.
Attached file patch (obsolete) (deleted) —
This fixes it for me.
Attachment #229869 - Flags: review?(neil)
Attached patch patch to fix (deleted) — Splinter Review
This will fix stuff, but I'm still trying to figure out how a trunk build I pulled and compiled from CVS is not making scrollbars active when I right or middle click them, but my own build that I originally made this patch in is.
Attachment #229838 - Attachment is obsolete: true
Attachment #229888 - Flags: superreview?(roc)
Attachment #229888 - Flags: review?(roc)
Attachment #229869 - Attachment is obsolete: true
Attachment #229869 - Attachment is patch: false
Attachment #229869 - Flags: review?(neil)
(In reply to comment #7) > I'm still trying to figure out how a trunk build I > pulled and compiled from CVS is not making scrollbars active when I right or > middle click them, but my own build that I originally made this patch in is. That's probably a separate bug that we should fix separately.
Comment on attachment 229888 [details] [diff] [review] patch to fix good to go
Attachment #229888 - Flags: superreview?(roc)
Attachment #229888 - Flags: superreview+
Attachment #229888 - Flags: review?(roc)
Attachment #229888 - Flags: review+
I filed bug 345245 for the issue I mentioned in comment 7.
Checking in widget/src/gtk2/nsLookAndFeel.cpp; /cvsroot/mozilla/widget/src/gtk2/nsLookAndFeel.cpp,v <-- nsLookAndFeel.cpp new revision: 1.29; previous revision: 1.28 done Checking in widget/src/xpwidgets/nsXPLookAndFeel.cpp; /cvsroot/mozilla/widget/src/xpwidgets/nsXPLookAndFeel.cpp,v <-- nsXPLookAndFee l.cpp new revision: 1.52; previous revision: 1.51 done Checking in layout/xul/base/src/nsScrollbarButtonFrame.cpp; /cvsroot/mozilla/layout/xul/base/src/nsScrollbarButtonFrame.cpp,v <-- nsScroll barButtonFrame.cpp new revision: 1.48; previous revision: 1.47 done Checked into trunk.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: blocking1.9a1?
Comment on attachment 229888 [details] [diff] [review] patch to fix If you're not going to use the prefs you might as well #ifdef the scrollbar button code...
*** Bug 345273 has been marked as a duplicate of this bug. ***
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: