gecko-dev/dom/events/test
Masayuki Nakano 1895d1bfe3 Bug 1514940 - part 1: Forcibly disable new keyCode/charCode value of keypress events if the document is Confluence r=smaug,Ehsan,kmag
Old Confluence does not aware of conflated model keypress event (see UI Events
spec, https://w3c.github.io/uievents/#determine-keypress-keyCode).
Additionally, Confluence can be hosted with any domains.  Therefore, we cannot
use blacklist to disable the conflated model keypress event only on it.

This patch checks whether current or parent document is Confluence with JS
module, called KeyPressEventModelCheckerChild.  For kicking this module,
nsHTMLDocument dispatches an custom event, CheckKeyPressEventModel, when it
becomes editable only first time.  Finally, if it's a Confluence instance, the
module let PresShell know that we need to use split model keypress event in it.

Differential Revision: https://phabricator.services.mozilla.com/D17907

--HG--
extra : moz-landing-system : lando
2019-02-05 11:35:43 +00:00
..
pointerevents Bug 1521082 - Don't dispatch pointer event if the touch in touchstart event is already registered; r=smaug 2019-01-29 09:08:05 +00:00
.eslintrc.js Bug 1501662 - Add more .eslintrc.js files for test directories (dom, modules, netwerk and parser). r=mossop 2018-10-24 19:11:17 +00:00
browser_shortcutkey_modifier_conflicts_with_content_accesskey_modifier.js Bug 1436926 - part 2: Remove unnecessary KeyboardEvent.code specification of callers of EventUtils.synthesizeKey() r=smaug 2018-02-09 19:17:26 +09:00
browser.ini Bug 1435530 - part 1: Add automated tests to check Alt + D works as Ctrl + L when Alt is content access key's modifier r=enndeakin+6102 2018-02-05 18:01:25 +09:00
bug226361_iframe.xhtml
bug299673.js Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug 2018-02-15 04:15:39 +09:00
bug322588-popup.html
bug415498-doc1.html
bug415498-doc2.html
bug418986-3.js
bug426082.html
bug545268.html
bug574663.html
bug591249_iframe.xul
bug602962.xul
bug607464.html
bug656379-1.html
bug1017086_inner.html
chrome.ini Bug 1421150 - Fix the syntax for disabling dom/events/test/test_DataTransferItemList.html on a CLOSED TREE 2018-02-26 15:57:02 +02:00
empty.js
error_event_worker.js
event_leak_utils.js Bug 1451913 P9 Try to avoid event listener leak test intermittents by doing more GC. r=baku 2018-04-16 06:08:53 -07:00
file_bug679494.html
file_bug1446834.html Bug 1446834 - Make EventStateManager to use GetFlattenedTreeParent when updating hover/active content, r=emilio 2018-05-09 18:10:55 +03:00
file_bug1484371.html Bug 1484371 - make *enter/*leave events uncomposed, r=masayuki 2018-08-22 16:08:17 +03:00
mochitest.ini Bug 1514940 - part 1: Forcibly disable new keyCode/charCode value of keypress events if the document is Confluence r=smaug,Ehsan,kmag 2019-02-05 11:35:43 +00:00
test_accel_virtual_modifier.html
test_addEventListenerExtraArg.html
test_all_synthetic_events.html Bug 1448230: close PeerConnection to prevent leaking. r=jib 2018-04-19 17:14:52 -07:00
test_bug226361.xhtml Bug 1436926 - part 2: Remove unnecessary KeyboardEvent.code specification of callers of EventUtils.synthesizeKey() r=smaug 2018-02-09 19:17:26 +09:00
test_bug238987.html Bug 1448048. Restrict the window.Components shim to non-nightly-only to see whether sites actually use it. r=mccr8 2018-03-23 12:53:48 -04:00
test_bug288392.html
test_bug299673-1.html
test_bug299673-2.html
test_bug322588.html
test_bug328885.html
test_bug336682_1.html Bug 1457166: Fire online / offline events at the window. r=bz 2018-04-28 09:38:53 +02:00
test_bug336682_2.xul Bug 1457166: Fire online / offline events at the window. r=bz 2018-04-28 09:38:53 +02:00
test_bug336682.js Bug 1457166: Fire online / offline events at the window. r=bz 2018-04-28 09:38:53 +02:00
test_bug367781.html
test_bug379120.html Bug 1467712 - Simplify calls to ok to use only 2 arguments;r=Standard8 2018-11-01 13:48:48 +00:00
test_bug391568.xhtml
test_bug402089.html
test_bug405632.html
test_bug409604.html Bug 1436926 - part 2: Remove unnecessary KeyboardEvent.code specification of callers of EventUtils.synthesizeKey() r=smaug 2018-02-09 19:17:26 +09:00
test_bug412567.html
test_bug415498.xul Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_bug418986-3.html
test_bug418986-3.xul
test_bug422132.html
test_bug426082.html
test_bug427537.html
test_bug428988.html
test_bug432698.html
test_bug443985.html
test_bug447736.html
test_bug448602.html Bug 1453132. Change nsIEventListenerService to use WebIDL event listeners, not nsIDOMEventListener. r=smaug 2018-04-11 10:27:01 -04:00
test_bug450876.html Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug 2018-02-15 04:15:39 +09:00
test_bug456273.html
test_bug457672.html
test_bug489671.html
test_bug493251.html Bug 1436926 - part 2: Remove unnecessary KeyboardEvent.code specification of callers of EventUtils.synthesizeKey() r=smaug 2018-02-09 19:17:26 +09:00
test_bug502818.html
test_bug508479.html
test_bug517851.html
test_bug524674.xul Bug 1433175 - scripted patch to replace Components.classes[, Components.interfaces.nsI, Components.utils. and Components.results. with Cc, Ci, Cu and Cr, r=Mossop. 2018-02-28 18:51:33 +01:00
test_bug534833.html
test_bug545268.html Bug 1436926 - part 2: Remove unnecessary KeyboardEvent.code specification of callers of EventUtils.synthesizeKey() r=smaug 2018-02-09 19:17:26 +09:00
test_bug547996-1.html Bug 1446711 part 7. Switch the nsIDOMMouseEvent::MOZ_SOURCE_* constants over to MouseEventBinding. r=qdot 2018-03-20 00:16:06 -04:00
test_bug547996-2.xhtml Bug 1446711 part 7. Switch the nsIDOMMouseEvent::MOZ_SOURCE_* constants over to MouseEventBinding. r=qdot 2018-03-20 00:16:06 -04:00
test_bug556493.html Bug 1089326, make <button> hit testing similar to other elements which may have some content, and for click target find the common (interactive) ancestor, r=masayuki 2018-12-11 23:35:40 +02:00
test_bug563329.html
test_bug574663.html Bug 1523158 - try to make test_bug574663.html a tad more stable, r=kats 2019-01-30 00:02:39 +02:00
test_bug586961.xul Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
test_bug591249.xul Bug 1476145 part 5. Stop using getInterface(nsIDOMWindowUtils) in DOM code. r=mccr8 2018-07-24 19:47:41 -04:00
test_bug591815.html
test_bug593959.html
test_bug602962.xul Bug 1454358, removes unneccessary implementation of ScrollBoxObject rr?enndeakin+6102 r=bz,enndeakin+6102 2018-06-25 10:11:31 -07:00
test_bug603008.html Bug 1499096 - Update tests using ok() to is();r=Standard8 2018-10-23 07:12:23 +00:00
test_bug605242.html
test_bug607464.html
test_bug613634.html
test_bug615597.html
test_bug617528.xul Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00
test_bug624127.html
test_bug635465.html Bug 1499096 - Use ok() with 2 arguments instead of 3 when possible;r=Standard8 2018-10-23 07:13:35 +00:00
test_bug641477.html
test_bug648573.html
test_bug650493.html
test_bug656379-1.html
test_bug656379-2.html
test_bug656954.html
test_bug659071.html
test_bug659350.html
test_bug662678.html
test_bug667612.html
test_bug667919-1.html
test_bug679494.xul
test_bug684208.html
test_bug687787.html
test_bug689564.html
test_bug698929.html
test_bug704423.html
test_bug741666.html Bug 1339461 - script-generated patch to convert foo.indexOf(...) == -1 to foo.includes(), r=Mossop. 2018-02-01 20:45:22 +01:00
test_bug812744.html
test_bug822898.html Bug 1499096 - Update tests using ok() to is();r=Standard8 2018-10-23 07:12:23 +00:00
test_bug855741.html
test_bug864040.html
test_bug924087.html
test_bug930374-chrome.html
test_bug930374-content.html
test_bug944011.html
test_bug944847.html
test_bug946632.html Bug 1438752 - Summary: Wait for an APZ flush before scrolling to avoid race condition in test. r=rhunt 2018-06-07 21:01:45 +00:00
test_bug967796.html Backed out 2 changesets (bug 1421482) for failing modified mochitest layout/base/tests/test_bug1078327.html. r=backout a=backout 2017-12-12 19:03:49 +02:00
test_bug985988.html
test_bug998809.html
test_bug1003432.html
test_bug1003432.js
test_bug1013412.html
test_bug1017086_disable.html
test_bug1017086_enable.html
test_bug1037990.html
test_bug1079236.html Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug 2018-11-15 06:51:07 +00:00
test_bug1127588.html Bug 1127588 - Fix the DOMNodeRemoved mutation event isn't fired when updating document.title; r=smaug 2018-08-07 07:47:00 +00:00
test_bug1128787-1.html
test_bug1128787-2.html
test_bug1128787-3.html
test_bug1145910.html Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug 2018-11-15 06:51:07 +00:00
test_bug1150308.html Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug 2018-11-15 06:51:07 +00:00
test_bug1248459.html
test_bug1264380.html Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug 2018-11-15 06:51:07 +00:00
test_bug1298970.html
test_bug1304044.html
test_bug1305458.html Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug 2018-02-15 04:15:39 +09:00
test_bug1327798.html
test_bug1332699.html
test_bug1339758.html
test_bug1369072.html
test_bug1412775.xul Bug 1479569 part 2. Use the new messageManager getter on docshell. r=kmag 2018-08-02 23:49:09 -04:00
test_bug1429572.html Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug 2018-11-15 06:51:07 +00:00
test_bug1446834.html Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug 2018-11-15 06:51:07 +00:00
test_bug1447993.html Bug 1447993, when handling pointerup while there is pointercapture, do a hit test in order to find the click target, tests, r=masayuki 2018-03-29 19:51:25 +03:00
test_bug1484371.html Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug 2018-11-15 06:51:07 +00:00
test_bug1514940.html Bug 1514940 - part 1: Forcibly disable new keyCode/charCode value of keypress events if the document is Confluence r=smaug,Ehsan,kmag 2019-02-05 11:35:43 +00:00
test_click_on_reframed_generated_text.html Bug 1497524 - Properly dispatch events when the NAC event target is not the root, and it gets reframed. r=smaug 2018-11-04 19:53:07 +00:00
test_clickevent_on_input.html
test_continuous_wheel_events.html
test_DataTransferItemList.html Bug 1453153 - Initial removal of moz* APIs in DataTransfer, r=enndeakin,r=nika 2018-08-22 15:10:31 -04:00
test_dblclick_explicit_original_target.html Bug 1089326, make <button> hit testing similar to other elements which may have some content, and for click target find the common (interactive) ancestor, r=masayuki 2018-12-11 23:35:40 +02:00
test_deviceSensor.html
test_disabled_events.html
test_dnd_with_modifiers.html
test_dom_activate_event.html
test_dom_keyboard_event.html Bug 1479964 - Set KeyboardEvent.keyCode and KeyboardEvent.charCode to same value if the event is "keypress" event r=smaug 2018-10-09 04:43:37 +00:00
test_dom_mouse_event.html
test_dom_storage_event.html
test_dom_wheel_event.html
test_draggableprop.html
test_dragstart.html Bug 1453153 - Initial removal of moz* APIs in DataTransfer, r=enndeakin,r=nika 2018-08-22 15:10:31 -04:00
test_error_events.html
test_eventctors_sensors.html
test_eventctors.html Bug 1447239 - Implement InputEvent.inputType r=smaug 2019-01-07 10:10:57 +00:00
test_eventctors.xul Bug 1499096 - Update tests using ok() to is();r=Standard8 2018-10-23 07:12:23 +00:00
test_eventhandler_scoping.html
test_eventTimeStamp.html Bug 1442515 Refactor test_eventTimeStamp.html to pass r=baku 2018-03-06 10:18:12 -06:00
test_focus_abspos.html Bug 1424633: Decide which frame to focus using the flattened tree. r=smaug 2017-12-16 00:39:13 +01:00
test_focus_disabled.html
test_hover_mouseleave.html Bug 1446832: Update hover state before firing mouseleave, to match other browsers. r=smaug 2018-03-20 01:32:51 +01:00
test_legacy_event.html
test_marquee_events.html Bug 1425874 - Implement marquee onbounce, onfinish, onstart with WebIDL r=bzbarsky 2018-11-08 14:46:45 +00:00
test_messageEvent_init.html
test_messageEvent.html
test_moz_mouse_pixel_scroll_event.html
test_offsetxy.html
test_onerror_handler_args.html
test_passive_listeners.html
test_paste_image.html Bug 1446940 part 5. Stop getting docshells from windows via getInterface in dom/editor/etc code. r=kmag 2018-08-01 13:07:11 -04:00
test_slotted_mouse_event.html Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug 2018-11-15 06:51:07 +00:00
test_slotted_text_click.html Bug 1503019 - Part I, Remove dom.webcomponents.shadowdom.enabled r=smaug 2018-11-15 06:51:07 +00:00
test_text_event_in_content.html Bug 1288640 - Make TextComposition not dispatch eCompositionChange events (DOM "text" event) in the default group of web content r=smaug 2018-11-27 13:26:51 +00:00
test_unbound_before_in_active_chain.html Bug 1489139 - Ensure unbound generated content doesn't remain in the active chain. r=smaug 2018-09-12 16:56:40 +02:00
test_wheel_default_action.html
window_bug493251.html
window_bug617528.xul Bug 1493655 - make nsISecureBrowserUI initialize from a docshell instead of a window, r=keeler,nika 2018-09-26 17:48:38 +00:00
window_bug659071.html
window_bug1369072.html Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug 2018-02-15 04:15:39 +09:00
window_bug1412775.xul Bug 1412775 - Implement Event.composedPath, tests for chrome handling, r=stone 2017-12-18 18:08:03 +02:00
window_bug1429572.html bug 1429572, touch.target retargeting in shadow DOM, r=masayuki 2018-05-25 18:02:59 +03:00
window_bug1447993.html Bug 1447993, when handling pointerup while there is pointercapture, do a hit test in order to find the click target, tests, r=masayuki 2018-03-29 19:51:25 +03:00
window_wheel_default_action.html Bug 1514594: Part 3 - Change ChromeUtils.import API. 2019-01-17 10:18:31 -08:00