fune/layout/generic/test
Masayuki Nakano 2ad57f8fae Bug 1528289 - part 1: Move selection at middle button down rather than middle button up r=edgar
Chrome and Safari move selection at middle button down and does not modify the
range at middle button up.  However, they handle middle button down with
`Shift` key is "continue selection".  So, we should handle selection in
nsIFrame when `mousedown` event for middle mouse button is fired, but ignore
multiple selection, drag and drop and maintaining selection for aligning the
behavior to the other browsers.

This patch splits `nsIFrame::HandlePress()` and calls new method which
moves selection from `nsIFrame::HandleEvent()` when middle button is pressed.
(Note that this patch does not check whether middle click paste is enabled
because Chrome moves selection even on Windows which Chrome always disable
middle click paste on.)

With this change, "paste" event target is changed.  Previously, we used target
of the preceding `mouseup` event, but we start to use the target of the
preceding `mousedown` event.

Note that even with this patch, we still behave differently from Chrome even
in the following cases:
- middle mouse button down in selected range, we collapse it, but Chrome keeps
  the selection.
- middle mouse button click in selected range, we dispatch "paste" event, but
  Chrome collapse selection and not dispatch "paste" event.
- middle mouse button down in selected range and up in different element,
  Chrome does not modify the range nor dispatch "paste" event.
- Shift + middle mouse button in editable `<table>` works as non-editable
  in Chrome, but our editor handles it with special path.  Therefore, we
  don't modify the range but dispatch "paste" event in the selected range.

Changing them requires bigger change and probably requires some other features'
behavior changes.  Therefore, we shouldn't touch these issues until they are
actually reported as web-compat issues.

Differential Revision: https://phabricator.services.mozilla.com/D103997
2021-03-23 19:22:48 +00:00
..
.eslintrc.js
bug344830_testembed.svg
bug421839-2-page.html
bug633762_iframe.html
bug1174521.html
chrome.ini
file_BrokenImageReference.png
file_bug448987.html
file_bug448987_notref.html
file_bug448987_ref.html
file_bug449653_1.html
file_bug449653_1_ref.html
file_bug514732_window.xhtml
file_bug579767_1.html
file_bug579767_2.html
file_bug1307853.html
file_bug1566783.html
file_Dolske.png
file_IconTestServer.sjs
file_LoadingImageReference.png
file_reframe_for_lazy_load_image.html
file_scroll_position_restore.html
file_scroll_position_restore_no_bfcache.html
file_SlowImage.sjs
file_SlowPage.sjs
file_SlowTallImage.sjs
file_taintedfilters_feDisplacementMap-tainted-1.svg
file_taintedfilters_feDisplacementMap-tainted-2.svg
file_taintedfilters_feDisplacementMap-tainted-3.svg
file_taintedfilters_feDisplacementMap-tainted-ref.svg
file_taintedfilters_feDisplacementMap-untainted-1.svg
file_taintedfilters_feDisplacementMap-untainted-2.svg
file_taintedfilters_feDisplacementMap-untainted-ref.svg
file_taintedfilters_red-flood-for-feImage-cors.svg
file_taintedfilters_red-flood-for-feImage-cors.svg^headers^
file_taintedfilters_red-flood-for-feImage.svg
frame_selection_underline-ref.xhtml
frame_selection_underline.css
frame_selection_underline.xhtml
mochitest.ini Bug 1528289 - part 1: Move selection at middle button down rather than middle button up r=edgar 2021-03-23 19:22:48 +00:00
page_scroll_with_fixed_pos_window.html
slow-stylesheet.sjs
test_backspace_delete.xhtml
test_bug240933.html
test_bug263683.html
test_bug288789.html
test_bug290397.html
test_bug323656.html
test_bug344830.html
test_bug348681.html
test_bug382429.html
test_bug384527.html
test_bug385751.html
test_bug389630.html
test_bug391747.html
test_bug392746.html
test_bug392923.html
test_bug394173.html
test_bug394239.html
test_bug402380.html
test_bug404872.html
test_bug405178.html
test_bug416168.html
test_bug421436.html
test_bug421839-1.html
test_bug421839-2.html
test_bug424627.html
test_bug438840.html
test_bug448860.html
test_bug448987.html
test_bug449653.html
test_bug460532.html
test_bug468167.html
test_bug469613.xhtml
test_bug469774.xhtml
test_bug470212.html
test_bug488417.html
test_bug496275.html Bug 1666537 - Peek logical line end in bidi context r=emilio,jfkthame 2020-09-25 13:36:50 +00:00
test_bug503813.html
test_bug507902.html
test_bug508115.xhtml
test_bug514732-2.xhtml
test_bug522632.html
test_bug524925.html
test_bug527306.html
test_bug579767.html
test_bug589621.html
test_bug589623.html
test_bug597333.html
test_bug632379.xhtml Bug 1695970 - Make layout/generic/test/test_bug632379.xhtml not depend on widget sizes. r=mstange 2021-03-02 19:19:27 +00:00
test_bug633762.html Bug 1667612. Factor waitToClearOutAnyPotentialScrolls out from various tests and put it in apz_test_utils.js. r=kats 2020-10-03 15:58:16 +00:00
test_bug666225.html
test_bug719503.html
test_bug719515.html
test_bug719518.html
test_bug719523.html
test_bug735641.html
test_bug748961.html
test_bug756984.html
test_bug784410.html Bug 1688475 - Remove usage of waitForApzFlushedRepaints from test_bug784410.html. r=botond 2021-02-01 23:49:18 +00:00
test_bug785324.html
test_bug791616.html
test_bug831780.html
test_bug841361.html
test_bug904810.html
test_bug938772.html
test_bug970363.html
test_bug1062406.html
test_bug1174521.html
test_bug1198135.html
test_bug1307853.html
test_bug1408607.html
test_bug1499961.html
test_bug1566783.html
test_bug1623764.html
test_bug1642588.html
test_bug1644511.html
test_bug1655135.html
test_crash_on_mouse_move.html
test_dynamic_reflow_root_disallowal.html
test_flex_interrupt.html
test_grid_track_sizing_algo_001.html
test_grid_track_sizing_algo_002.html
test_image_selection.html
test_image_selection_2.html
test_image_selection_in_contenteditable.html
test_intrinsic_size_on_loading.html
test_movement_by_characters.html
test_movement_by_words.html Bug 1685491 - part 2: Fix all new oranges caused by the previous patch r=smaug 2021-02-02 03:02:53 +00:00
test_overflow_event.html
test_page_scroll_with_fixed_pos.html
test_reframe_for_lazy_load_image.html Bug 1673785 - Tweak lazy-loading root margin default to be 300px in all directions. r=hiro,svoisen 2020-10-28 11:48:48 +00:00
test_scroll_animation_restore.html
test_scroll_behavior.html Bug 1688475 - Remove usage of waitForApzFlushedRepaints from test_scroll_behavior.html. r=botond 2021-02-01 23:52:31 +00:00
test_scroll_position_iframe.html
test_scroll_position_restore.html
test_scroll_position_restore_after_stop.html
test_scroll_position_restore_no_bfcache.html
test_scrollframe_abspos_interrupt.html
test_selection_changes_with_middle_mouse_button.html Bug 1528289 - part 1: Move selection at middle button down rather than middle button up r=edgar 2021-03-23 19:22:48 +00:00
test_selection_doubleclick.html
test_selection_expanding.html
test_selection_multiclick_drag.html
test_selection_preventDefault.html
test_selection_splitText-normalize.html
test_selection_touchevents.html
test_selection_tripleclick.html
test_selection_underline.html
test_taintedfilters.html