Closed
Bug 952753
Opened 11 years ago
Closed 11 years ago
Australis: Toolbar buttons with type "menu-button" don't work correctly with Widget Overflow popup panel.
Categories
(Firefox :: Toolbars and Customization, defect)
Tracking
()
VERIFIED
FIXED
Firefox 30
People
(Reporter: dave.r.wilson, Assigned: Gijs)
References
(Blocks 1 open bug)
Details
(Keywords: addon-compat, Whiteboard: [Australis:P3])
Attachments
(2 files)
100.03 KB,
application/x-xpinstall
|
Details | |
1018 bytes,
patch
|
MattN
:
review+
Gavin
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 (Beta/Release)
Build ID: 20131025151332
Steps to reproduce:
I am currently updating three of my add-ons (Print Edit, Tile Tabs & Zoom Page) to work with the Australis UI. Print Edit and Tile Tabs each have a single toolbar button with type="menu-button". Zoom Page has a <toolbaritem> containing three toolbar buttons all with type="button", and one of these buttons creates its own popup menu.
[Note: When the toolbar buttons are in the Menu Panel or Overflow Panel, I have found it necessary to add the noautoclose="true" attribute to all of the toolbar buttons. Without this attribute, when a button is clicked and the drop-down menu is shown, the Menu Panel or Overflow Panel closes. I'm not sure if it should be necessary to add this attribute.]
When the toolbar buttons are in the Overflow Panel, there are some focus problems causing unexpected closing of the Overflow Panel. These problems affect the toolbar buttons of all three add-ons. The simplest case to look at is the toolbar button of Print Edit.
There are several use cases:
First Use Case (works correctly)
1. Open Overflow Panel.
2. Click on toolbar button drop marker to show drop-down menu.
3. Click on browser page contents. Drop-down menu closes [as expected]. Overflow Panel stays open [as expected].
5. Repeat 3. Drop-down menu closes [as expected]. Overflow Panel stays open [as expected].
Second Use Case (browser window loses focus)
1. Open Overflow Panel.
2. Click on toolbar button drop marker to show drop-down menu.
3. Click on Overflow panel background. Drop-down menu closes [as expected]. Overflow Panel stays open [as expected]. Browser window loses focus [NOT EXPECTED].
4. Repeat 2.
5. Repeat 3. Drop-down menu closes [as expected]. Overflow Panel stays open [as expected].
Third Use Case (overflow panel closes unexpectedly)
1. Open Overflow Panel.
2. Click on toolbar button drop marker to show drop-down menu.
3. Click on Overflow panel background. Drop-down menu closes [as expected]. Overflow Panel stays open [as expected]. Browser window loses focus [NOT EXPECTED].
4. Repeat 2.
5. Click on browser page contents. Drop-down menu closes [as expected]. Overflow Panel closes [NOT EXPECTED].
Actual results:
In some circumstances (as described above), the Overflow Panel closes when a toolbar button drop-down menu is shown.
Expected results:
The Overflow Panel should stay open when a toolbar button drop-down menu is shown.
Reporter | ||
Comment 1•11 years ago
|
||
I forgot to mention - all three use cases work correctly when the toolbar buttons are in the Menu Panel, instead of the Overflow Panel.
Assignee | ||
Updated•11 years ago
|
Blocks: australis-cust, australis-addons
Component: Untriaged → Toolbars and Customization
Version: 25 Branch → Trunk
Assignee | ||
Comment 2•11 years ago
|
||
(In reply to dave.r.wilson from comment #0)
> [Note: When the toolbar buttons are in the Menu Panel or Overflow Panel, I
> have found it necessary to add the noautoclose="true" attribute to all of
> the toolbar buttons. Without this attribute, when a button is clicked and
> the drop-down menu is shown, the Menu Panel or Overflow Panel closes. I'm
> not sure if it should be necessary to add this attribute.]
See bug 940307. We may also need that bug for some of the other issues in here.
Depends on: 940307
Comment 3•11 years ago
|
||
Confirmed the use cases 2,3 from the comment 0, nightly 29.0a1(2014-01-28), win 7 x64
Comment 4•11 years ago
|
||
I'm not sure how common it is for users to click in the overflow panel background.
Whiteboard: [Australis:P3]
Updated•11 years ago
|
Keywords: addon-compat
Updated•11 years ago
|
Assignee | ||
Comment 5•11 years ago
|
||
This fixes things for me, and is a pretty minimal change. Matt, thoughts?
Attachment #8382609 -
Flags: review?(MattN+bmo)
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED
Comment 6•11 years ago
|
||
Comment on attachment 8382609 [details] [diff] [review]
don't use level='top', do use noautofocus, for australis overflow panel,
Review of attachment 8382609 [details] [diff] [review]:
-----------------------------------------------------------------
::: browser/components/customizableui/content/panelUI.inc.xul
@@ +220,5 @@
>
> <panel id="widget-overflow"
> role="group"
> type="arrow"
> + noautofocus="true"
It seems the product is inconsistent regarding noautofocus and I don't know of guidelines on its use…
In this case since focusing the overflow panel is of no value AFAICT (the items are not focusable just like the rest of the toolbar buttons), I think this is fine.
Attachment #8382609 -
Flags: review?(MattN+bmo) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Whiteboard: [Australis:P3] → [Australis:P3][fixed-in-fx-team]
Comment 8•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [Australis:P3][fixed-in-fx-team] → [Australis:P3]
Target Milestone: --- → Firefox 30
Assignee | ||
Comment 9•11 years ago
|
||
Comment on attachment 8382609 [details] [diff] [review]
don't use level='top', do use noautofocus, for australis overflow panel,
[Approval Request Comment]
Bug caused by (feature/regressing bug #): Australis
User impact if declined: Focus changes and popups appearing/disappearing aren't consistent between the navbar's overflow panel and the main menu panel
Testing completed (on m-c, etc.): on m-c for a bit
Risk to taking this patch (and alternatives if risky): relatively low; makes things more consistent, less chance of breakage than leaving it as-is, IMO.
String or IDL/UUID changes made by this patch: none
Attachment #8382609 -
Flags: approval-mozilla-aurora?
Updated•11 years ago
|
Attachment #8382609 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Assignee | ||
Comment 10•11 years ago
|
||
status-firefox29:
--- → fixed
status-firefox30:
--- → fixed
Comment 11•11 years ago
|
||
Dave, can you please verify that this is fixed for you in Firefox 29?
Flags: needinfo?(dave.r.wilson)
Comment 12•11 years ago
|
||
I have tested the three use cases (in my original problem report) and I confirm that this bug has been fixed.
Dave
Assignee | ||
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
Flags: needinfo?(dave.r.wilson)
You need to log in
before you can comment on or make changes to this bug.
Description
•