Migrate the columnpicker binding into a custom element
Categories
(Toolkit :: XUL Widgets, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox66 | --- | fixed |
People
(Reporter: vporof, Assigned: vporof)
References
Details
Attachments
(1 file, 4 obsolete files)
(deleted),
patch
|
vporof
:
review+
|
Details | Diff | Splinter Review |
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Comment 6•6 years ago
|
||
Assignee | ||
Comment 7•6 years ago
|
||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
Updated•6 years ago
|
Assignee | ||
Comment 10•6 years ago
|
||
Updated•6 years ago
|
Comment 11•6 years ago
|
||
Comment 12•6 years ago
|
||
Comment 14•6 years ago
|
||
Assignee | ||
Comment 15•6 years ago
|
||
Assignee | ||
Comment 16•6 years ago
|
||
Assignee | ||
Comment 17•6 years ago
|
||
Assignee | ||
Comment 18•6 years ago
|
||
Comment 21•6 years ago
|
||
Jamie, we are seeing a regression on accessible/tests/mochitest/treeupdate/test_menubutton.xul
with this patch applied: https://treeherder.mozilla.org/#/jobs?repo=try&revision=9526999a2bc95ca6f39022f01fda6b2e68b1a67a&selectedJob=214177265.
Wrong value of property 'role' for ['menuitem node', address: [object XULElement], role: menuitem, name: 'Restore Column Order', address: 0xd5e39e80].got 'menuitem', expected 'check menu item'
Before going further trying to make this test path, I wanted to run this by you. I think this menu item should actually have the menuitem role and not the 'check menu item' role. The reason is that this is an item that you click once and it performs an action (restoring tree column order, I guess) - it never actually gets checked.
Do you think it would make sense to update this test to expect the 'menuitem' role for this button? Presumably XBL is causing some magic (likely due to tag name remapping from 'treecolpicker' to 'button'), but if it's actually leading to a better outcome without it I'd rather save time trying to restore the old behavior.
Comment 22•6 years ago
|
||
This test failure isn't quite what it seems. The test is checking that the first 2 children (2 is hard-coded) in the menu have the desired role:
https://searchfox.org/mozilla-central/source/accessible/tests/mochitest/treeupdate/test_menubutton.xul#52
In this case, it's checking for ROLE_CHECK_MENU_ITEM:
https://searchfox.org/mozilla-central/source/accessible/tests/mochitest/treeupdate/test_menubutton.xul#82
Because this tree has two columns:
https://searchfox.org/mozilla-central/source/accessible/tests/mochitest/treeupdate/test_menubutton.xul#133
I would indeed expect the first two children to have ROLE_CHECK_MENU_ITEM (one per column). The "Restore Column Order" should be the last child, not the first or second. Furthermore, I just checked on Nightly and "Restore Column Order" has ROLE_MENUITEM already.
So, either the column items aren't being exposed at all to accessibility now (very bad) or they've been moved after "Restore Column Order" instead of before (UX change). If the latter is the case and it's intentional, the test would need to be tweaked to look at the last two children in this case.
Comment 23•6 years ago
|
||
(In reply to James Teh [:Jamie] from comment #22)
This test failure isn't quite what it seems. The test is checking that the first 2 children (2 is hard-coded) in the menu have the desired role:
https://searchfox.org/mozilla-central/source/accessible/tests/mochitest/treeupdate/test_menubutton.xul#52
In this case, it's checking for ROLE_CHECK_MENU_ITEM:
https://searchfox.org/mozilla-central/source/accessible/tests/mochitest/treeupdate/test_menubutton.xul#82Because this tree has two columns:
https://searchfox.org/mozilla-central/source/accessible/tests/mochitest/treeupdate/test_menubutton.xul#133
I would indeed expect the first two children to have ROLE_CHECK_MENU_ITEM (one per column). The "Restore Column Order" should be the last child, not the first or second. Furthermore, I just checked on Nightly and "Restore Column Order" has ROLE_MENUITEM already.So, either the column items aren't being exposed at all to accessibility now (very bad) or they've been moved after "Restore Column Order" instead of before (UX change). If the latter is the case and it's intentional, the test would need to be tweaked to look at the last two children in this case.
Interesting, thank you. When I was debugging this locally, I seem to remember only seeing two items total (one option plus the "restore" button), so maybe this is surfacing an actual bug with the conversion where it's not rendering all the columns in the popup.
Victor, can you reproduce this locally? I was commenting out the line gQueue.invoke()
at https://searchfox.org/mozilla-central/source/accessible/tests/mochitest/treeupdate/test_menubutton.xul#83 and then manually clicking on the treecolpicker.
Comment 24•6 years ago
|
||
Assignee | ||
Comment 25•6 years ago
|
||
Fascinating! Let me try this out.
Assignee | ||
Comment 26•6 years ago
|
||
I had to surround anonids[i]
in quotes, and also extend this to a few other call sites. Fingers crossed.
https://treeherder.mozilla.org/#/jobs?repo=try&revision=9b21cfebb14493e78c55b47794e10d04d2e56d7f
Comment 28•6 years ago
|
||
Pushed by ebalazs@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/dae7a246b32d
Migrate the columnpicker binding into a custom element, r=bgrins
Comment 29•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Updated•5 years ago
|
Description
•