Closed
Bug 888749
Opened 11 years ago
Closed 11 years ago
cant scroll in bookmarks list with mouse wheel ?
Categories
(Toolkit :: UI Widgets, defect)
Tracking
()
VERIFIED
FIXED
mozilla25
Tracking | Status | |
---|---|---|
firefox24 | --- | unaffected |
firefox25 | + | verified |
People
(Reporter: mayankleoboy1, Assigned: mrbkap)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
1.16 KB,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20130630 Firefox/25.0 (Nightly/Aurora) Build ID: 20130630031138 Steps to reproduce: 1. Create fresh profile 2. Add enough bookmarks that they fill the vertical height of the screen, and you need to scroll to see all the bookmarks. 3. Use the mouse-wheel to scroll the bookmarks Actual results: Cant scroll them Expected results: Should have been able to.
Reporter | ||
Updated•11 years ago
|
Component: Untriaged → Bookmarks & History
Reporter | ||
Comment 1•11 years ago
|
||
i am using the bookmark button, not the bookmark menu, neither the bookmark bar.
Comment 2•11 years ago
|
||
Regression window(m-c) Good: http://hg.mozilla.org/mozilla-central/rev/c5ce065936fa Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20130628 Firefox/25.0 ID:20130628182742 Bad: http://hg.mozilla.org/mozilla-central/rev/cbb24a4a96af Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20130629 Firefox/25.0 ID:20130629065543 Pushlog: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c5ce065936fa&tochange=cbb24a4a96af Regression window(m-i) Good: http://hg.mozilla.org/integration/mozilla-inbound/rev/4df4f2767a69 Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20130628 Firefox/25.0 ID:20130628184843 Bad: http://hg.mozilla.org/integration/mozilla-inbound/rev/1b8207252e9c Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20130628 Firefox/25.0 ID:20130628185242 Pushlog: http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=4df4f2767a69&tochange=1b8207252e9c Regressed by : Bug 653881 I wonder, Is the automatic test absent?
Blocks: 653881
Status: UNCONFIRMED → NEW
status-firefox25:
--- → affected
tracking-firefox25:
--- → ?
Component: Bookmarks & History → XBL
Ever confirmed: true
Keywords: regression
Product: Firefox → Core
Updated•11 years ago
|
OS: Windows 7 → All
Updated•11 years ago
|
Flags: in-testsuite?
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → mrbkap
Assignee | ||
Comment 3•11 years ago
|
||
This patch maintains the current behavior against the code that changed for bug 653881 since we no longer remove <xbl:children> elements from the tree. Unfortunately, this fix is pretty ugly. I don't see a way of making any nicer, though.
Attachment #769965 -
Flags: review?(dao)
Comment 4•11 years ago
|
||
I'm not sure I understand this patch. I thought xbl:children would no longer be removed from the shadow DOM tree, but then it should still be invisible to non-shadow DOM methods called on the bound element, shouldn't it? Why would this.childNodes contain the xbl:children node?
Assignee | ||
Comment 6•11 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #4) > I'm not sure I understand this patch. I thought xbl:children would no longer > be removed from the shadow DOM tree, but then it should still be invisible > to non-shadow DOM methods called on the bound element, shouldn't it? Why > would this.childNodes contain the xbl:children node? The 'this' element in question here is found at: http://hg.mozilla.org/mozilla-central/file/23ce4eab8fb1/toolkit/content/widgets/scrollbox.xml#l33 so there's a binding applied to it, but at the same time, it itself is part of a binding's <content>. Before, we'd remove the <children> from the tree, leading this particular <scrollbox> to have no children. Now, we leave the <children> elements in the tree, causing the confusion. Does that make sense?
Comment 7•11 years ago
|
||
(In reply to Blake Kaplan (:mrbkap) from comment #6) > (In reply to Dão Gottwald [:dao] from comment #4) > > I'm not sure I understand this patch. I thought xbl:children would no longer > > be removed from the shadow DOM tree, but then it should still be invisible > > to non-shadow DOM methods called on the bound element, shouldn't it? Why > > would this.childNodes contain the xbl:children node? > > The 'this' element in question here is found at: > http://hg.mozilla.org/mozilla-central/file/23ce4eab8fb1/toolkit/content/widgets/scrollbox.xml#l33 I don't think that's true. _getScrollableElements is implemented on <arrowscrollbox>, not <scrollbox>.
Assignee | ||
Comment 8•11 years ago
|
||
(In reply to Dão Gottwald [:dao] from comment #7) > I don't think that's true. _getScrollableElements is implemented on > <arrowscrollbox>, not <scrollbox>. Sorry, the correct link is http://mxr.mozilla.org/mozilla-central/source/browser/components/places/content/menu.xml?rev=f4157e8c4107#20 -- it's the same situation, though.
Comment 9•11 years ago
|
||
Comment on attachment 769965 [details] [diff] [review] Proposed patch v1 > <method name="_getScrollableElements"> > <body><![CDATA[ >- var nodes = this.hasChildNodes() ? >- this.childNodes : document.getBindingParent(this).childNodes; >+ var nodes = this.childNodes; >+ if (nodes.length === 0 || >+ (nodes.length === 1 && >+ nodes[0].localName === "children" && >+ nodes[0].namespaceURI === "http://www.mozilla.org/xbl")) { >+ nodes = document.getBindingParent(this).childNodes; >+ } If nodes.length is 0, we know that the binding parent's child nodes (if there's a binding parent at all) won't be child nodes of the scrollbox, so why would we consider them scrollable?
Assignee | ||
Comment 10•11 years ago
|
||
That was me being too conservative in maintaining the old behavior.
Attachment #769965 -
Attachment is obsolete: true
Attachment #769965 -
Flags: review?(dao)
Attachment #770517 -
Flags: review?(dao)
Comment 11•11 years ago
|
||
Comment on attachment 770517 [details] [diff] [review] Proposed patch v1.1 The strict type checking of === isn't useful here, please use the way more common ==.
Attachment #770517 -
Flags: review?(dao) → review+
Updated•11 years ago
|
Component: XBL → XUL Widgets
Product: Core → Toolkit
Comment 13•11 years ago
|
||
On a Long folder list, if I use the 'down arrow' of folder list to navigate to the end of the long list, using the mouse wheel, list will scroll up only, approximately 1/4 line or 10px per 'up' movement of the mouse wheel, But ONLY in a Bookmarks Toolbar folder, sub-folder and Not in the top Bookmarks folder (parent folder in Bookmarks Toolbar) and 'scroll up' only (not down) (openSuSE 12.3, KDE 4.10.4/5, system set to 1 'line' per scroll of mouse)
Updated•11 years ago
|
status-firefox24:
--- → unaffected
Assignee | ||
Comment 14•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7e8f88b5e649
Comment 15•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7e8f88b5e649
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Comment 16•11 years ago
|
||
Thank You! Landis.
Comment 17•11 years ago
|
||
Verified as fixed on Firefox 25 beta 1: Windows 7 64bit, Mac OSX 10.8.4 64bit, Ubuntu 13.04 64bit.
Updated•9 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•