gecko-dev/toolkit/content/tests/chrome
Emilio Cobos Álvarez 38b10eafda Bug 1824236 - Stop using XUL layout for scrollbars. r=jwatt
This rewrites scrollbar layout to work with regular reflow rather than
box layout.

Overall it's about the same amount of code (mostly because
nsScrollbarFrame::Reflow is sorta hand-rolled), but it cleans up a bit
and it is progress towards removing XUL layout altogether, without
getting into much deeper refactoring.

This also blocks some other performance improvements and refactorings I
want to make in this code.

We make some assumptions to simplify the code that to some extent were
made already before, both explicitly and by virtue of using XUL layout.

In particular, we assume that scrollbar / slider / thumb has no border or
padding and that the writing-mode is horizontal ltr.

Differential Revision: https://phabricator.services.mozilla.com/D173489
2023-03-27 20:54:53 +00:00
..
RegisterUnregisterChrome.js
bug263683_window.xhtml Bug 1811854 - switch remaining tests to BrowserTestUtils.loadURIString from BrowserTestUtils.loadURI, r=Standard8 2023-01-24 13:19:11 +00:00
bug304188_window.xhtml Bug 1811854 - switch remaining tests to BrowserTestUtils.loadURIString from BrowserTestUtils.loadURI, r=Standard8 2023-01-24 13:19:11 +00:00
bug331215_window.xhtml Bug 1811854 - switch remaining tests to BrowserTestUtils.loadURIString from BrowserTestUtils.loadURI, r=Standard8 2023-01-24 13:19:11 +00:00
bug360437_window.xhtml Bug 1811854 - switch remaining tests to BrowserTestUtils.loadURIString from BrowserTestUtils.loadURI, r=Standard8 2023-01-24 13:19:11 +00:00
bug366992_window.xhtml
bug409624_window.xhtml Bug 1811854 - switch remaining tests to BrowserTestUtils.loadURIString from BrowserTestUtils.loadURI, r=Standard8 2023-01-24 13:19:11 +00:00
bug429723_window.xhtml Bug 1811854 - switch remaining tests to BrowserTestUtils.loadURIString from BrowserTestUtils.loadURI, r=Standard8 2023-01-24 13:19:11 +00:00
bug451540_window.xhtml Bug 1811854 - switch remaining tests to BrowserTestUtils.loadURIString from BrowserTestUtils.loadURI, r=Standard8 2023-01-24 13:19:11 +00:00
bug624329_window.xhtml
chrome.ini Bug 1784826 - disable test_bug360437.xhtml on all platforms for frequent failures. a=test-only 2023-03-20 16:37:09 +02:00
dialog_button.xhtml Bug 1625632 - Test for button element forwarding accesskey to dialog buttons;r=dao 2022-09-08 16:52:15 +00:00
dialog_dialogfocus.xhtml Bug 1781434 - Clean-up dialog initial focus code. r=pbz,Gijs 2022-09-20 03:02:18 +00:00
dialog_dialogfocus2.xhtml
file_about_networking_wsh.py
file_autocomplete_with_composition.js
file_edit_contextmenu.xhtml
file_editor_with_autocomplete.js
file_empty.xhtml
file_maximized_persist.js Bug 1814834 - Maintain client size in SyncAttributesToWidget() depending on the last resize. r=emilio 2023-02-13 21:00:02 +00:00
findbar_entireword_window.xhtml Bug 1811854 - switch remaining tests to BrowserTestUtils.loadURIString from BrowserTestUtils.loadURI, r=Standard8 2023-01-24 13:19:11 +00:00
findbar_events_window.xhtml Bug 1811854 - switch remaining tests to BrowserTestUtils.loadURIString from BrowserTestUtils.loadURI, r=Standard8 2023-01-24 13:19:11 +00:00
findbar_window.xhtml Bug 1811854 - switch remaining tests to BrowserTestUtils.loadURIString from BrowserTestUtils.loadURI, r=Standard8 2023-01-24 13:19:11 +00:00
frame_popup_anchor.xhtml Bug 1738265 - Teach some popup tests to deal with popups having margins by default. r=NeilDeakin 2021-10-29 19:26:37 +00:00
frame_popupremoving_frame.xhtml
frame_subframe_origin_subframe1.xhtml
frame_subframe_origin_subframe2.xhtml
popup_trigger.js Bug 1805414 - Remove nsMenuFrame and nsMenuParent. r=smaug,Jamie,desktop-theme-reviewers,settings-reviewers,dao 2023-01-04 19:01:13 +00:00
sample_entireword_latin1.html
test_about_networking.html
test_arrowpanel.xhtml Bug 1815255 - Fix tests to deal with flexbox emulation. r=Jamie,Gijs 2023-02-09 12:24:53 +00:00
test_autocomplete2.xhtml Bug 1667455 - Part 11: Stop importing Services.jsm from chrome-priv HTML code, other cases. r=kmag 2022-07-11 12:41:53 +00:00
test_autocomplete3.xhtml Bug 1667455 - Part 11: Stop importing Services.jsm from chrome-priv HTML code, other cases. r=kmag 2022-07-11 12:41:53 +00:00
test_autocomplete4.xhtml Bug 1667455 - Part 11: Stop importing Services.jsm from chrome-priv HTML code, other cases. r=kmag 2022-07-11 12:41:53 +00:00
test_autocomplete5.xhtml Bug 1667455 - Part 11: Stop importing Services.jsm from chrome-priv HTML code, other cases. r=kmag 2022-07-11 12:41:53 +00:00
test_autocomplete_emphasis.xhtml Bug 1667455 - Part 11: Stop importing Services.jsm from chrome-priv HTML code, other cases. r=kmag 2022-07-11 12:41:53 +00:00
test_autocomplete_mac_caret.xhtml
test_autocomplete_placehold_last_complete.xhtml Bug 1667455 - Part 11: Stop importing Services.jsm from chrome-priv HTML code, other cases. r=kmag 2022-07-11 12:41:53 +00:00
test_autocomplete_with_composition_on_input.html Bug 1780543 - Part 5: Add mozilla/chrome-script environment. r=Standard8 2022-07-26 02:46:30 +00:00
test_browser_drop.xhtml
test_bug263683.xhtml
test_bug304188.xhtml
test_bug331215.xhtml
test_bug360220.xhtml
test_bug360437.xhtml
test_bug365773.xhtml
test_bug366992.xhtml
test_bug382990.xhtml
test_bug409624.xhtml
test_bug418874.xhtml Bug 1792759 - part 2: Redesign `nsIEditor.canUndo` and `nsIEditor.canRedo` r=m_kato,NeilDeakin 2022-10-09 01:13:49 +00:00
test_bug429723.xhtml
test_bug451540.xhtml
test_bug457632.xhtml Bug 1690390, change appendNotification to take a smaller number of arguments: the string type value, a dictionary containing the notification details, and the button list, r=mstriemer 2021-09-17 09:04:59 +00:00
test_bug460942.xhtml
test_bug471776.xhtml Bug 1792759 - part 2: Redesign `nsIEditor.canUndo` and `nsIEditor.canRedo` r=m_kato,NeilDeakin 2022-10-09 01:13:49 +00:00
test_bug509732.xhtml Bug 1690390, change appendNotification to take a smaller number of arguments: the string type value, a dictionary containing the notification details, and the button list, r=mstriemer 2021-09-17 09:04:59 +00:00
test_bug557987.xhtml Bug 1729805 - Make async OpenMenu simpler/sound. r=NeilDeakin,mstange 2022-01-25 21:40:22 +00:00
test_bug562554.xhtml Bug 1820534 - Move front-end to modern flexbox. r=Gijs,dao,settings-reviewers,credential-management-reviewers,sgalich,devtools-reviewers,nchevobbe 2023-03-08 16:13:57 +00:00
test_bug624329.xhtml Bug 1768278 - Draw menupopup shadows ourselves on Windows. r=dao,Gijs 2022-05-17 14:37:24 +00:00
test_bug792324.xhtml
test_bug1048178.xhtml Bug 1824236 - Stop using XUL layout for scrollbars. r=jwatt 2023-03-27 20:54:53 +00:00
test_button.xhtml Bug 1805414 - Remove nsMenuFrame and nsMenuParent. r=smaug,Jamie,desktop-theme-reviewers,settings-reviewers,dao 2023-01-04 19:01:13 +00:00
test_chromemargin.xhtml
test_closemenu_attribute.xhtml
test_contextmenu_list.xhtml Bug 1815255 - Fix tests to deal with flexbox emulation. r=Jamie,Gijs 2023-02-09 12:24:53 +00:00
test_contextmenu_rtl.xhtml Bug 312891 - Add a test. r=NeilDeakin 2022-03-02 14:46:08 +00:00
test_cursorsnap.xhtml Bug 1774768 - Remove unnecessary definitions/interface name accesses from tests r=Gijs,necko-reviewers,kershaw 2022-06-20 09:44:14 +00:00
test_custom_element_base.xhtml Bug 1689816 - Implement <tabpanels> and <deck> without XUL layout. r=Gijs,Jamie,morgan,preferences-reviewers,mconley,TYLin 2022-09-27 04:18:16 +00:00
test_custom_element_delay_connection.xhtml
test_custom_element_parts.html
test_deck.xhtml Bug 1689816 - Implement <tabpanels> and <deck> without XUL layout. r=Gijs,Jamie,morgan,preferences-reviewers,mconley,TYLin 2022-09-27 04:18:16 +00:00
test_dialog_button.xhtml Bug 1625632 - Test for button element forwarding accesskey to dialog buttons;r=dao 2022-09-08 16:52:15 +00:00
test_dialogfocus.xhtml Bug 1695435 - Part 1: Use isInstance in XUL files r=Standard8 2022-08-22 18:34:44 +00:00
test_edit_contextmenu.html Bug 1808630 - Part 1: Clean up after test_edit_contextmenu.html, r=smaug 2023-01-09 22:22:05 +00:00
test_editor_for_input_with_autocomplete.html Bug 1780543 - Part 5: Add mozilla/chrome-script environment. r=Standard8 2022-07-26 02:46:30 +00:00
test_findbar.xhtml
test_findbar_entireword.xhtml
test_findbar_events.xhtml
test_frames.xhtml Bug 1695435 - Part 1: Use isInstance in XUL files r=Standard8 2022-08-22 18:34:44 +00:00
test_hiddenitems.xhtml
test_hiddenpaging.xhtml Bug 1822131 - Allow XUL elements to shrink-by-default. r=dholbert 2023-03-14 12:22:11 +00:00
test_keys.xhtml
test_labelcontrol.xhtml
test_largemenu.html Bug 1706775 - Ensure that various menu tests under toolkit/content/tests/chrome are run on non-native menus. r=harry 2021-04-21 21:21:42 +00:00
test_maximized_persist.xhtml Bug 1813303 - Test. r=smaug 2023-02-03 14:18:53 +00:00
test_maximized_persist_with_no_titlebar.xhtml Bug 1813303 - Test. r=smaug 2023-02-03 14:18:53 +00:00
test_menu.xhtml
test_menu_activateitem.xhtml Bug 1817518 - De-select closed menuitems on mouseout. r=mstange 2023-02-22 15:58:54 +00:00
test_menu_hide.xhtml Bug 1805414 - Remove nsMenuFrame and nsMenuParent. r=smaug,Jamie,desktop-theme-reviewers,settings-reviewers,dao 2023-01-04 19:01:13 +00:00
test_menu_mouse_menuactive.xhtml Bug 1817518 - Try to activate menuitem harder. 2023-02-22 12:08:21 -05:00
test_menu_withcapture.xhtml Bug 1430892: Prevent accidental selection of an item in a dropdown menu and closing the menu on macOS. r=mstange 2022-12-20 16:55:44 +00:00
test_menuchecks.xhtml Bug 1701963, fix some menu related tests on Windows 10 that fail with the larger menu size, r=Gijs 2021-04-05 16:00:32 +00:00
test_menuitem_blink.xhtml
test_menuitem_commands.xhtml Bug 1692113 - Stop relying on 'true' value of getAttribute('hidden'). r=Gijs 2021-02-11 15:22:18 +00:00
test_menulist.xhtml Bug 1815255 - Fix tests to deal with flexbox emulation. r=Jamie,Gijs 2023-02-09 12:24:53 +00:00
test_menulist_in_popup.xhtml Bug 1809019 - Menulists shouldn't be considered to have a menu parent. r=smaug 2023-01-09 07:50:29 +00:00
test_menulist_keynav.xhtml Bug 1805414 - Remove nsMenuFrame and nsMenuParent. r=smaug,Jamie,desktop-theme-reviewers,settings-reviewers,dao 2023-01-04 19:01:13 +00:00
test_menulist_null_value.xhtml
test_menulist_paging.xhtml Bug 1805414 - Remove nsMenuFrame and nsMenuParent. r=smaug,Jamie,desktop-theme-reviewers,settings-reviewers,dao 2023-01-04 19:01:13 +00:00
test_menulist_position.xhtml Bug 1805694 - Simplify menulist popup layout. r=tnikkel 2022-12-19 16:15:52 +00:00
test_mousescroll.xhtml Bug 1168182 - Bind wheel event targets to wheel transactions. r=masayuki,smaug 2023-03-20 12:19:36 +00:00
test_mozinputbox_dictionary.xhtml
test_named_deck.html Bug 1682676 - Part 1: Move named-deck to toolkit widgets r=jaws 2021-03-10 19:22:56 +00:00
test_navigate_persist.html Bug 1667455 - Part 9: Stop importing Services.jsm from chrome-priv HTML code, single-line cases. r=kmag,necko-reviewers,geckoview-reviewers,extension-reviewers,m_kato,dragana 2022-07-11 12:41:52 +00:00
test_notificationbox.xhtml Bug 1799877 - Allow using { l10n-id, l10n-args } object when setting notification label. r=dao,mstriemer 2022-11-22 17:12:21 +00:00
test_panel.xhtml
test_panel_anchoradjust.xhtml
test_panel_focus.xhtml
test_panel_hover_menu.xhtml Bug 1815309 - Test. r=smaug 2023-02-07 13:49:24 +00:00
test_panel_open.xhtml Bug 1703262, test to ensure the open state is set on the anchor when a panel is opened, r=mconley 2021-06-15 16:13:55 +00:00
test_panelfrommenu.xhtml
test_popup_anchor.xhtml
test_popup_anchoratrect.xhtml Bug 1768278 - Draw menupopup shadows ourselves on Windows. r=dao,Gijs 2022-05-17 14:37:24 +00:00
test_popup_attribute.xhtml Bug 1784287 - Use input margin for screen size expansion. r=tnikkel 2022-08-12 12:21:59 +00:00
test_popup_button.xhtml Bug 1706775 - Ensure that various menu tests under toolkit/content/tests/chrome are run on non-native menus. r=harry 2021-04-21 21:21:42 +00:00
test_popup_coords.xhtml Bug 1789123 - Make anonymous box wrapping inside XUL boxes be similar to modern flex boxes. r=dholbert 2022-09-08 11:51:15 +00:00
test_popup_keys.xhtml
test_popup_moveToAnchor.xhtml Bug 1738265 - Teach some popup tests to deal with popups having margins by default. r=NeilDeakin 2021-10-29 19:26:37 +00:00
test_popup_preventdefault.xhtml
test_popup_preventdefault_chrome.xhtml
test_popup_recreate.xhtml Bug 1807892 - Fix test_popup_recreate.xhtml on some platforms. 2022-12-29 22:54:20 +01:00
test_popup_scaled.xhtml Bug 1750487 - Tentatively make test_popup_scaled's last test work on Windows on automation. CLOSED TREE 2022-02-25 05:59:28 +01:00
test_popup_tree.xhtml
test_popuphidden.xhtml
test_popupincontent.xhtml Bug 1784287 - Use input margin for screen size expansion. r=tnikkel 2022-08-12 12:21:59 +00:00
test_popupremoving.xhtml
test_popupremoving_frame.xhtml
test_position.xhtml Bug 1815255 - Fix tests to deal with flexbox emulation. r=Jamie,Gijs 2023-02-09 12:24:53 +00:00
test_preferences.xhtml Bug 1325637 - Remove browser.preferences.instantApply pref. r=Gijs,preferences-reviewers 2022-06-22 12:39:16 +00:00
test_preferences_beforeaccept.xhtml Bug 1325637 - Remove browser.preferences.instantApply pref. r=Gijs,preferences-reviewers 2022-06-22 12:39:16 +00:00
test_preferences_onsyncfrompreference.xhtml Bug 1667455 - Part 9: Stop importing Services.jsm from chrome-priv HTML code, single-line cases. r=kmag,necko-reviewers,geckoview-reviewers,extension-reviewers,m_kato,dragana 2022-07-11 12:41:52 +00:00
test_props.xhtml Bug 1766533 - Enable ESLint rule no-constant-binary-expression. r=Gijs 2022-05-10 20:04:04 +00:00
test_radio.xhtml
test_richlistbox.xhtml Bug 1796199 - Remove script access to XUL layout attributes. r=Gijs 2022-10-20 08:36:00 +00:00
test_screenPersistence.xhtml
test_scrollbar.xhtml Bug 1824236 - Stop using XUL layout for scrollbars. r=jwatt 2023-03-27 20:54:53 +00:00
test_showcaret.xhtml
test_subframe_origin.xhtml
test_tabbox.xhtml
test_tabindex.xhtml
test_textbox_search.xhtml Bug 1735974 - Replace mozactionhint with inputmode for textbox-search widget. r=Gijs 2021-10-28 01:35:31 +00:00
test_tooltip.xhtml
test_tooltip_noautohide.xhtml
test_tree.xhtml
test_tree_hier.xhtml Bug 1820534 - Move front-end to modern flexbox. r=Gijs,dao,settings-reviewers,credential-management-reviewers,sgalich,devtools-reviewers,nchevobbe 2023-03-08 16:13:57 +00:00
test_tree_single.xhtml
test_tree_view.xhtml Bug 1815255 - Fix tests to deal with flexbox emulation. r=Jamie,Gijs 2023-02-09 12:24:53 +00:00
test_window_intrinsic_size.xhtml
window_browser_drop.xhtml Bug 1815255 - Fix tests to deal with flexbox emulation. r=Jamie,Gijs 2023-02-09 12:24:53 +00:00
window_chromemargin.xhtml
window_cursorsnap_dialog.xhtml
window_cursorsnap_wizard.xhtml
window_intrinsic_size.xhtml Bug 1815255 - Fix tests to deal with flexbox emulation. r=Jamie,Gijs 2023-02-09 12:24:53 +00:00
window_keys.xhtml Bug 371900, always fire a command event on key elements except for those that are marked not to, r=masayuki 2022-01-11 20:02:29 +00:00
window_largemenu.xhtml Bug 1809084 - Stop using XUL layout for menu popups. r=desktop-theme-reviewers,dao,dshin 2023-03-16 19:09:14 +00:00
window_maximized_persist.xhtml
window_maximized_persist_with_no_titlebar.xhtml Bug 1813303 - Test. r=smaug 2023-02-03 14:18:53 +00:00
window_navigate_persist.html
window_panel.xhtml Bug 1796199 - Remove script access to XUL layout attributes. r=Gijs 2022-10-20 08:36:00 +00:00
window_panel_anchoradjust.xhtml Bug 1809084 - Stop using XUL layout for menu popups. r=desktop-theme-reviewers,dao,dshin 2023-03-16 19:09:14 +00:00
window_panel_focus.xhtml
window_popup_anchor.xhtml Bug 1815255 - Fix tests to deal with flexbox emulation. r=Jamie,Gijs 2023-02-09 12:24:53 +00:00
window_popup_anchoratrect.xhtml Bug 1768278 - Draw menupopup shadows ourselves on Windows. r=dao,Gijs 2022-05-17 14:37:24 +00:00
window_popup_attribute.xhtml Bug 1784287 - Use input margin for screen size expansion. r=tnikkel 2022-08-12 12:21:59 +00:00
window_popup_button.xhtml Bug 1784287 - Use input margin for screen size expansion. r=tnikkel 2022-08-12 12:21:59 +00:00
window_popup_preventdefault_chrome.xhtml Bug 1631735 Part 4: Make tests that minimize windows wait for size mode change events. r=mstange 2023-03-06 19:38:12 +00:00
window_preferences.xhtml
window_preferences2.xhtml
window_preferences3.xhtml
window_preferences_beforeaccept.xhtml Bug 1325637 - Remove browser.preferences.instantApply pref. r=Gijs,preferences-reviewers 2022-06-22 12:39:16 +00:00
window_preferences_commandretarget.xhtml
window_preferences_disabled.xhtml
window_preferences_onsyncfrompreference.xhtml
window_screenPosSize.xhtml
window_showcaret.xhtml
window_subframe_origin.xhtml
window_tooltip.xhtml Bug 1799460 - Implement label[value] and start/end cropping with CSS rather than XUL layout. r=Gijs,jfkthame 2022-11-16 16:27:59 +00:00
xul_selectcontrol.js