gecko-dev/widget/tests
Masayuki Nakano dab48fb890 Bug 1797796 - Make eSetSelection event not handled if Selection is set to same offset and length r=m_kato
`ContentEventHandler` may not replace open/close tags of inline elements and
close tags of block elements with a line break etc.  Therefore, one offset may
mean multiple points in the DOM tree.  From the DOM tree point of view, every
DOM point may have different meaning and styles.  Therefore, if IME sets
`Selection` to current range, we should not update `Selection` with the log of
`ContentEventHandler`.  Otherwise, new content will appear at different position
in the DOM tree and it may cause different style text, etc.

`IMEContentObserver` has cache of `Selection` while an editor has focus.
Therefore, for avoiding the query cost of `Selection` for each `eSetSelection`
event, `ContentEventHandler` should be used in `IMEContentObserver` instead if
an instance is available.  Therefore, this patch makes `TextComposition`
delegate the handling to `IMEContentObserver` and check `Selection` range only
when `IMEContentObserver` is available.  Note that `eSetSelection` is probably
used only when editable element has focus.  Therefore, it must be fine to skip
selection range check in the other cases.

Differential Revision: https://phabricator.services.mozilla.com/D171179
2023-03-01 05:57:32 +00:00
..
browser Bug 1784772 - Forcibly trigger transition and await either transitionstart or transitioncancel event. r=tnikkel 2023-01-31 21:33:43 +00:00
gtest Bug 1811834 - Clean up nsWidgetInitData. r=cmartin,geckoview-reviewers,calu 2023-01-23 23:58:41 +00:00
unit Bug 1816191 - Skip tests in order to keep win7 running @ azure. r=gbrown,necko-reviewers,settings-reviewers,application-update-reviewers,media-playback-reviewers,credential-management-reviewers,nalexander,sgalich,alwu 2023-02-14 23:44:12 +00:00
bug586713_window.xhtml
chrome.ini Bug 1812543 - [Cocoa] Check cached transferable properly in nsClipboard::HasDataMatchingFlavors; r=spohl 2023-01-26 20:04:30 +00:00
empty_window.xhtml
file_bug596600.html
file_input_events_on_deactive_window.html
file_secure_input.html
mochitest.ini Bug 1818500 - Try to re-enable test_picker_no_crash.html. r=rkraesig 2023-02-23 20:02:35 +00:00
moz.build
native_menus_window.xhtml
standalone_native_menu_window.xhtml
system_font_changes.xhtml
taskbar_previews.xhtml
test_actionhint.html
test_AltGr_key_events_in_web_content_on_windows.html
test_alwaysontop_focus.xhtml
test_assign_event_data.html
test_autocapitalize.html
test_bug343416.xhtml
test_bug413277.html
test_bug428405.xhtml Bug 1811854 - switch remaining tests to BrowserTestUtils.loadURIString from BrowserTestUtils.loadURI, r=Standard8 2023-01-24 13:19:11 +00:00
test_bug429954.xhtml
test_bug444800.xhtml
test_bug466599.xhtml
test_bug478536.xhtml
test_bug485118.xhtml
test_bug517396.xhtml
test_bug522217.xhtml
test_bug538242.xhtml
test_bug565392.html
test_bug586713.xhtml
test_bug593307.xhtml
test_bug596600.xhtml
test_bug673301.xhtml Bug 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato 2023-02-01 23:30:55 +00:00
test_bug760802.xhtml
test_bug1123480.xhtml Bug 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato 2023-02-01 23:30:55 +00:00
test_clipboard_cache.xhtml Bug 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato 2023-02-01 23:30:55 +00:00
test_clipboard.xhtml Bug 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato 2023-02-01 23:30:55 +00:00
test_composition_text_querycontent.xhtml
test_imestate.html
test_input_events_on_deactive_window.xhtml
test_key_event_counts.xhtml
test_keycodes.xhtml
test_keypress_event_with_alt_on_mac.html
test_mouse_event_with_control_on_mac.html
test_mouse_scroll.xhtml
test_native_key_bindings_mac.html
test_native_menus.xhtml
test_panel_mouse_coords.xhtml Bug 1807482 - Re-introduce a reduced version of mouse grabs for desktop environments that need it. r=stransky 2023-01-04 14:02:47 +00:00
test_picker_no_crash.html Bug 1818500 - Try to re-enable test_picker_no_crash.html. r=rkraesig 2023-02-23 20:02:35 +00:00
test_platform_colors.xhtml
test_position_on_resize.xhtml
test_secure_input.html
test_sizemode_events.xhtml
test_standalone_native_menu.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 1776879, replace text/unicode for clipboard and drag and drop and use text/plain directly, r=edgar,mak,stransky,geckoview-reviewers,extension-reviewers,zombie,m_kato 2023-02-01 23:30:55 +00:00
test_wheeltransaction.xhtml
TestChromeMargin.cpp
window_bug429954.xhtml
window_bug478536.xhtml
window_bug522217.xhtml
window_bug538242.xhtml
window_bug593307_centerscreen.xhtml
window_bug593307_offscreen.xhtml
window_composition_text_querycontent.xhtml Bug 1797796 - Make eSetSelection event not handled if Selection is set to same offset and length r=m_kato 2023-03-01 05:57:32 +00:00
window_imestate_iframes.html
window_mouse_scroll_win_2.html
window_mouse_scroll_win.html
window_picker_no_crash_child.html Bug 1818500 - Try to re-enable test_picker_no_crash.html. r=rkraesig 2023-02-23 20:02:35 +00:00
window_state_windows.xhtml
window_wheeltransaction.xhtml