gecko-dev/widget/tests
Masayuki Nakano c13abd36f2 Bug 1915057 - Make `HTMLEditor::NotifyRootChanged()` notifies `IMEStateManager` of the editor root change r=smaug,m_kato
When `HTMLEditor` handles the design mode, `IMEContentObserver` observes the
`<body>` if there is.  However, web apps may remove it.  Then, we need to
recreate `IMEContentObserver` with emulating a focus move because it's difficult
to compute the difference between the old root and the new root (IME focus
notification sends all content to the parent, it's faster in most cases in this
situation). This was fixed in bug 1911010.  However, there are remaining issues
after that.

When new `<body>` or the original `<body>` is connected again,
`IMEContentObserver` does not restart to observe the new `<body>`.  So,
`IMEContentObserver` working differently after the `<body>` is even temporarily
removed.  This make it harder to reproduce reported bugs.

Additionally, if the document element is removed, `IMEContentObserver` won't
be recreated until the document gets focus again even after new root and/or
`<body>` element is connected.  This makes IME users inconvenient with such
tricky editors.

This patch makes `HTMLEditor::NotifyRootChanged` notifies `IMEStateManager`
of the editor root element change.  Then, the new method of `IMEStateManager`
updates IME enabled state and recreate `IMEContentObserver` with emulating
a focus move.

