gecko-dev/widget/tests
Masayuki Nakano 25a3c48305 Bug 1732845 - Add `nsINode::IsInDesignMode()` to check whether the node is directly in design mode r=smaug
There are a lot of check of `Document`'s editable state **with** comments. This
means that it's unclear for developers that only `Document` node is editable in
design mode.

Additionally, there are some points which use composed document rather than
uncomposed document even though the raw API uses uncomposed document. Comparing
with the other browsers, checking uncomposed document is compatible behavior,
i.e., nodes in shadow trees are not editable unless `contenteditable`.

Therefore, `nsINode` should have a method to check whether it's in design mode
or not.

Note that it may be called with a node in UA widget.  Therefore, this patch
adds new checks if it's in UA widget subtree or native anonymous subtree,
checking whether it's in design mode with its host.

Differential Revision: https://phabricator.services.mozilla.com/D126764
2021-10-12 03:14:43 +00:00
..
browser Bug 1704065 - Stop consuming pan gesture events in SwipeTracker if the swiping direction is not allowed to navigate. r=spohl 2021-04-30 09:08:08 +00:00
gtest Bug 1725145 - Preparation for the hybrid build env. r=necko-reviewers,firefox-build-system-reviewers,valentin,glandium 2021-08-25 10:46:17 +00:00
unit Bug 1722758 - Patch 4 - Encode additional characters in the URL required for NSURL compatiblity r=mac-reviewers,mstange 2021-08-20 18:54:04 +00:00
.eslintrc.js
TestChromeMargin.cpp
bug586713_window.xhtml
chrome.ini Bug 1725388 - Remove pref/envvars that can disable WebRender. r=jrmuizel 2021-08-12 20:28:53 +00:00
empty_window.xhtml
file_bug596600.html
file_input_events_on_deactive_window.html
file_secure_input.html
mochitest.ini Bug 1728306 - Move enterkeyhint pref setter to mochitest.ini. r=masayuki 2021-09-02 05:13:54 +00:00
moz.build
native_menus_window.xhtml
standalone_native_menu_window.xhtml Bug 1699792 - Fix a bug in the handling of dynamic collapsed/hidden attribute changes. r=harry 2021-03-23 13:40:24 +00:00
system_font_changes.xhtml
taskbar_previews.xhtml
test_AltGr_key_events_in_web_content_on_windows.html
test_actionhint.html Bug 1731931 - Add some form control test cases to test_imestate.html etc. r=masayuki 2021-09-27 12:41:39 +00:00
test_alwaysontop_focus.xhtml
test_assign_event_data.html Bug 1720405 - part 2: Get rid of the pref check/setting of `dom.keyboardevent.dispatch_during_composition` from the tests r=smaug 2021-07-14 10:59:04 +00:00
test_autocapitalize.html
test_bug343416.xhtml
test_bug413277.html
test_bug428405.xhtml
test_bug429954.xhtml
test_bug444800.xhtml Bug 1717680, have the test test_bug444800.xhtml just use setCommandNode instead of setting the popupNode, r=Gijs 2021-07-09 11:51:13 +00:00
test_bug466599.xhtml Bug 1689827 - Remove length parameter from JS callers of setTransferData. r=smaug 2021-02-01 12:05:12 +00:00
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 Bug 1661132 - Make test_bug596600.xhtml wait proper event after syntheisizing native mousemove event r=smaug 2021-02-24 07:01:16 +00:00
test_bug673301.xhtml Bug 1689827 - Remove length parameter from JS callers of setTransferData. r=smaug 2021-02-01 12:05:12 +00:00
test_bug760802.xhtml
test_bug1123480.xhtml Bug 1689827 - Remove length parameter from JS callers of setTransferData. r=smaug 2021-02-01 12:05:12 +00:00
test_clipboard.xhtml
test_composition_text_querycontent.xhtml Bug 1723895 - Make `WhiteSpaceVisibilityKeeper::ReplaceText()` call `GetInclusiveNextNBSPPointIfNeedToReplaceWithASCIIWhiteSpace` with end of the replacing range instead of start of it r=m_kato 2021-08-10 23:41:19 +00:00
test_imestate.html Bug 1732845 - Add `nsINode::IsInDesignMode()` to check whether the node is directly in design mode r=smaug 2021-10-12 03:14:43 +00:00
test_input_events_on_deactive_window.xhtml
test_key_event_counts.xhtml
test_keycodes.xhtml
test_keypress_event_with_alt_on_mac.html Bug 1720405 - part 1: Get rid of the pref check of `dom.keyboardevent.keypress.dispatch_non_printable_keys_only_system_group_in_content` from the tests r=smaug 2021-07-14 10:59:03 +00:00
test_mouse_event_with_control_on_mac.html Bug 1716413 - Wait for APZ stable in test_mouse_event_with_control_on_mac.html; r=smaug 2021-07-14 11:21:40 +00:00
test_mouse_scroll.xhtml
test_native_key_bindings_mac.html
test_native_menus.xhtml
test_panel_mouse_coords.xhtml Bug 1691622 - part 11: Make mochitests stop using `nsIDOMWindowUtils.sendNativeMouseEvent` directly as far as possible r=smaug 2021-02-24 01:27:11 +00:00
test_picker_no_crash.html
test_platform_colors.xhtml Bug 1733565 - Clean up button active system colors. r=mstange,desktop-theme-reviewers,dao 2021-10-01 19:42:16 +00:00
test_position_on_resize.xhtml
test_scrollbar_colors.html Bug 1695965 - Update test_scrollbar_colors expectations for windows+nnt. r=mstange 2021-03-02 19:20:18 +00:00
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_transferable_overflow.xhtml Bug 1689827 - Remove length parameter from JS callers of setTransferData. r=smaug 2021-02-01 12:05:12 +00:00
test_wheeltransaction.xhtml
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 1670129 - Add composition test when changing inputmode dynamically. r=masayuki 2021-08-30 01:30:30 +00:00
window_imestate_iframes.html
window_mouse_scroll_win.html Bug 1708829 - Make sure that delta* getters account for scroll speed override correctly. r=masayuki 2021-05-14 17:44:29 +00:00
window_mouse_scroll_win_2.html
window_picker_no_crash_child.html
window_state_windows.xhtml
window_wheeltransaction.xhtml