gecko-dev/devtools
Emilio Cobos Álvarez be1f057109 Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers
Bug 1805414 will move menu event handling to the DOM.

With that change the current synthetic click behavior of XUL menuitems
breaks. On current central, we rely on nsMenuFrame::HandleEvent not
getting called at all for synthetic clicks, and instead we just fire a
command event synchronously here:

  https://searchfox.org/mozilla-central/rev/a0d4f8f112c5c792ae272bf6ce50763ddd23ffa2/dom/xul/nsXULElement.cpp#1071

After my patch the command event is fired properly (potentially
asynchronously too) by the regular menu activation machinery, which is
preferable.

 * They fire a command event synchronously (even though on some
   platforms like macOS activating a context menu item is async).

 * They use a totally different codepath from what a user does.

 * They don't deal with native menus, etc.

We have a proper API for this (activateItem) which takes a much more
closer codepath to what users do, requires that the menu is shown, etc.
Use that API instead for testing.

As a benefit, tests now do not need to close the context menu manually
when clicking on a menu item (because we trigger the same code path as
users clicking the menu).

Differential Revision: https://phabricator.services.mozilla.com/D164567
2022-12-14 10:25:17 +00:00
..
client Bug 1805415 - Use activateItem() rather than click() to activate menuitems. r=Gijs,extension-reviewers,pip-reviewers,search-reviewers 2022-12-14 10:25:17 +00:00
docs Bug 1788033 - [devtools] Update StyleEditor documentation for at-rules sidebar. r=jdescottes. 2022-11-09 16:29:51 +00:00
perfdocs
platform Bug 1793575 - [devtools] Convert jsdebugger.jsm to jsdebugger.sys.mjs. r=Honza,webdriver-reviewers,whimboo 2022-10-06 14:21:22 +00:00
server Bug 1803646 - [devtools] Pass storage-expires-session localized value to getStoreObjects. r=jdescottes,fluent-reviewers,flod. 2022-12-14 09:50:15 +00:00
shared Bug 1803646 - [devtools] Pass storage-expires-session localized value to getStoreObjects. r=jdescottes,fluent-reviewers,flod. 2022-12-14 09:50:15 +00:00
startup Bug 1803391 - update comments / text references to session store modules as 'jsm's, r=Standard8 2022-12-12 10:08:03 +00:00
.eslintrc.js Bug 1793604 - [devtools] Inject JSM/ESM globals directly from Loader.jsm/sys.mjs. r=jdescottes 2022-10-14 12:19:42 +00:00
.eslintrc.xpcshell.js
CODE_OF_CONDUCT.md
moz.build
rename.py Bug 1793760 - [devtools] Use same URL for development version of react. r=jdescottes 2022-10-10 11:44:59 +00:00
templates.mozbuild Bug 1793760 - [devtools] Use same URL for development version of react. r=jdescottes 2022-10-10 11:44:59 +00:00
tsconfig.json