Differential Revision: https://phabricator.services.mozilla.com/D220362
2024-09-05 00:35:50 +00:00
..
browser Bug 1915057 - Make `HTMLEditor::NotifyRootChanged()` notifies `IMEStateManager` of the editor root change r=smaug,m_kato 2024-09-05 00:35:50 +00:00
gtest Backed out changeset 60b8f96f35ec (bug 1645571) for causing bug 1907766. 2024-07-25 11:25:41 -04:00
unit Bug 1903845 - Add 'os_integration' tags to test manifests for faster image verification. r=aryx,jgilbert,settings-reviewers,media-playback-reviewers,sessionstore-reviewers,places-reviewers,omc-reviewers,migration-reviewers,padenot,dao,aminomancer,Standard8,mconley 2024-07-09 13:01:55 +00:00
TestChromeMargin.cpp
bug586713_window.xhtml
chrome.toml Bug 1903845 - Add 'os_integration' tags to test manifests for faster image verification. r=aryx,jgilbert,settings-reviewers,media-playback-reviewers,sessionstore-reviewers,places-reviewers,omc-reviewers,migration-reviewers,padenot,dao,aminomancer,Standard8,mconley 2024-07-09 13:01:55 +00:00
clipboard_helper.js Bug 1883799 - Rename nsIAsyncClipboardGetCallback to nsIClipboardGetDataSnapshotCallback; r=nika 2024-06-20 07:36:40 +00:00
empty_window.xhtml
file_bug596600.html
file_ime_state_test_helper.js
file_input_events_on_deactive_window.html
file_secure_input.html
file_test_clipboard.js Bug 1892976 - Stop throwing error on nsIClipboard::GetData() when the type isn't available on android; r=geckoview-reviewers,m_kato 2024-05-01 20:49:08 +00:00
file_test_clipboard_asyncSetData.js Bug 1869868 part 2 - do not consult DLP when copy/pasting items in the same tab r=edgar,dlp-reviewers,credential-management-reviewers,handyman,sgalich 2024-04-15 12:10:46 +00:00
file_test_clipboard_getDataSnapshot.js Bug 1883799 - Rename nsIAsyncClipboardGetCallback to nsIClipboardGetDataSnapshotCallback; r=nika 2024-06-20 07:36:40 +00:00
file_test_clipboard_getDataSnapshotSync.js Bug 1858627 - Add nsIClipboard API to return nsIAsyncSetClipboardData synchrously; r=ipc-reviewers,nika 2024-03-13 20:44:06 +00:00
file_test_ime_state_in_contenteditable_on_readonly_change.js
file_test_ime_state_in_text_control_on_reframe.js
file_test_ime_state_on_focus_move.js
file_test_ime_state_on_input_type_change.js
file_test_ime_state_on_readonly_change.js
mochitest.toml Bug 1913611 - Make `ModifierKeyState::InitInputEvent` and `KeymapWrapper::InitInputEvent` set `WidgetMouseEventBase::mButtons` of `eContextMenu` r=smaug 2024-08-22 21:51:33 +00:00
moz.build Bug 1859901 - Batch 18 - migrate rest of xpcshell.ini -> toml. r=aryx,extension-reviewers,application-update-reviewers,credential-management-reviewers,places-reviewers,profiler-reviewers,win-reviewers,robwu,julienw,nalexander,Standard8,sgalich 2023-11-30 16:14:52 +00:00
native_menus_window.xhtml
standalone_native_menu_window.xhtml Bug 1864896: Autofix unused function arguments (widget). r=spohl 2024-03-02 15:25:59 +00:00
system_font_changes.xhtml
taskbar_previews.xhtml
test_AltGr_key_events_in_web_content_on_windows.html
test_actionhint.html
test_alwaysontop_focus.xhtml
test_assign_event_data.html Bug 1914513 - Add a pref to disable mutation events, r=masayuki 2024-09-02 13:29:57 +00:00
test_autocapitalize.html
test_bug343416.xhtml Bug 1864896: Autofix unused function arguments (widget). r=spohl 2024-03-02 15:25:59 +00:00
test_bug428405.xhtml
test_bug429954.xhtml
test_bug444800.xhtml Bug 1871135 - Add content analysis support to clipboard operations r=edgar,nika,masayuki,devtools-reviewers 2024-02-13 11:26:48 +00:00
test_bug466599.xhtml Bug 1871135 - Add content analysis support to clipboard operations r=edgar,nika,masayuki,devtools-reviewers 2024-02-13 11:26:48 +00:00
test_bug478536.xhtml
test_bug485118.xhtml
test_bug517396.xhtml
test_bug522217.xhtml
test_bug538242.xhtml
test_bug565392.html Bug 1871135 - Add content analysis support to clipboard operations r=edgar,nika,masayuki,devtools-reviewers 2024-02-13 11:26:48 +00:00
test_bug586713.xhtml
test_bug593307.xhtml
test_bug596600.xhtml
test_bug673301.xhtml
test_bug760802.xhtml
test_bug1123480.xhtml
test_clipboard.html
test_clipboard_asyncSetData.html
test_clipboard_asyncSetData_chrome.html
test_clipboard_cache_chrome.html Bug 1883799 - Rename nsIClipboard.asyncGetData to nsIClipboard.getDataSnapshot; r=nika 2024-06-20 07:36:39 +00:00
test_clipboard_chrome.html
test_clipboard_getDataSnapshot.html Bug 1883799 - Rename nsIClipboard.asyncGetData to nsIClipboard.getDataSnapshot; r=nika 2024-06-20 07:36:39 +00:00
test_clipboard_getDataSnapshotSync.html Bug 1858627 - Add nsIClipboard API to return nsIAsyncSetClipboardData synchrously; r=ipc-reviewers,nika 2024-03-13 20:44:06 +00:00
test_clipboard_getDataSnapshotSync_chrome.html Bug 1858627 - Add nsIClipboard API to return nsIAsyncSetClipboardData synchrously; r=ipc-reviewers,nika 2024-03-13 20:44:06 +00:00
test_clipboard_getDataSnapshot_chrome.html Bug 1883799 - Rename nsIClipboard.asyncGetData to nsIClipboard.getDataSnapshot; r=nika 2024-06-20 07:36:39 +00:00
test_clipboard_owner_chrome.html Bug 1864896: Autofix unused function arguments (widget). r=spohl 2024-03-02 15:25:59 +00:00
test_composition_text_querycontent.xhtml
test_contextmenu_by_mouse_on_unix.html Bug 1864896: Autofix unused function arguments (widget). r=spohl 2024-03-02 15:25:59 +00:00
test_contextmenu_chorded_buttons.html Bug 1913611 - Make `ModifierKeyState::InitInputEvent` and `KeymapWrapper::InitInputEvent` set `WidgetMouseEventBase::mButtons` of `eContextMenu` r=smaug 2024-08-22 21:51:33 +00:00
test_ime_focus_with_multiple_contenteditable.html Bug 1864896: Autofix unused function arguments (widget). r=spohl 2024-03-02 15:25:59 +00:00
test_ime_state_in_contenteditable_on_readonly_change_in_parent.html
test_ime_state_in_plugin_in_parent.html
test_ime_state_in_text_control_on_reframe_in_parent.html
test_ime_state_on_editable_state_change_in_parent.html Bug 1798379 - Make `HTMLEditor` store whether it has/had focus and is/was in the `designMode` by itself r=m_kato 2024-07-12 04:45:01 +00:00
test_ime_state_on_focus_move_in_parent.html
test_ime_state_on_input_type_change_in_parent.html
test_ime_state_on_readonly_change_in_parent.html
test_ime_state_others_in_parent.html Bug 1864896: Autofix unused function arguments (widget). r=spohl 2024-03-02 15:25:59 +00:00
test_input_events_on_deactive_window.xhtml
test_key_event_counts.xhtml Bug 1864896: Autofix unused function arguments (widget). r=spohl 2024-03-02 15:25:59 +00:00
test_keycodes.xhtml Bug 1878629 - part 7: Use EventTarget.addEventListener to add system group event listeners instead of nsIEventListenerService (widget/) r=masayuki 2024-03-06 19:27:12 +00:00
test_keypress_event_with_alt_on_mac.html
test_mouse_double_click_on_android.html Bug 1837119 - Support double click event on GeckoView. r=geckoview-reviewers,owlish 2024-05-15 01:43:46 +00:00
test_mouse_event_with_control_on_mac.html
test_mouse_scroll.xhtml
test_native_key_bindings_mac.html Bug 1864896: Autofix unused function arguments (widget). r=spohl 2024-03-02 15:25:59 +00:00
test_native_menus.xhtml
test_panel_mouse_coords.xhtml
test_picker_no_crash.html
test_platform_colors.xhtml Bug 1867854 - Hide some macOS system colors from content. r=jwatt 2023-12-03 10:52:14 +00:00
test_position_on_resize.xhtml
test_secure_input.html
test_sizemode_events.xhtml Bug 1864896: Autofix unused function arguments (widget). r=spohl 2024-03-02 15:25:59 +00:00
test_standalone_native_menu.xhtml
test_surrogate_pair_native_key_handling.xhtml
test_system_font_changes.xhtml
test_system_status_bar.xhtml
test_taskbar_progress.xhtml
test_textScaleFactor_system_font.html
test_transferable_overflow.xhtml Bug 1871135 - Add content analysis support to clipboard operations r=edgar,nika,masayuki,devtools-reviewers 2024-02-13 11:26:48 +00:00
test_wheeltransaction.xhtml
window_bug429954.xhtml
window_bug478536.xhtml Bug 1864896: Autofix unused function arguments (widget). r=spohl 2024-03-02 15:25:59 +00:00
window_bug522217.xhtml
window_bug538242.xhtml
window_bug593307_centerscreen.xhtml Bug 1872997 - Remove "fit to screen" code in cocoa widget. r=mac-reviewers,bradwerth 2024-01-08 19:46:13 +00:00
window_bug593307_offscreen.xhtml Bug 1872997 - Remove "fit to screen" code in cocoa widget. r=mac-reviewers,bradwerth 2024-01-08 19:46:13 +00:00
window_composition_text_querycontent.xhtml Bug 1914513 - Add a pref to disable mutation events, r=masayuki 2024-09-02 13:29:57 +00:00
window_imestate_iframes.html Bug 1483828 - [Part 1] Disallow <tab> to move focus to root element r=smaug 2024-03-04 14:16:30 +00:00
window_mouse_scroll_win.html Bug 1864896: Autofix unused function arguments (widget). r=spohl 2024-03-02 15:25:59 +00:00
window_mouse_scroll_win_2.html
window_picker_no_crash_child.html
window_state_windows.xhtml
window_wheeltransaction.xhtml