Closed
Bug 994194
Opened 11 years ago
Closed 11 years ago
Widget subview panels show unnecessary scrollbar when opened in the toolbar
Categories
(Firefox :: Toolbars and Customization, defect)
Tracking
()
VERIFIED
FIXED
Firefox 32
People
(Reporter: u428464, Assigned: enndeakin)
References
(Blocks 1 open bug)
Details
(Whiteboard: [Australis:P4] p=0 s=it-32c-31a-30b.2 [qa!])
Attachments
(3 files, 1 obsolete file)
25.25 KB,
image/png
|
Details | |
8.99 KB,
image/png
|
Details | |
1.91 KB,
patch
|
mconley
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
When the history widget is put into the toolbar, the history panel shows a scrollbar even if there is no need for it (ie even if there are only a few entries).
Blocks: australis-cust
Whiteboard: [australis:P?]
Summary: History widget panel has unnecessary scrollbar → History widget panel shows unnecessary scrollbar
Comment 2•11 years ago
|
||
Is this only on trunk? Screenshot? Really need more details here. :-(
Flags: needinfo?(ge3k0s)
The issue appeared in today's build. It's probably the known issue related to new arrowpanel animation (bug 610545) that prevented the menu panel to be animated too, see bug 989991.
Flags: needinfo?(ge3k0s)
Comment 4•11 years ago
|
||
Confirmed on Windows 8.1 The new panel animation also added a scrollbar during the animation for the developer widget, but I'll file a new bug about that in case there isn't one yet.
Comment 5•11 years ago
|
||
(In reply to Tim Nguyen [:ntim] (Limited internet 14-24 April) from comment #4) > Confirmed on Windows 8.1 > > The new panel animation also added a scrollbar during the animation for the > developer widget, but I'll file a new bug about that in case there isn't one > yet. Please don't. The cause is very likely the same. Can we just keep these in one bug for now? Thanks!
Updated•11 years ago
|
Summary: History widget panel shows unnecessary scrollbar → Widget subview panels show unnecessary scrollbar when opened in the toolbar
Comment 6•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #5) > (In reply to Tim Nguyen [:ntim] (Limited internet 14-24 April) from comment > #4) > > Confirmed on Windows 8.1 > > > > The new panel animation also added a scrollbar during the animation for the > > developer widget, but I'll file a new bug about that in case there isn't one > > yet. > > Please don't. The cause is very likely the same. Can we just keep these in > one bug for now? Thanks! Well, the developer widget bug only happens during the animation. While the history widget bug happens at any time. Not the same cause.
Comment 7•11 years ago
|
||
Also, the sidebar widget is unaffected.
Comment 8•11 years ago
|
||
But the Open With addon is affected by this.
Comment 9•11 years ago
|
||
(In reply to Tim Nguyen [:ntim] (Limited internet 14-24 April) from comment #8) > But the Open With addon is affected by this. All of this is useful information. The problem is, we've had several (like more than 3) bugs with scrollbars in these views in the past. I'm not sure if the "Open with" add-on uses our types of subviews, because I'm not familiar with the add-on, but it seems clear that there is a general problem where the animation work is causing scrollbars. It's possible that all the individual consumers that do break need to be fixed on their own rather than fixing something general about panels on Windows 7/8 (does this reproduce on XP luna/classic? What about Win7 classic?), but first, we should investigate. We can file extra bugs later, but splitting the investigation into separate bugs means we split the information, which isn't a good idea as long as we don't know exactly what's causing the problem(s).
Comment 10•11 years ago
|
||
RSS-panel (i.e. https://blog.mozilla.org/nnethercote/ ) and the Sidebars-panel (for a fraction of a second) are affected, too.
Comment 11•11 years ago
|
||
Open With uses CustomizableUI widgets, with the subview model. I think we should back the animation out until we figure out how to fix this.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•11 years ago
|
Flags: firefox-backlog+
Whiteboard: [Australis:P?] → [Australis:P?] p=0
Comment 13•11 years ago
|
||
Neil, do you know what's causing this and where to look for a fix? We're doing maths to size the panel (same as for the main menu panel) and that's getting messed up by the animations. The current problem isn't really shippable, and AIUI you disabled the animation for the main panel menu for this reason. We should really figure this out, because if we disable the animation for these panels too (which I guess we can do if this reaches the end of Aurora and we still don't have a fix), that's most of the high-visibility panels affected (with the downloads and bookmarks panel also planned to transition to the same standalone panel model that the 'real' subviews are using already), which halfway defeats the point of having a general panel animation, and also makes the UI look inconsistent.
status-firefox29:
--- → unaffected
status-firefox30:
--- → unaffected
status-firefox31:
--- → affected
tracking-firefox31:
--- → ?
Flags: needinfo?(enndeakin)
Updated•11 years ago
|
Comment 14•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #13) > Neil, do you know what's causing this and where to look for a fix? We're > doing maths to size the panel (same as for the main menu panel) and that's > getting messed up by the animations. The current problem isn't really > shippable, and AIUI you disabled the animation for the main panel menu for > this reason. > > We should really figure this out, because if we disable the animation for > these panels too (which I guess we can do if this reaches the end of Aurora > and we still don't have a fix), that's most of the high-visibility panels > affected (with the downloads and bookmarks panel also planned to transition > to the same standalone panel model that the 'real' subviews are using > already), which halfway defeats the point of having a general panel > animation, and also makes the UI look inconsistent. Maybe we calculate the dimensions before the transition ends.
Updated•11 years ago
|
Whiteboard: [Australis:P?] p=0 → [Australis:P4] p=0
Assignee | ||
Comment 16•11 years ago
|
||
When this history panel is on the toolbar, why does the history panel need to set the height at all? If I disable the _setMaxHeight and _syncContainerWithMainView methods in panelUI.xml, everything seems to work fine. Is there some specific edge case I'm missing?
Flags: needinfo?(enndeakin) → needinfo?(gijskruitbosch+bugs)
Comment 17•11 years ago
|
||
(In reply to Neil Deakin from comment #16) > When this history panel is on the toolbar, why does the history panel need > to set the height at all? > > If I disable the _setMaxHeight and _syncContainerWithMainView methods in > panelUI.xml, everything seems to work fine. Is there some specific edge case > I'm missing? It might not. The use of the panelmultiview in the toolbar's panel is a hack to begin with. Mike would know for sure.
Flags: needinfo?(gijskruitbosch+bugs) → needinfo?(mconley)
Assignee | ||
Comment 19•11 years ago
|
||
Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Comment 20•11 years ago
|
||
Per just duped bug 1006503, this affects Fx30.
tracking-firefox30:
--- → ?
Assignee | ||
Updated•11 years ago
|
Attachment #8418188 -
Flags: review?(mconley)
Flags: needinfo?(mconley)
Comment 21•11 years ago
|
||
(In reply to :Gijs Kruitbosch from comment #17) > (In reply to Neil Deakin from comment #16) > > When this history panel is on the toolbar, why does the history panel need > > to set the height at all? > > > > If I disable the _setMaxHeight and _syncContainerWithMainView methods in > > panelUI.xml, everything seems to work fine. Is there some specific edge case > > I'm missing? > > It might not. The use of the panelmultiview in the toolbar's panel is a hack > to begin with. Mike would know for sure. Enn and I talked IRL. I'm not convinced the _setMaxHeight and _sync functions are necessarily needed for widgets in the toolbar. I'll review this patch shortly.
Comment 22•11 years ago
|
||
Comment on attachment 8418188 [details] [diff] [review] Don't set height of panels when on the toolbar Review of attachment 8418188 [details] [diff] [review]: ----------------------------------------------------------------- I took a look at panelUI.js, which is the content script that handles most of our panel logic, and it looks like we set a "nosubviews" attribute to "true" when we open widgets like this on the toolbar. I think we should use that instead to decide whether or not to run those functions. Can we use that instead?
Attachment #8418188 -
Flags: review?(mconley) → review-
Assignee | ||
Comment 23•11 years ago
|
||
Attachment #8418188 -
Attachment is obsolete: true
Attachment #8418895 -
Flags: review?(mconley)
Comment 24•11 years ago
|
||
Comment on attachment 8418895 [details] [diff] [review] noscrolltoolbar Review of attachment 8418895 [details] [diff] [review]: ----------------------------------------------------------------- This looks good to me. Thanks Enn!
Attachment #8418895 -
Flags: review?(mconley) → review+
Assignee | ||
Comment 25•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/003470a559cb
Comment 26•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/003470a559cb
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 32
Updated•11 years ago
|
Whiteboard: [Australis:P4] p=0 → [Australis:P4] p=0 s=it-32c-31a-30b.2 [qa?]
Updated•11 years ago
|
Whiteboard: [Australis:P4] p=0 s=it-32c-31a-30b.2 [qa?] → [Australis:P4] p=0 s=it-32c-31a-30b.2 [qa+]
Updated•11 years ago
|
Comment 28•11 years ago
|
||
Uplift nominations for Beta/Aurora please?
status-firefox32:
--- → fixed
Flags: needinfo?(enndeakin)
Assignee | ||
Comment 29•11 years ago
|
||
Comment on attachment 8418895 [details] [diff] [review] noscrolltoolbar [Approval Request Comment] Bug caused by (feature/regressing bug #): 610545 User impact if declined: unneeded scrollbars appear and disappear in bookmarks/history menus and other menus Testing completed (on m-c, etc.): yes Risk to taking this patch (and alternatives if risky): none String or IDL/UUID changes made by this patch: none
Attachment #8418895 -
Flags: approval-mozilla-aurora?
Flags: needinfo?(enndeakin)
Assignee | ||
Comment 30•11 years ago
|
||
Comment on attachment 8418895 [details] [diff] [review] noscrolltoolbar [Approval Request Comment] Bug caused by (feature/regressing bug #): 610545 User impact if declined: scrollbars appears on menus Testing completed (on m-c, etc.): Risk to taking this patch (and alternatives if risky): I can't reproduce the problem described by bug 1006503 which got this bug marked for firefox30, so I'm not 100% sure it fixes it, but I don't think the patch itself has any risk String or IDL/UUID changes made by this patch: none
Attachment #8418895 -
Flags: approval-mozilla-beta?
Updated•11 years ago
|
Attachment #8418895 -
Flags: approval-mozilla-beta?
Attachment #8418895 -
Flags: approval-mozilla-beta+
Attachment #8418895 -
Flags: approval-mozilla-aurora?
Attachment #8418895 -
Flags: approval-mozilla-aurora+
Comment 31•11 years ago
|
||
Tracy, would be good to have some idea of both verification on the issue being resolved but also making sure that even if we can't reproduce, the patch doesn't regress any existing QA in this area of the UI.
Flags: needinfo?(twalker)
Keywords: verifyme
Updated•11 years ago
|
QA Contact: cornel.ionce
Comment 32•11 years ago
|
||
I've verified this issue on Windows 8.1 32bit, Windows 7 64bit, Ubuntu 13.04 and Mac OS X 10.9 using latest Firefox Nightly, build ID: 20140513030201. Also checked that the scenario from bug 1006503 is fixed for Fx 32. Marking this bug as verified and won't change the [qa+] tag until I can confirm this fix on Aurora and Beta.
Assignee | ||
Comment 33•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/1009e9e8a64e https://hg.mozilla.org/releases/mozilla-beta/rev/9bd4a69ee2e0
Updated•11 years ago
|
Comment 35•11 years ago
|
||
Verified as fixed on latest Aurora (build ID: 20140515004001) and on Firefox 30 beta 5 (build ID: 20140515140857).
Whiteboard: [Australis:P4] p=0 s=it-32c-31a-30b.2 [qa+] → [Australis:P4] p=0 s=it-32c-31a-30b.2 [qa!]
Comment 36•11 years ago
|
||
My addon (KeeFox[1]) has been broken by the change introduced in this bug because I set my addon panel height to the same value as set in the property removed by this bug. The reason I do this is that the default behaviour of the PanelUI in FF29 is to produce panels that do not have the correct size and/or scrollbar presence for the (XHTML) content my addon includes in the panel. By adjusting my addon panel height after the panel has been opened (and via a setTimeout) I managed to work around the problem. The workaround is in this bit of source code: https://github.com/luckyrat/KeeFox/blob/v1.4.1/Firefox%20addon/KeeFox/chrome/content/panel.js#L1601-L1627 I notice that there are a variety of related bugs being targeted at the nightly channel so I hope that FF32 will resolve the underlying problems that cause me to require this workaround. I'm just not sure how else I can work around the problem in 30 and 31 if this bug is not reverted. Should I be trying to work around this change in another way? I'm happy to implement an alternative workaround and/or help refine a test case for the underlying unreliability of the panel size but considering there are already several changes being worked on in this area, I would appreciate some guidance on the right way to approach this. [1]: KeeFox - https://addons.mozilla.org/en-US/firefox/addon/keefox/
Comment 37•11 years ago
|
||
@chris Would recommend to you to open a new bug regarding this issue. Here will nothing happen.
Comment 38•11 years ago
|
||
(In reply to Chris Tomlinson from comment #36) > My addon (KeeFox[1]) has been broken by the change introduced in this bug > because I set my addon panel height to the same value as set in the property > removed by this bug. > > The reason I do this is that the default behaviour of the PanelUI in FF29 is > to produce panels that do not have the correct size and/or scrollbar > presence for the (XHTML) content my addon includes in the panel. > > By adjusting my addon panel height after the panel has been opened (and via > a setTimeout) I managed to work around the problem. The workaround is in > this bit of source code: > https://github.com/luckyrat/KeeFox/blob/v1.4.1/Firefox%20addon/KeeFox/chrome/ > content/panel.js#L1601-L1627 > > I notice that there are a variety of related bugs being targeted at the > nightly channel so I hope that FF32 will resolve the underlying problems > that cause me to require this workaround. I'm just not sure how else I can > work around the problem in 30 and 31 if this bug is not reverted. > > Should I be trying to work around this change in another way? I'm happy to > implement an alternative workaround and/or help refine a test case for the > underlying unreliability of the panel size but considering there are already > several changes being worked on in this area, I would appreciate some > guidance on the right way to approach this. > > [1]: KeeFox - https://addons.mozilla.org/en-US/firefox/addon/keefox/ Hey Chris, thanks for making us aware. The best thing to do would be to file a new bug, ideally (but not necessarily) with a somewhat reduced testcase. I'm unsure why your add-on needs to set its panel size to begin with, and after looking at the code you linked for some time, I'm still not sure. :-) I did notice you had to hack around another problem to do with when onViewShowing is fired. Would you mind filing a separate bug about that as well? We should really just have working APIs for all the add-ons out there. :-)
Flags: needinfo?(luckyrat)
Comment 39•11 years ago
|
||
Thanks for the replies. I've created two new bugs (#1012925 and #1012920). I'll also try to create a bug for the mentioned onViewShowing bug but might not get time to do that for a couple of days. In the mean time, it might be useful to know that I think it is related to the issue mentioned in the "Australis for add-on developers post part 2"[1] (specifically the bit near the end where we have to use a timer to work around the fact that onViewShowing is called at an inconvenient point in the view showing process). [1]: https://blog.mozilla.org/addons/2014/03/06/australis-for-add-on-developers-2/
Flags: needinfo?(luckyrat)
You need to log in
before you can comment on or make changes to this bug.
Description
•